Dear All,

 

I am required to create a SOAP request which contains RequestSecurityToken with X509 Security Token.
I am using rampart module of axis2 1.0 to achieve this. Now my problem is when this request is sent to the web service,
<wsse:SecurityTokenReference> tag is found as a child element of <KeyInfo> tag in SOAP Header.
Is there any way to extract the above <wsse:SecurityTokenReference> tag so that I could place it inside the SOAP Body as a child element of <wst:Base> tag?
 
My desired format of SOAP request is as below:
<soap:Envelope>
<soap:Header>
 ……………
 ………
<KeyInfo>
          <wsse:SecurityTokenReference>
            <wsse:Reference 
            URI="#SecurityToken-bbae5f08-04c5-4f4d-aa79-42e2475a1b7f" 
            ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" />
          </wsse:SecurityTokenReference>
</KeyInfo>
</Signature>
</wsse:Security>
</soap:Header>
<soap:body>
<wst:Base>
        <wsse:SecurityTokenReference>
          <wsse:Reference
          URI="#SecurityToken-bbae5f08-04c5-4f4d-aa79-42e2475a1b7f"
          ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" />
        </wsse:SecurityTokenReference>
 </wst:Base>
 
        …
        …
        …
</soap:Body>
</soap:Envelope>

 

 

Best Regards,
Shyam Shukla

 

DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.

Reply via email to