Saturday, 17 June 2017

OER-How To Retrieve Authtoken And Use In REX Calls Uing Bpel

How to Retrieve an AuthToken and use in REX Calls  Using Bpel

a)To invoke Rex API  from Bpel Use the below mentioned wsdlurl -

http://host:port/oer/services/RexAPI?wsdl


b)Create a Simple bpel service and bind the wsdl using SOAP Binding.Download the wsdl from url as mentioned in previous step.

















c) Drag An Invoke Activity and map with REX API external references created in step b ,use Operation  ‘Authtokencreate’ for this activity as shown in below screenshot.


















d) Drag an assign activity and update username and password accordingly











e) Go to composite.xml make sure –wsdl location for Reference API is updated accordingly






f)Testing And Comments :
Deploy your services ,On testing it should response with AuthToken  as  highlighted  in below screenshot:






No comments:

Post a Comment