A new user of the Courex XML application will need to complete the following steps before attempting to send an XML document directly to the Courex server.
All XML services is accessed througth the URL: https://www.courex.com.sg/xml-wms/
POST index.php HTTP/1.0
Accept: */*
User-Agent: CourexGateway_socket/1.0
Content-Type: application/x-www-form-urlencoded
Content-Length: X (length of data plus 19 for “HTTP_RAW_POST_DATA=”)
HTTP_RAW_POST_DATA=<RequestCall><!-- Service specific data --></RequestCall>
XML document is the XML corresponding to the format needed by the requested service. One blank line should be sent after the Content-length line.
Once the above data has been sent, read from the socket until further data is available. The data returned will consist of the requested information as documented in the service’s documentation.
The parameters are passed as XML elements. The parameter names are case-sensitive.
<RequestCall>
<AppType>Service Name</AppType>
<UserName>YOUR USERNAME</UserName>
<Password>YOUR PASSWORD</Password>
<Parameters>
<!-- AppType dependent parameters -->
</Parameters>
</RequestCall>
The HTTP response in the following format:
<?xml version=”1.0” ?>
<RequestResponse>
<Data>
<AppType>Service Name</AppType>
<SONumber>exampleSO#</SONumber>
<ConsignmentNumber>NIL</ConsignmentNumber>
<Status>Open</Status>
</Data>
</RequestResponse>