Sending a SOAP header object with the request object?
- Take an HL7 message, parse some data from it
- Call a web service to get an authorization key, comes back as a simple string
- Create a request object with data from the HL7 message and send it to the Web Service
The main web method call requires that key I received as a Soap Header element. All I can pass to the SOAP Operation business class is the request object with the data I plucked from the HL7 payload. Nothing in that particular request message has anything in it that tells anything to send the header, too.
So what are my options to pass a message to the SOAP Operation that contains both the object that is the message body AND the SOAP header? Or do I not use the generated operation classes - I have to roll my own and use something like a pass thru operation and set some flags to get it to use the header?
Thoughts? Am I missing something totally simple?