Table of Contents

Class IrvinesERP

Namespace
OrnithonAPI
Assembly
OrnithonAPI.dll

The IrvinesERP class is a web service that processes incoming JSON data related to various ERP entities such as customers, sales orders, inventory receipts, and more. It validates the incoming data, determines the type of ERP entity being processed, and then calls the appropriate method to handle the data. The class also manages authentication, error handling, and logging of results for each processed file. It interacts with a SQL database to store the incoming data and the results of processing, allowing for tracking and troubleshooting of any issues that may arise during the processing of ERP data.

[ScriptService]
[WebService(Namespace = "http://OrnithonAPI/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class IrvinesERP
Inheritance
IrvinesERP
Inherited Members

Constructors

IrvinesERP()

public IrvinesERP()

Methods

PostData()

Processes incoming JSON data posted to the web service. This method validates the incoming data, determines the type of ERP entity being processed, and calls the appropriate processing method based on the identified file type. It also handles authentication, error logging, and updates the database with the results of processing each file. The method supports both testing and production environments, allowing for flexibility in how data is processed and errors are handled.

[WebMethod]
public string PostData()

Returns

string

A string indicating the result of the processing.