The Web Services Hub requires session maintenance to cache resources. The SOAP header in the SOAP message carries the session information facilitating session maintenance.
To set up and perform session maintenance, complete the following steps:
Extract the header with the root element name Context and namespace http://www.informatica.com/wsh from the response of the Login operation call. This SOAP header contains the session ID sent by the Web Services Hub.
Set the SOAP header in the MWSProxy object after the Login operation call. This will send the session ID in the SOAP header for all subsequent requests using the MWSProxy object.
Set the SOAP header in the DIWSProxy object with the same session ID so that the same session ID will be sent for all subsequent requests made using the DIWSProxy object.