ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "NGUYEN Cong Kinh" <ngu...@telecom-paristech.fr>
Subject Re: Problem invoking external web service
Date Wed, 10 Sep 2008 15:52:23 GMT
Hi all,

In fact, there are some bizarre errors in BPEL with apache-ode. In my
experience, almost bizarre errors concern variables.

I see there are two bizarre things in your BPEL:

        <bpws:variable messageType="ns0:getSumRequest" name="aIn">
            <bpws:from/>
        </bpws:variable>
        <bpws:variable messageType="ns0:getSumResponse" name="aOut">
            <bpws:from/>

I don't understand why you declare <bpws:from /> in variable declaration
in BPEL.

In addition, to invoke a service, in the deployment file, there are some
differences. For example in two files following:

1) <?xml version="1.0" encoding="UTF-8"?>
<deploy xmlns="http://ode.fivesight.com/schemas/2006/06/27/dd"
    xmlns:pns="http://www.ibm.com/wd2/ode/HelloWorld"
    xmlns:wns="http://www.ibm.com/wd2/ode/HelloWorld">
  <process name="pns:HelloWorld">
    <active>true</active>
    <provide partnerLink="client">
      <service name="wns:HelloWorldService" port="HelloWorldPort"/>
    </provide>
  </process>
  </deploy>

2)<?xml version="1.0" encoding="UTF-8"?>
<deploy xmlns="http://ode.fivesight.com/schemas/2006/06/27/dd"
    xmlns:pns="http://www.tsi.enst.fr/paam"
    xmlns:wns="http://www.tsi.enst.fr/paam"
    xmlns:vns="http://paam">
  <process name="pns:WsComposition4Elements">
    <active>true</active>
    <provide partnerLink="client">
      <service name="wns:WsComposition4ElementsService"
port="WsComposition4ElementsPort"/>
    </provide>
      <invoke partnerLink="linkVideo">
      		<service name="vns:VideoService" port="Video"/>
      </invoke>
  </process>
  </deploy>


You see in the second file, there is an declaration of invoking a extern
service. If you can't yet solve your BPEL. It must send all of
informations as BPEL, .wsdl, deploy.xml, etc. (to be capable to test).




> Something new in output messages:
>
> <?xml version='1.0' encoding='UTF-8'?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> "><soapenv:Body>
> <soapenv:Fault xmlns:soapenv="http://incubator.apache.org/ode
> "><faultcode>soapenv:Fault</faultcode><faultstring>
> Timeout or execution error when waiting for response to MEX
> {MyRoleMex#hqejbhcnp
> hr3kx3vfwim7f [Client hqejbhcnphr3kx3vfwim7e]
> calling {http://proc}NewService.operazioni(...)}
> java.util.concurrent.TimeoutException: Message exchange
> org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture@f0bf3dtimed
> out when
>  waiting for a
> response!</faultstring><detail><Exception>org.apache.ode.axis2.Od
> eFault: Timeout or execution error when waiting for response to MEX
> {MyRoleMex#h
> qejbhcnphr3kx3vfwim7f [Client hqejbhcnphr3kx3vfwim7e] calling
> {http://proc}NewService.operazioni(...)}
> java.util.concurrent.TimeoutException: Message exchange
> org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture@f0bf3dtimed
> out when waiting for a response!&#xd;
>         at
> org.apache.ode.axis2.ODEService.onAxisMessageExchange(ODEService.java:154)&#xd;
>         at
> org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMessageReceiver.java:67)&#xd;
>         at
> org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMessageReceiver.java:50)&#xd;
>         at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)&#xd;
>         at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)&#xd;
>         at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)&#xd;
>         at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)&#xd;
>         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)&#xd;
>         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)&#xd;
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)&#xd;
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)&#xd;
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)&#xd;
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)&#xd;
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)&#xd;
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)&#xd;
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)&#xd;
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)&#xd;
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)&#xd;
>         at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)&#xd;
>         at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)&#xd;
>         at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)&#xd;
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)&#xd;
>         at java.lang.Thread.run(Unknown Source)&#xd;
> </Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
>


-- 
NGUYEN Cong Kinh


Mime
View raw message