6 Replies Latest reply on May 5, 2020 1:56 PM by Prasanna Natarajan

    How to set cookie for WebService in BPEL

    Prasanna Natarajan New Member



      I am new to BPEL process. I need to hit an WSDL which has redirects and Authentication is based on cookie. I tried to in BPEL but got below error message.



      com.sun.xml.ws.client.ClientTransportExceptionThe server sent HTTP status code 302: Foundcom.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 302:


      Looks like redirect issue. Http status code 302 is related to redirect.

      Should I pass the cookie in http header or soap header?



      It is working fine in SOAP if i pass header parameter as  "cookie" = "WSL-credential=Wp6BD1qfDa8BAQE" in Soap Header. I don't know how to set the cookie value in BPEL in Patner Link or Provider service.


      Please someone help me what is the syntax or command to set cookie in BPEL.