4 Replies Latest reply on Jun 13, 2019 11:15 AM by Martien van den Akker

    Oracle SOA 12.1.3 invoke external service with additional SOAP headers

    3146670

      I have a business scenario where I have to invoke a client SOAP service that uses additional SOAP header parameters. When I test the web service independently via SOAP UI it shows below schema as input-

       

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:com="http://xmlns.client.org/Schema/Common/1.0/Common.xsd" xmlns:user="http://xmlns.uppcl.org/Schema/UserAccess/2.0/UserAccess.xsd">

         <soapenv:Header>

         <wsse:Security xmlns:wsse="http://docs.demo-open.org/wss/2004/01/demo-200401-wss-wssecurity-secext-1.0.xsd">

               <wsse:UsernameToken xmlns:wsu="http://docs.demo-open.org/wss/2004/01/demo-200401-wss-wssecurity-utility-1.0.xsd">

                  <wsse:Username>DemoUser</wsse:Username>

                  <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">Demo@123</wsse:Password>

               </wsse:UsernameToken>

            </wsse:Security>

            <com:TransactionReference>

               <com:SourceSystemId>TXNSYSID</com:SourceSystemId>

               <com:TxID>0403216376127836</com:TxID>

               <!--Optional:-->

               <com:BusinessID>DTUIQS</com:BusinessID>

            </com:TransactionReference>

         </soapenv:Header>

         <soapenv:Body>

            <user:CheckUserRequest>

               <user:UserId>USER_ID</user:UserId>

            </user:CheckUserRequest>

         </soapenv:Body>

      </soapenv:Envelope>

       

      As we can see additional header elements wsse:Security > UsernameToken  > Username/Password , TransactionReference > SourceSystemId / TxID / BusinessID as XML node.

       

      Further, When I configured the SOAP adapter in a SOA composite but it has only one input argument UserId. Now I am not able to figure out how can I pass additional parameters (username/password, SourceSystemId / TxID / BusinessID  ) in SOA Header for target web service invocation in my SOA composite.