Monday, October 22, 2012

Invoking WSO2 Carbon Admin Services using BPEL

(1) UEP Approach [Relevant to: BPS 3.0.0]
Add basic auth credentials (username and password) as http headers in unified endpoint configuration.

A sample configuration (.epr) is shown below.

<wsa:EndpointReference
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.w3schools.com uep_schema.xsd"
        xmlns:wsa="http://www.w3.org/2005/08/addressing"
        xmlns:wsdl11="http://schemas.xmlsoap.org/wsdl/">
   <wsa:Address>https://localhost:9443/services/UserRegistrationService</wsa:Address>
   <wsa:Metadata>
           <id>SInvokeEPR</id>
           <transport type="http">
     <authorization-username>admin</authorization-username>
    <authorization-password>admin</authorization-password>
           </transport>
       </wsa:Metadata>
</wsa:EndpointReference>

A Sample is available at [1].


(2) Using a proxy service [Relevant to: BPS 3.0.0 and older (carbon 3.2.* ) versions]
First login to AuthenticationAdmin service and get a authenticated cookie, that cookie value can be used for all subsequent invocations.

  • BPEL process invokes the login method in the AuthenticationAdminProxy service which in turn invokes the backend servers' AuthenticationAdmin service. On the return path, this proxy service retrieves the authenticated cookie and sends to BPEL as value in the SOAP message, so the BPEL can keep this value in a variable.
  • For all the subsequent requests from the BPEL process, it sends this cookie to the corresponding proxy services. These proxy services set the cookie as a HTTP header and invoke the backend service.

3 comments:

  1. Could you please tell me the step by step process for How can we consuming WSO2 ESB service USING WSO2 BPS(BPEL

    ReplyDelete
  2. You can call do a web service call via an invoke activity. Get the admin service wsdl and follow the above steps.

    ReplyDelete
  3. BPEL Admin Online Training, ONLINE TRAINING – IT SUPPORT – CORPORATE TRAINING http://www.21cssindia.com/courses/bpel-admin-online-training-65.html The 21st Century Software Solutions of India offers one of the Largest conglomerations of Software Training, IT Support, Corporate Training institute in India - +919000444287 - +917386622889 - Visakhapatnam,Hyderabad BPEL Admin Online Training, BPEL Admin Training, BPEL Admin, BPEL Admin Online Training| BPEL Admin Training| BPEL Admin| "Courses at 21st Century Software Solutions
    Talend Online Training -Hyperion Online Training - IBM Unica Online Training - Siteminder Online Training - SharePoint Online Training - Informatica Online Training - SalesForce Online Training - Many more… | Call Us +917386622889 - +919000444287 - contact@21cssindia.com
    Visit: http://www.21cssindia.com/courses.html"

    ReplyDelete