How Do I Send a SOAP Header with the Request and Get the Result? (Magic xpa 2.x)
When you are invoking a Web service, sometimes you may need to send some Header XML files. Soap headers are application-specific code that can contain several different SOAP attributes.
To use the header block in a Magic xpa Invoke operation:
-
Create the XML needed, in a BLOB or Alpha variable. The XML must be encased in a root element called EDEV_SOAP_HEADERS:
<EDEV_SOAP_HEADERS>
...
</EDEV_SOAP_HEADERS>
-
Zoom to the Web Service Parameters.
-
Select the XML header for the Headers field.
Now, the XML you created will be sent to the Web service. If the Web service returns a value, it will replace the content of the Header variable that you sent.