SOAP Web services import/export example

Test environment

This example is shown from a Sage X3 test environment.


Important:

Classic function SOAP pools configuration

  1. Create the POOL web service SEED
  2. Start the POOL web service
  3. Check the pool status

Use the SoapUI testing tool

Soapui is an advanced REST and SOAP testing tool.

  1. Go to the SoapUI website
  2. Download the SoapUI Open Source version
  3. Install it either on the Sage X3 server or on your machine using the Easy Windows setup

Export: AOWSEXPORT

  1. Create a SOAP project
  2. Set Sage X3 SOAP web service WSDL the following way:
    http://name-of-X3-web-server:port/soap-wsdl/syracuse/collaboration/syracuse/CAdxWebServiceXmlCC?wsdl
  3. Click OK
  4. Open Request1 for the Run web service operation
  5. Add a basic authentication to call the web service
    Note: In a live environment it is better to use an authentication with an ssl certificate.




  6. Click OK



  7. Update the xml imput stream
  8. Click Execute.


  9. Copy the resultxml tag value and copy to the inputxml tag
  10. Update the input xml for keep the mandatory tags
    ```{"GRP1": {"I_MODEXP": "ITM","I_CHRONO": "NO"},"GRP2" : [ {"I_TCRITERE" : "ITMSTA=1"},{"I_TCRITERE" : "1=1"}],"GRP3": {"I_EXEC": "REALTIME","I_RECORDSEP": "|"}}```
  11. Execute the web service with the right values
    1. O_FILE: content of the export file with | instead of CRLF