ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anup Chandran <anup.chand...@3ds.com>
Subject Deploying processes to Apache Ode
Date Mon, 30 Jul 2007 14:47:26 GMT

I was trying to invoke the process that i successfully deployed on ODE.

The WSDL definition is :

<?xml version="1.0"?>
<definitions name="HelloWorld"
        targetNamespace="http://sample.bpel.org/bpel/sample"
        xmlns:tns="http://sample.bpel.org/bpel/sample"
        xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/"
        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
        xmlns="http://schemas.xmlsoap.org/wsdl/"
        >

<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     TYPE DEFINITION - List of services participating in this BPEL process 
     The default output of the BPEL designer uses strings as input and 
     output to the BPEL Process. But you can define or import any XML 
     Schema type and us them as part of the message types.
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->    
    <types>  
        <schema attributeFormDefault="unqualified" 
                elementFormDefault="qualified" 
                targetNamespace="http://sample.bpel.org/bpel/sample" 
                xmlns="http://www.w3.org/2001/XMLSchema"
                >
                
            <element name="HelloWorldRequest">
                <complexType>
                    <sequence>
                        <element name="input" type="string" />
                    </sequence>
                </complexType>
            </element>
                  
            <element name="HelloWorldResponse">
                <complexType>
                    <sequence>
                        <element name="result" type="string"/>
                    </sequence>
                </complexType>
            </element>
            
        </schema>
    </types>
  
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     MESSAGE TYPE DEFINITION - Definition of the message types used as 
     part of the port type defintions
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->    
    <message name="HelloWorldRequestMessage">
        <part name="payload" element="tns:HelloWorldRequest"/>
    </message>
    
    <message name="HelloWorldResponseMessage">
        <part name="payload" element="tns:HelloWorldResponse"/>
    </message>


<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     PORT TYPE DEFINITION - A port type groups a set of operations into
     a logical service unit.
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->
    <!-- portType implemented by the HelloWorld BPEL process -->
    <portType name="MyHelloWorld">
        <operation name="initiate">
            <input message="tns:HelloWorldRequestMessage"/>
        </operation>
    </portType>

    <!-- portType implemented by the requester of HelloWorld BPEL process 
         for asynchronous callback purposes
         -->
    <portType name="HelloWorldCallback">
        <operation name="onResult">
            <input message="tns:HelloWorldResponseMessage"/>
        </operation>
    </portType>


<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     PARTNER LINK TYPE DEFINITION
         the HelloWorld partnerLinkType binds the provider and
         requester portType into an asynchronous conversation.
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-->    
    <plnk:partnerLinkType name="MyHelloWorld">
        <plnk:role name="HelloWorldProvider" portType="tns:MyHelloWorld"/>
        <plnk:role name="HelloWorldRequester"
portType="tns:HelloWorldCallback"/>
    </plnk:partnerLinkType> 
    

<binding name="HelloWorldSoapBinding" type="tns:MyHelloWorld">
        <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="initiate">
           <soap:operation soapAction="http://sample.bpel.org/bpel/sample"/>
           <input>
               <soap:body use="literal"/>
           </input>
        </operation>
    </binding>

<binding name="HelloWorldResponseSoapBinding" type="tns:HelloWorldCallback">
        <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="onResult">
           <soap:operation soapAction="http://sample.bpel.org/bpel/sample"/>
           <input>
               <soap:body use="literal"/>
           </input>
        </operation>
    </binding>


    <service name="MyHelloWorldService">
        <documentation>Test service</documentation>
        <port name="MyHelloWorld" binding="tns:HelloWorldSoapBinding">
           <soap:address
location="http://localhost:8080/ode/processes/myhelloWorld"/>
        </port>
    </service>

    <service name="MyHelloWorldResponderService">
        <documentation>Test service</documentation>
        <port name="HelloWorldCallbackPort"
binding="tns:HelloWorldResponseSoapBinding">
           <soap:address
location="http://localhost:8080/ode/processes/myhelloWorldResponse"/>
        </port>
    </service>

</definitions>


The soap message / request is :

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <!-- test soap message -->
  <SOAP-ENV:Body>
    <ns1:initiate xmlns:ns1="http://ode/bpel/unit-test.wsdl">
        <payload><HelloWorldRequest
xmlns=""><input>Hello</input></HelloWorldRequest></payload>
    </ns1:initiate>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


This is the error :

10:43:11,608 DEBUG [ODEAxisDispatcher] Found operation
org.apache.axis2.descript
ion.InOnlyAxisOperation@114e1a
DEBUG - GeronimoLog.debug(66) | Received one-way message for
myhelloWorld.initia
te
10:43:11,608 DEBUG [ODEMessageReceiver] Received one-way message for
myhelloWorl
d.initiate
DEBUG - GeronimoLog.debug(66) | Starting transaction.
10:43:11,608 DEBUG [ODEService] Starting transaction.
DEBUG - GeronimoLog.debug(66) | Routed: svcQname
{http://sample.bpel.org/bpel/sa
mple}MyHelloWorldService -->
BpelProcess[{http://sample.bpel.org/bpel/sample}Hel
loWorld-21]
10:43:11,618 DEBUG [BpelEngineImpl] Routed: svcQname
{http://sample.bpel.org/bpe
l/sample}MyHelloWorldService -->
BpelProcess[{http://sample.bpel.org/bpel/sample
}HelloWorld-21]
DEBUG - GeronimoLog.trace(54) |
Mex[hqejbhcnphr2glu7l5d6km].setPortOp(PortType:
name={http://sample.bpel.org/bpel/sample}MyHelloWorld
Operation: name=initiate
style=ONE_WAY,0
Input: name=null
Message: name={http://sample.bpel.org/bpel/sample}HelloWorldRequestMessage
Part: name=payload
elementName={http://sample.bpel.org/bpel/sample}HelloWorldRequest,Operation:
nam
e=initiate
style=ONE_WAY,0
Input: name=null
Message: name={http://sample.bpel.org/bpel/sample}HelloWorldRequestMessage
Part: name=payload
elementName={http://sample.bpel.org/bpel/sample}HelloWorldRequest)
10:43:11,618 DEBUG [MessageExchangeImpl]
Mex[hqejbhcnphr2glu7l5d6km].setPortOp(P
ortType: name={http://sample.bpel.org/bpel/sample}MyHelloWorld
Operation: name=initiate
style=ONE_WAY,0
Input: name=null
Message: name={http://sample.bpel.org/bpel/sample}HelloWorldRequestMessage
Part: name=payload
elementName={http://sample.bpel.org/bpel/sample}HelloWorldRequest,Operation:
nam
e=initiate
style=ONE_WAY,0
Input: name=null
Message: name={http://sample.bpel.org/bpel/sample}HelloWorldRequestMessage
Part: name=payload
elementName={http://sample.bpel.org/bpel/sample}HelloWorldRequest)
DEBUG - GeronimoLog.debug(66) | ODE routed to operation Operation:
name=initiate

style=ONE_WAY,0
Input: name=null
Message: name={http://sample.bpel.org/bpel/sample}HelloWorldRequestMessage
Part: name=payload
elementName={http://sample.bpel.org/bpel/sample}HelloWorldRequest from
service {
http://sample.bpel.org/bpel/sample}MyHelloWorldService
10:43:11,628 DEBUG [ODEService] ODE routed to operation Operation:
name=initiate

style=ONE_WAY,0
Input: name=null
Message: name={http://sample.bpel.org/bpel/sample}HelloWorldRequestMessage
Part: name=payload
elementName={http://sample.bpel.org/bpel/sample}HelloWorldRequest from
service {
http://sample.bpel.org/bpel/sample}MyHelloWorldService
ERROR - GeronimoLog.error(108) | Exception occured while invoking ODE
org.apache.ode.axis2.OdeFault: SOAP body does not contain expected part
wrapper:
 service {http://sample.bpel.org/bpel/sample}MyHelloWorldService port
MyHelloWor
ld wrapper initiate; nested exception is:
        java.lang.IllegalArgumentException: SOAP body does not contain
expected
part wrapper: service
{http://sample.bpel.org/bpel/sample}MyHelloWorldService po
rt MyHelloWorld wrapper initiate
        at
org.apache.ode.axis2.util.SoapMessageConverter.extractSoapBodyParts(S
oapMessageConverter.java:358)
        at
org.apache.ode.axis2.util.SoapMessageConverter.parseSoapRequest(SoapM
essageConverter.java:292)
        at
org.apache.ode.axis2.ODEService.onAxisMessageExchange(ODEService.java
:118)
        at
org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODE
MessageReceiver.java:68)
        at
org.apache.ode.axis2.hooks.ODEMessageReceiver.receive(ODEMessageRecei
ver.java:62)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497)
        at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
uest(HTTPTransportUtils.java:328)
        at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:2
54)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalArgumentException: SOAP body does not contain
expect
ed part wrapper: service
{http://sample.bpel.org/bpel/sample}MyHelloWorldService
 port MyHelloWorld wrapper initiate
        at
org.apache.ode.axis2.Messages.msgSoapBodyDoesNotContainExpectedPartWr
apper(Messages.java:235)
        ... 24 more
10:43:11,628 ERROR [ODEService] Exception occured while invoking ODE
org.apache.ode.axis2.OdeFault: SOAP body does not contain expected part
wrapper:
 service {http://sample.bpel.org/bpel/sample}MyHelloWorldService port
MyHelloWor
ld wrapper initiate; nested exception is:
        java.lang.IllegalArgumentException: SOAP body does not contain
expected
part wrapper: service
{http://sample.bpel.org/bpel/sample}MyHelloWorldService po
rt MyHelloWorld wrapper initiate
        at
org.apache.ode.axis2.util.SoapMessageConverter.extractSoapBodyParts(S
oapMessageConverter.java:358)
        at
org.apache.ode.axis2.util.SoapMessageConverter.parseSoapRequest(SoapM
essageConverter.java:292)
        at
org.apache.ode.axis2.ODEService.onAxisMessageExchange(ODEService.java
:118)
        at
org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODE
MessageReceiver.java:68)
        at
org.apache.ode.axis2.hooks.ODEMessageReceiver.receive(ODEMessageRecei
ver.java:62)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497)
        at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
uest(HTTPTransportUtils.java:328)
        at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:2
54)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalArgumentException: SOAP body does not contain
expect
ed part wrapper: service
{http://sample.bpel.org/bpel/sample}MyHelloWorldService
 port MyHelloWorld wrapper initiate
        at
org.apache.ode.axis2.Messages.msgSoapBodyDoesNotContainExpectedPartWr
apper(Messages.java:235)

Any ideas what is happening? initiate is declared in the wsdl.
-- 
View this message in context: http://www.nabble.com/Deploying-processes-to-Apache-Ode-tf4170521.html#a11864601
Sent from the Apache Ode User mailing list archive at Nabble.com.


Mime
View raw message