Hello,
I would like to have some advices / comments about populating SOAPHeader and SOAPBody of a SOAPEnvelope (org.apache.axis.message.*).
I have a web service that receives a SOAPEnvelope, and saves its SOAPHeader and SOAPBody parts to a database (as String). At a later time, when another SOAP-request comes in, the web service gets the String-values from database, and populates the SOAPEnvelope with them.
I am wondering, what is the easiest/best/right way to populate the SOAPHeader and SOAPBody of the SOAPEnvelope when they are already represented as Strings?
For example, if the SOAPHeader-part is saved as following in the database, how should I insert it to a SOAPEnvelope?
<SOAP-ENV:Header>
<ar:MessageHeader SOAP-ENV:mustUnderstand="1">
<ar:From>
<ar:PartyId>ID 1</ar:PartyId>
<ar:Role>requester</ar:Role>
</ar:From>
<ar:To>
<ar:PartyId>ID 1</ar:PartyId>
<ar:Role>responder</ar:Role>
</ar:To>
</ar:MessageHeader SOAP-ENV:mustUnderstand="1">
</SOAP-ENV:Header>~ Ilari Kontinen
