Hi Devs,

If I put the requirement in another words, how can I add or read HTTP
header  in a BPEL process. I don't think, BPEL language supports this as
this is a transport dependent operation.

I've implemented this in 3.2.* release using proxy services for each admin
service.  These proxy services set the cookie value and invoke admin
services. Once you logged in to the AuthenticationAdmin service you get a
authenticated cookie and you can use this cookie value can be used for all
subsequent invokations.

   1. BPEL process invoke the login method in the AuthenticationAdminProxy
   service which in turn invokes the back-end server's AuthenticationAdmin
   service. On the return path, this proxy service retrive the authenticated
   cookie and sent to BPEL as value in the SOAP message so the BPEL can save
   this value in a variable.
   2. For all the subsequent requests from the BPEL process, it send this
   cookie to the corresponding proxy services. These proxy services set the
   cookie as a HTTP header and invoke the back-end service.

This is kinda hacky solution. But we couldn't find a proper solution at
that time.  I would like to know whether we can do this properly in latest
release. Please let me know.

Thanks,
Sameera.

-- 
Sameera Jayasoma
Senior Technical Lead

WSO2, Inc. (http://wso2.com)
email: [email protected]
blog: http://tech.jayasoma.org

Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to