Hi ,
I am trying to deploy the BPEL process to call Webservice Asynchronously in
apache-ODE but it is giving me the following exception
ERROR - GeronimoLog.error(108) | Deployment of PartnerDataService failed,
aborti
ng for now.
org.apache.ode.bpel.iapi.ContextException: Could not activate endpoint for
servi
ce {http://www.openuri.org/}PartnerAdapterService and port
PartnerAdapterService
Soap
at
org.apache.ode.axis2.BindingContextImpl.activateMyRoleEndpoint(Bindin
gContextImpl.java:62)
at
org.apache.ode.bpel.engine.BpelProcess.activate(BpelProcess.java:510)
at
org.apache.ode.bpel.engine.BpelEngineImpl.registerProcess(BpelEngineI
mpl.java:232)
at
org.apache.ode.bpel.engine.BpelServerImpl.register(BpelServerImpl.jav
a:282)
at org.apache.ode.axis2.ODEServer.handleEvent(ODEServer.java:579)
at org.apache.ode.axis2.ODEServer.access$100(ODEServer.java:78)
at
org.apache.ode.axis2.ODEServer$ProcessStoreListenerImpl.onProcessStor
eEvent(ODEServer.java:566)
at
org.apache.ode.store.ProcessStoreImpl.fireEvent(ProcessStoreImpl.java
:500)
at
org.apache.ode.store.ProcessStoreImpl.fireStateChange(ProcessStoreImp
l.java:506)
at
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:28
4)
at
org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.j
ava:144)
at
org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPol
ler.java:55)
at
org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(Deploy
mentPoller.java:188)
Caused by: org.apache.ode.axis2.OdeFault: The soap:address used for service
WSDL
definition {http://www.openuri.org/}PartnerAdapterService and port
PartnerAdapt
erServiceSoap should be of the form
http://hostname:port/ode/processes/myProcess
EndpointName
at
org.apache.ode.axis2.hooks.ODEAxisService.extractServiceName(ODEAxisS
ervice.java:169)
at
org.apache.ode.axis2.hooks.ODEAxisService.createService(ODEAxisServic
e.java:65)
at org.apache.ode.axis2.ODEServer.createService(ODEServer.java:317)
at
org.apache.ode.axis2.BindingContextImpl.activateMyRoleEndpoint(Bindin
gContextImpl.java:59)
... 12 more
I have attached BPEL Process in text format.Please let me know how to
resolve the problem.
Also Please let me know if there is any example on Asynchronous response or
any pointers.
Thanks & Regards,
Pavan.
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the
property of Persistent Systems Ltd. It is intended only for the use of the
individual or entity to which it is addressed. If you are not the intended
recipient, you are not authorized to read, retain, copy, print, distribute or
use this message. If you have received this communication in error, please
notify the sender and delete all copies of this message. Persistent Systems
Ltd. does not accept any liability for virus infected mails.
<?xml version="1.0" encoding="UTF-8"?>
<process name="GetPartnerDataService"
targetNamespace="http://www.openuri.org/"
xmlns:tns="http://www.openuri.org/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ctrl="http://www.bea.com/workshop/bpel/ctrl"
xmlns:wli="http://www.bea.com/workshop/bpel/wli"
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:jpd="http://www.bea.com/wli/jpd"
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:cha="http://channelpartner.prm.covad.com">
<import importType="http://schemas.xmlsoap.org/wsdl/"
location="GetPartnerDataService.wsdl"
namespace="http://www.bea.com/wli/jpd"/>
<import importType="http://schemas.xmlsoap.org/wsdl/"
location="PartnerDataServiceControl.wsdl"
namespace="http://www.openuri.org/"/>
<partnerLinks>
<partnerLink myRole="provider" partnerLinkType="jpd:GetPartnerDataService"
name="GetPartnerDataService"/>
<!-- Added myRole="PartnerAdapterServiceCallBackProvider" for Asynchronous
-->
<partnerLink name="PartnerAdapterServiceRequestingPL"
partnerLinkType="tns:PartnerAdapterService"
myRole="PartnerAdapterServiceCallBackProvider"
partnerRole="PartnerAdapterServiceProvider" initializePartnerRole="false"/>
</partnerLinks>
<variables>
<variable name="requestType" messageType="tns:getPartnerDataSoapIn" />
<variable name="responseType" messageType="tns:getPartnerDataSoapOut" />
</variables>
<!-- Added for Asynchronous -->
<correlationSets>
<correlationSet name="PartnerCorrelationSet"
properties="tns:orderID"/>
</correlationSets>
<sequence name="Client-Request-with-Return" jpd:name="Client Request with
Return">
<scope>
<variables>
<variable name="input"
messageType="jpd:com.covad.esb.channelpartner.processes.GetPartnerDataService_clientRequestwithReturnMsg"/>
</variables>
<receive name="Client-Request-with-Return" jpd:name="Client Request with
Return" partnerLink="GetPartnerDataService" portType="jpd:providerPT"
operation="clientRequestwithReturn" variable="input" createInstance="yes"/>
</scope>
<scope>
<variables>
<variable name="output"
messageType="jpd:com.covad.esb.channelpartner.processes.GetPartnerDataService_clientReturnMsg"/>
</variables>
<sequence name="return-for--Client-Request-with-Return-" jpd:name="return
for 'Client Request with Return'">
<ext:failureHandling xmlns:ext="http://ode.apache.org/activityRecovery">
<ext:faultOnFailure>true</ext:faultOnFailure>
</ext:failureHandling>
<assign>
<copy>
<from>
<literal>
<getPartnerDataIn>dummy</getPartnerDataIn>
</literal>
</from>
<to variable="requestType" part="parameters" />
</copy>
</assign>
<!-- Added correlations element and removed
outputVariable="responseType" for Asynchronous -->
<invoke inputVariable="requestType"
name="callPartnerDataService"
operation="getPartnerData"
partnerLink="PartnerAdapterServiceRequestingPL"
portType="PartnerAdapterServiceSoap">
<correlations>
<correlation set="PartnerCorrelationSet"
initiate="yes"/>
</correlations>
<catchAll>
<assign>
<copy>
<from>
<literal>
<ErrorResponse>
<errorCode>1</errorCode>
<message>Failed to invoke Partner
Link</message>
</ErrorResponse>
</literal>
</from>
<bpws:to variable="responseType" part="parameters"/>
</copy>
</assign>
</catchAll>
</invoke>
<!-- Added for Asynchronous -->
<pick name="Event_Based_Decision"
createInstance="no">
<onMessage partnerLink="PartnerAdapterServiceRequestingPL"
portType="invs:inventoryServiceCallbackPortType"
operation="getPartnerData"
variable="responseType">
<correlations>
<correlation set="PartnerCorrelationSet"
initiate="no"/>
</correlations>
<assign>
<copy>
<from variable="responseType" part="parameters"/>
<to variable="output" part="parameters"/>
</copy>
</assign>
<reply name="return-for--Client-Request-with-Return-" jpd:name="return
for 'Client Request with Return'" partnerLink="GetPartnerDataService"
portType="jpd:providerPT" variable="output"
operation="clientRequestwithReturn"/>
</onMessage>
</pick>
<assign>
<copy>
<from variable="responseType" part="parameters"/>
<to variable="output" part="parameters"/>
</copy>
</assign>
<reply name="return-for--Client-Request-with-Return-" jpd:name="return
for 'Client Request with Return'" partnerLink="GetPartnerDataService"
portType="jpd:providerPT" variable="output"
operation="clientRequestwithReturn"/>
</sequence>
</scope>
</sequence>
</process>