Hi,

This can be done with BPS 3.0.0. Try out with alpha or beta released pack.

You have to add relevant http headers basically the username and password
via unified endpoints.
A sample configuration (.epr) is given below.

<wsa:Metadata>
<id>SInvokeEPR</id>
<transport type="http">
 *   <authorization-username>adminx</authorization-username> *
*    <authorization-password>adminy</authorization-password> *
</transport>
</wsa:Metadata>

FYI: [1] & [2]
[1]
https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/appfactory/modules/bpels/UserCreation/

[2]
https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/appfactory/modules/distribution/product/resources/appfactory/endpoints/UserRegistrationService.epr


Hope this helps.

Thanks
Thilini
On Tue, Aug 28, 2012 at 12:31 PM, Sameera Jayasoma <[email protected]> wrote:

> 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
>
>


-- 
*Thilini Ishaka
WSO2 Inc. http://wso2.com*
*bolg: thiliniishaka.blogspot.com*
*linkedin: http://lk.linkedin.com/in/thiliniishaka*
*twitter: https://twitter.com/#!/ThiliniIsh*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to