0 Replies Latest reply on Aug 12, 2010 2:02 AM by Nishanthakumar Mahalingam

    Need Help to Consume webservice using JBOSS ESB - SOAPClient - with SAML (<wsse:UsernameToken>) Username Token in WS-Security SOAP Header

    Nishanthakumar Mahalingam Newbie

      Hi,

       

      Good Day.

       

      I need a sample/guidance to consume a webservice using JBOSS ESB SOAPClient with SAML (<wsse:UsernameToken>) Username Token in WS-Security SOAP Header.

       

      I am able to consume using cxf client and soapUI interface but not with JBOSS ESB.

       

      SOAP Request :

       

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:prof="http://www.jfoundation.com/WebService/ProfileMgmtService">
      <soapenv:Header>
          <wsse:Security xmlns:wsse="
      http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
           <wsse:UsernameToken>
             <wsse:Username>username</wsse:Username>
             <wsse:Password>xxxxxxxxxxxxxxxxxxxx</wsse:Password>
           </wsse:UsernameToken>
          </wsse:Security>
         </soapenv:Header>
         <soapenv:Body>
            <prof:sayHello>
               <!--Optional:-->
               <hello>Hello World</hello>
            </prof:sayHello>
         </soapenv:Body>
      </soapenv:Envelope>