XML over HTTP
WebSphere Commerce can receive inbound XML messages over HTTP using the Program Adapter.
The following steps illustrate the overall flow of an XML over HTTP request:
- An external system sends an XML message to WebSphere Commerce over HTTP via a POST request. For example, http://host_name/webapp/wcs/stores/servlet/.
- The request is mapped to the Program Adapter.
- The Program Adapter passes the XML request to the appropriate message mapper.
- The message mapper converts the XML request into a CommandProperty object and passes it back to the Program Adapter.
- The Program Adapter prepares the command for execution and passes it to the WebController for execution.
- The Program Adapter generates the proper XML response and returns the XML response to the external system that made the request.
When the Program Adapter receives the XML request, it must verify the credentials of the external system that sent the request. Not all XML requests can be processed. Even if the XML request can be mapped to a WebSphere Commerce command, there must be some verification to ensure that the request should be processed.