Hi,

You cannot do this using Rampart. But you can use WSS4J and Axiom to
achieve this as shown here :

http://ww2.wso2.org/~ruchith/rampart_misc/DOOMX509CertInHeader.java

Thanks,
Ruchith


On 2/1/07, Ivan Mejia <[EMAIL PROTECTED]> wrote:
Hi,
   Just have the following question: How should I configure "axis2.xml"
 file to send the following WS-Security Header?

 <soapenv:Header>
      <wsse:Security  soapenv:mustUnderstand="1"
 
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";>
     <wsse:BinarySecurityToken wsu:Id="bst_k9TZ3Ucmh0XM4L2y"
 
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3";
 
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary";
 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>
 
MIID8jCCA1ugAwIBAgICDXYwDQYJKoZIhvcNAQEFBQAwYzELMAkGA1UEBhMCVVMxGDAWBgNVBAoTD1UuUy4gR292Z
 
XJubWVudDEMMAoGA1UECxMDRE9EMQwwCgYDVQQLEwNQS0kxHjAcBgNVBAMTFURPRCBDTEFTUyAzIEpJVEMgQ0EtNz
 
AeFw0wNDA1MDMwMzA3NDNaFw0wNzA1MDQwMzA3NDNaMH4xCzAJBgNVBAYTAlVTMRgwFgYDVQQKEw9VLlMuIEdvdmV
 ...
    </wsse:BinarySecurityToken>
    </wsse:Security>
 </soapenv:Header>
 ...

 Thanks for any clue or sample code reference you can provide!
 Ivan.




--
www.ruchith.org
www.wso2.org

Reply via email to