0 Replies Latest reply: Oct 6, 2010 3:39 PM by 807574 RSS

    How to populate the SOAP Header in JCD/BP while consuming WebService?

    807574
      Hello,

      I am trying to invoke a external webservice through both JCD/BP in JCAPS513 and as per wsdl defination we need to send user and token information in the SOAP Header. When I imported the WebService defination into the JCDP/BP, I do not see message part corresponding to SOAP Header. Can anyone help me here?

      Here is the WSDL message, operation & binding details:


      <wsdl:operation name="GetOrderID"> <wsdl:operation name="GetOrderID"> <wsdl:message name="GetOrderIDSoapIn">
      <wsdl:part name="parameters"
      element="tns:GetOrderID"/>
      </wsdl:message>
      <wsdl:message name="GetOrderIDSoapOut">
      <wsdl:part name="parameters"
      element="tns:GetOrderIDResponse"/>
      </wsdl:message>
      <wsdl:message name="GetOrderIDWebServiceCredential">
      <wsdl:part name="WebServiceCredential"
      element="tns:WebServiceCredential"/>
      </wsdl:message>
      <wsdl:input message="tns:GetOrderIDSoapIn"/>
      <wsdl:output message="tns:GetOrderIDSoapOut"/>
      </wsdl:operation>
      <soap:operation soapAction="http://xxxxxx.xxxx.xxx/V2/GetOrderID"
      style="document"/>
      <wsdl:input>
      <soap:body use="literal"/>
      {color:#ff0000} *<soap:header message="tns:GetOrderIDWebServiceCredential"*
      * part="WebServiceCredential"*
      * use="literal"></soap:header>*{color}
      </wsdl:input>
      <wsdl:output>
      <soap:body use="literal"/>
      </wsdl:output>
      </wsdl:operation>