Context
Both the Java and .NET SOAP/WebSphere MQ listeners have runtime options for specifying whether they pass identity context. The default if the parameter is not specified is that they pass context.
If the listener is to pass identity context, it checks at runtime that it has authority both to save the context from the request queue and to pass it to the response queue when opening the response queue. If the listener does not have sufficient authority the message is put on the dead-letter queue with the return code set to that returned from the failed open call on the response queue. The listener then continues to process subsequent incoming messages as normal. If the listener does have the required authority and the open call is successful, the listener sets the identity context of the original request message into the response message.
If the listener is started and told not to pass identity context, the listener honours the runtime option and does not pass context. The returned context reflects the user ID under which the listener is running rather than the user ID which created the original request message.
The fields in the origin context are not set by SOAP/WebSphere MQ but by the queue manager.
See WebSphere MQ Application Programming Guide for details of identity context and origin context.