通过BPEL(WSO2)进行休息服务调用

时间:2019-01-29 10:32:17

标签: wso2 bpel

我是使用BPEL的WSO2的新手。我已经运行了WSO2提供的一些业务流程教程,没有出现任何问题。

我正在尝试重现this example中提供的示例。该示例适用于通过WSDL进行HTTP绑定。也就是说,从BPEL流程调用RESTful服务。 我正在尝试使用python manage.py shell < sql/import.py运行BPEL流程,但是遇到了我无法解决的错误。

错误如下:

wso2bps-3.6.0

我在不同的论坛中寻找解决方案。针对类似问题的一些答案指向[2019-01-28 18:41:42,915] ERROR {org.wso2.carbon.bpel.core.ode.integration.PartnerService} - Error sending message to Axis2 for ODE mex {PartnerRoleMex#hqejbhcnphre0kvqr4udsb [PID {http://wso2.org/bps/sample}UserRestProcess-13] calling org.apache.ode.bpel.epr.WSAEndpoint@23735512.getUserName(...) Status REQUEST} org.apache.axis2.AxisFault: The system cannot infer the transport information from the //172.17.100.63:8080/UserServiceREST/webresources/userservice/users/name/1 URL. at org.apache.axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:81) at org.apache.axis2.client.OperationClient.prepareMessageContext(OperationClient.java:288) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:176) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) at org.wso2.carbon.bpel.core.ode.integration.HTTPBindingHandler.invoke(HTTPBindingHandler.java:118) at org.wso2.carbon.bpel.core.ode.integration.PartnerService.invoke(PartnerService.java:264) at org.wso2.carbon.bpel.core.ode.integration.BPELMessageExchangeContextImpl.invokePartner(BPELMessageExchangeContextImpl.java:43) at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke(BpelRuntimeContextImpl.java:897) at org.apache.ode.bpel.runtime.INVOKE.run(INVOKE.java:140) at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(JacobVPU.java:451) at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139) at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute(BpelRuntimeContextImpl.java:1002) at org.apache.ode.bpel.engine.PartnerLinkMyRoleImpl.invokeNewInstance(PartnerLinkMyRoleImpl.java:208) at org.apache.ode.bpel.engine.BpelProcess$1.invoke(BpelProcess.java:283) at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:224) at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:279) at org.apache.ode.bpel.engine.BpelProcess.handleJobDetails(BpelProcess.java:434) at org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:558) at org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:467) at org.apache.ode.scheduler.simple.SimpleScheduler$RunJob$1.call(SimpleScheduler.java:633) at org.apache.ode.scheduler.simple.SimpleScheduler$RunJob$1.call(SimpleScheduler.java:627) at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:298) at org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:253) at org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:627) at org.apache.ode.scheduler.simple.SimpleScheduler$RunJob.call(SimpleScheduler.java:611) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) transportSenders文件中的axis2.xml。我的WSO2HOME\repository\conf\axis2中的 transportSenders 如下:

axis2.xml

关于如何解决此问题的任何提示? BPEL调用RESTful服务需要哪些传输发件人(如果这是问题)? 预先感谢您的帮助。

0 个答案:

没有答案