Online documentation - WebsydianExpress v3.0 |
XMLAbstract.SoapServiceProcessor
Please note that this function is found in the WSYAPIWS model.
ServiceProcessor are called when the runtime has identified that a request is a web service request and the ServiceProcessor is specified for the URL of the request.
A SoapServiceProcessor function performs the following steps:
The SoapServiceProcessor can be used when the data of the request and the response are valid XML-documents. The documents will be handled according to the SOAP 1.1 standard. All requests will be document/literal.
Inherit from the abstract SoapServiceProcessor if the input and output you want to transfer are SOAP 1.1 XML-documents - and you want to handle these documents using the TransacXML library.
Before creating your own implementation of the function you should consider whether you can use the implemented SoapServiceProcessor that is delivered with the standard WebsydianExpress installation.
The most common reason to create a special version of the SoapServiceProcessor function is if you need to pre-process the request data or post-process the response data. You might have to do so if you want to implement specialized handling of the content of special soap headers.
If you only need to get access to information sent in the soap-header section, you should be aware that you can actually access this information in your ServiceHandler function. By calling the GetXmlDoc function and specifying "Header" as the file type, you will get the object handles of the soap header document.
If you need to add special information to the envelope of the response document, you will always have to create your own version of SoapServiceProcessor - as this functionality is not handled by the abstract function.
Please note that all ServiceProcessors are called dynamically based on the entries specified in the service structure tree. This means that you may not change the interface of the implemented function.
As the function uses the TransacXML patterns, it is placed in the WSYAPIWS model instead of the WSYAPI model.
The function can only be used in the Java, WinC, and WinC/iSeries versions - not in the iSeries version.
The abstract function supports SOAP 1.1 services of the type document/literal.
Background: Handling web service requests
Background: Understanding the service structure
Background: Service processors
Background: Selection criteria