Table of Contents

Class ErpServiceCaller

Namespace
Dynamicweb.DataIntegration.Integration.ERPIntegration
Assembly
Dynamicweb.DataIntegration.dll

Provides methods for getting data from ERP service

public class ErpServiceCaller : IDisposable
Inheritance
ErpServiceCaller
Implements
Inherited Members

Constructors

ErpServiceCaller(string, ILogger)

Initializes a new instance of the ErpServiceCaller class for using a persistent WCF client connection.

public ErpServiceCaller(string endpoint, ILogger logger)

Parameters

endpoint string

The endpoint.

logger ILogger

The logger.

Methods

Dispose()

Disposes of the persistent ERPClient connection

public void Dispose()

GetAllData(string, string, ILogger)

Gets all data using the persistent connection.

public virtual string GetAllData(string secret, string settings, ILogger logger)

Parameters

secret string

The secret.

settings string

The settings.

logger ILogger

The logger.

Returns

string

GetAllData(string, string, string, ILogger)

Gets all data using a one-shot connection

public static string GetAllData(string endpoint, string secret, string settings, ILogger logger)

Parameters

endpoint string

Endpoint

secret string

Secret

settings string

Settings

logger ILogger

The logger.

Returns

string

String with data

GetAllData(string, string, string, TimeSpan, ILogger)

Gets all data using a one-shot connection

public static string GetAllData(string endpoint, string secret, string settings, TimeSpan timeout, ILogger logger)

Parameters

endpoint string

Endpoint

secret string

Secret

settings string

Settings

timeout TimeSpan

Timeout

logger ILogger

The logger.

Returns

string

String with data

GetAllDataRequest(string)

Create xml request string for getting all data

public static string GetAllDataRequest(string settings)

Parameters

settings string

Settings string

Returns

string

Xml formatted string with settings values

GetDataFromRequestString(string, string, string, ILogger)

Gets the data from a request string.

public static string GetDataFromRequestString(string endpoint, string secret, string requestXml, ILogger logger)

Parameters

endpoint string

The endpoint.

secret string

The secret.

requestXml string

The request XML.

logger ILogger

The logger.

Returns

string

GetDataFromRequestString(string, string, string, TimeSpan, ILogger)

Gets the data from a request string.

public static string GetDataFromRequestString(string endpoint, string secret, string requestXml, TimeSpan timeout, ILogger logger)

Parameters

endpoint string

The endpoint.

secret string

The secret.

requestXml string

The request XML.

timeout TimeSpan

The timeout.

logger ILogger

The logger.

Returns

string

GetPutOrdersRequest(string, string)

Creates xml string request for put order operation

public static string GetPutOrdersRequest(string orders, string settings)

Parameters

orders string

Orders

settings string

Settings

Returns

string

String

GetPutUsersRequest(string, string)

Creates GetPutUsers request text

public static string GetPutUsersRequest(string users, string settings)

Parameters

users string

Users

settings string

Settings

Returns

string

String result

GetUsers(string, string, string, ILogger)

Requests users from ERP service

public static string GetUsers(string endpoint, string secret, string settings, ILogger logger)

Parameters

endpoint string

Endpoint

secret string

Secret

settings string

Settings

logger ILogger

The logger.

Returns

string

String result

GetUsers(string, string, string, TimeSpan, ILogger)

Requests users from ERP service

public static string GetUsers(string endpoint, string secret, string settings, TimeSpan timeout, ILogger logger)

Parameters

endpoint string

Endpoint

secret string

Secret

settings string

Settings

timeout TimeSpan

Timeout

logger ILogger

The logger.

Returns

string

String result

GetUsersRequest(string)

Creates xml string request for getting users

public static string GetUsersRequest(string settings)

Parameters

settings string

Settings

Returns

string

String result

PutOrders(string, string, string, ILogger)

Performs put orders request

public static string PutOrders(string endpoint, string secret, string request, ILogger logger)

Parameters

endpoint string

The endpoint.

secret string

The secret.

request string

The request.

logger ILogger

The logger.

Returns

string

PutOrders(string, string, string, string, ILogger)

Performs put orders request

public static string PutOrders(string endpoint, string secret, string orders, string settings, ILogger logger)

Parameters

endpoint string

Endpoint

secret string

Secret

orders string

Orders

settings string

Settings

logger ILogger

The logger.

Returns

string

String result

PutOrders(string, string, string, string, TimeSpan, ILogger)

Performs put orders request

public static string PutOrders(string endpoint, string secret, string orders, string settings, TimeSpan timeout, ILogger logger)

Parameters

endpoint string

Endpoint

secret string

Secret

orders string

Orders

settings string

Settings

timeout TimeSpan

Timeout

logger ILogger

The logger.

Returns

string

String result

PutOrders(string, string, string, TimeSpan, ILogger)

Performs put orders request

public static string PutOrders(string endpoint, string secret, string request, TimeSpan timeout, ILogger logger)

Parameters

endpoint string

The endpoint.

secret string

The secret.

request string

The request.

timeout TimeSpan

The timeout.

logger ILogger

The logger.

Returns

string

PutUsers(string, string, string, ILogger)

Performs PutUsers request

public static string PutUsers(string endpoint, string secret, string request, ILogger logger)

Parameters

endpoint string

Endpoint

secret string

Secret

request string

Request

logger ILogger

The logger.

Returns

string

String result

PutUsers(string, string, string, string, ILogger)

Performs PutUsers request

public static string PutUsers(string endpoint, string secret, string users, string settings, ILogger logger)

Parameters

endpoint string

Endpoint

secret string

Secret

users string

Users

settings string

Settings

logger ILogger

The logger.

Returns

string

PutUsers(string, string, string, string, TimeSpan, ILogger)

Performs PutUsers request

public static string PutUsers(string endpoint, string secret, string users, string settings, TimeSpan timeout, ILogger logger)

Parameters

endpoint string

Endpoint

secret string

Secret

users string

Users

settings string

Settings

timeout TimeSpan

Timeout

logger ILogger

The logger.

Returns

string

PutUsers(string, string, string, TimeSpan, ILogger)

Performs PutUsers request

public static string PutUsers(string endpoint, string secret, string request, TimeSpan timeout, ILogger logger)

Parameters

endpoint string

Endpoint

secret string

Secret

request string

Request

timeout TimeSpan

Timeout

logger ILogger

The logger.

Returns

string

String result

To top