Setting SOAP header.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Setting SOAP header.

Siddharth Patil
Hi,
 
My soap request is as shown below :
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.processing.dstawd.com/">
   <soapenv:Header>
      <ws:authorizationInfo>
         <userId>HUBUSER</userId>
      </ws:authorizationInfo>
   </soapenv:Header>
   <soapenv:Body>
      <ws:createObjects>
         <createObjectRequest>
            <responseDetails showNone="N"/>
            <createWorkInstance relationshipId="work1" lock="N">
               <businessArea>OSBLENDING</businessArea>
               <type>WRESPONSE</type>
               <status>CREATED</status>
               <addManualComment>Created by HUB-First run</addManualComment>
               <fieldValues>
               <fieldValue name="OANO">841906</fieldValue>
               <fieldValue name="PDID">ACCEPTANCE</fieldValue>
               </fieldValues>
            </createWorkInstance>
          <createSourceInstance relationshipId="doc1" lock="N">
               <businessArea>OSBLENDING</businessArea>
               <type>ACCEPTANCE</type>
               <attachmentList>
                  <attachment sequence="1">
                     <binaryData>cid:source1</binaryData>
                  </attachment>
               </attachmentList>
            </createSourceInstance>
            <createSourceInstance relationshipId="doc2" lock="N">
               <businessArea>OSBLENDING</businessArea>
               <type>DECLARTION</type>
               <attachmentList>
                  <attachment sequence="1">
                     <binaryData>cid:source2</binaryData>
                  </attachment>
               </attachmentList>
            </createSourceInstance>
            <relationships>
               <relateObjects parentRelationshipId="work1" childRelationshipId="doc1"/>
               <relateObjects parentRelationshipId="work1" childRelationshipId="doc2"/>
            </relationships>
            </createObjectRequest>
      </ws:createObjects>
   </soapenv:Body>
</soapenv:Envelope>
 
I need to set the authorizationInfo into the SOAP header as shown in the request above(Bold text).
 
Currently I am setting it in the Camel exchange as below - exchange.getIn().setHeader("authorizationInfoHeader",authorizationInfo);
but this is not working.
authorizationInfo is the POJO having userId as the property.
 
Am I doing anything wrong in setting the Header? Please correct me.
 
 
Regards,
Siddharth Patil
 

Loading...