Developing With Web Services
Developing With Web Services
In the cloud, you can import or export files with an import/export template on a local
workstation, but you need to manually drag and drop files.
You can completely automate these operations with an API for external tools:
Because an extraction or integration can take time, the API must also be able to handle
batch operations.
Connect to the SOAP web service server integrated in the Sage X3 platform
Authenticate with the available authentication methods
Send a normalized SOAP message as indicated in the SOAP web service
documentation and receive the answer
The SOAP web services used are subprograms associated with web services. Their
names are the following:
These SOAP web services can be called from any program that can perform a SOAP
web service in the correct format as described in web service management. You can, for
example, write in Java, PHP, JavaScript, .NET, C, etc.
Export web service
The export web service contains the following arguments:
A clob containing the file produced by the export if the execution is in real time
An integer containing the request ID if a batch execution was requested. This
value is used later as a parameter to indicate the status of the batch request.
The web service status (0=OK, otherwise it is an error)
A message if an error occurred
Export examples
The Getting Started page has step-by-step examples of importing and exporting.
Example of exporting a customer in real time
Example of exporting in real time with a parameter error
For example, if you import two lines with a string, a date, and a numeric value, and if the
record separator is “|”, the correct clob contents would be: STRING1;20170203;1|
STRING2;20160512;33|END
Import Examples
The Getting Started page has step-by-step examples of importing and exporting.
Example of importing a customer in real time
Example of importing in real time with a parameter error
Example of importing in real time with data errors
A numeric value containing the status of the task with the following values:
o 1 = Standby
o 2 = In progress
o 3 = Finished
o 4 = On Hold
o 5 = Killed
o 6 = Canceled
o 7 = Error
o 8 = Overdue
o 9 = Warning
A text containing the corresponding message (standby, in progress. etc.)
A clob containing the file returned if the type is EXPORT and if the task is finished
with or without errors or warnings
A clob containing the trace file if it was requested
The web service status (0=OK, otherwise it is an error)
A message if an error occurred