ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthieu Riou" <matth...@offthelip.org>
Subject Re: Problems while running the helloWorld Sample
Date Wed, 19 Dec 2007 15:39:53 GMT
Hi Julia,

Id need to see the message you send to the engine to check what's wrong with
it when compared to what's declared in your WSDL document. Your SOAP body
should contain an element named
{http://eclipse.org/bpel/sample}HelloWorldRequest
and from what the error message says, it doesn't.

If you're unsure about the exact message being sent you could set the
org.apache.ode.axis2 category to DEBUG, that would should every message
going in and out of ODE.

Thanks,
Matthieu

On Dec 19, 2007 7:11 AM, Julia Bauer <julia_bauer2911@yahoo.de> wrote:

> Hello everybody,
>
> Im using Eclipse BPEL Plugin to create my BPEL Files. I'm getting the
> following error:
>
> style=ONE_WAY,0
> Input: name=null
> Message: name={http://eclipse.org/bpel/sample}HelloWorldRequestMessage<http://eclipse.org/bpel/sample%7DHelloWorldRequestMessage>
> Part: name=payload
> elementName={http://eclipse.org/bpel/sample}HelloWorldRequest<http://eclipse.org/bpel/sample%7DHelloWorldRequest>from
service {
> http://eclipse.org/bpel/sample}HelloService<http://eclipse.org/bpel/sample%7DHelloService>
> ERROR - GeronimoLog.error(108) | Exception occured while invoking ODE
> org.apache.ode.axis2.OdeFault: Unexpected element in SOAP body: message {
> http://eclipse.org/bpel/sample}initiate<http://eclipse.org/bpel/sample%7Dinitiate>element
{
> http://eclipse.org/bpel/sample}HelloWorldRequest<http://eclipse.org/bpel/sample%7DHelloWorldRequest>
> .
>        at
> org.apache.ode.axis2.util.SoapMessageConverter.extractSoapBodyParts(
> SoapMessageConverter.java:392)
> ........
>
> My wsdl-file:
> <?xml version="1.0"?>
> <definitions name="HelloWorld"
>        targetNamespace="http://eclipse.org/bpel/sample"
>        xmlns:tns="http://eclipse.org/bpel/sample"
>        xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
>        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>        xmlns="http://schemas.xmlsoap.org/wsdl/"
>        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>        >
> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     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://eclipse.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 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="HelloWorld">
>        <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>
>
>    <binding name="HelloSoapBinding" type="tns:HelloWorld">
>                http://schemas.xmlsoap.org/soap/http"/>
>                <operation name="initiate">
>                        <soap:operation soapAction="" style="document"/>
>                        <input>
>                                http://eclipse.org/bpel/sample"/>
>                        </input>
>                        <output>
>                                http://eclipse.org/bpel/sample"/>
>                        </output>
>                </operation>
>        </binding>
>
>        <service name="HelloService">
>                <port name="HelloPort" binding="tns:HelloSoapBinding">
>                        http://localhost:8080/ode/processes/helloWorld"/>
>                </port>
>        </service>
>
> <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     PARTNER LINK TYPE DEFINITION
>         the HelloWorld partnerLinkType binds the provider and
>         requester portType into an asynchronous conversation.
>     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> -->
>    <plnk:partnerLinkType name="HelloWorld">
>        <plnk:role name="HelloWorldProvider" portType="tns:HelloWorld"/>
>        <plnk:role name="HelloWorldRequester"
> portType="tns:HelloWorldCallback"/>
>    </plnk:partnerLinkType>
> </definitions>
>
> My bpel file:
> <?xml version="1.0" encoding="UTF-8"?>
> <bpws:process exitOnStandardFault="yes" name="HelloWorld"
>    suppressJoinFailure="yes"
>    targetNamespace="http://eclipse.org/bpel/sample"
>    xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
> xmlns:tns="http://eclipse.org/bpel/sample">
>
>        location="HelloWorld.wsdl" namespace="
> http://eclipse.org/bpel/sample"/>
>    <bpws:partnerLinks>
>        <bpws:partnerLink myRole="HelloWorldProvider" name="client"
>            partnerLinkType="tns:HelloWorld"
> partnerRole="HelloWorldRequester"/>
>    </bpws:partnerLinks>
>    <bpws:variables>
>        <bpws:variable messageType="tns:HelloWorldRequestMessage"
> name="input"/>
>        <bpws:variable messageType="tns:HelloWorldResponseMessage"
> name="output"/>
>    </bpws:variables>
>    <bpws:sequence name="main">
>        <bpws:receive createInstance="yes" name="receiveInput"
>            operation="initiate" partnerLink="client"
>            portType="tns:HelloWorld" variable="input"/>
>        <bpws:assign name="Assign" validate="no">
>            <bpws:copy>
>                <bpws:from><![CDATA[concat("Hello,
> ",$input.payload/tns:input)]]></bpws:from>
>                <bpws:to part="payload" variable="output">
>                    <bpws:query queryLanguage="urn:oasis:names:tc:wsbpel:
> 2.0:sublang:xpath1.0"><![CDATA[/tns:result]]></bpws:query>
>                </bpws:to>
>            </bpws:copy>
>        </bpws:assign>
>        <bpws:invoke inputVariable="output" name="callbackClient"
>            operation="onResult" partnerLink="client"
> portType="tns:HelloWorldCallback"/>
>    </bpws:sequence>
> </bpws:process>
>
> My deploy.xml:
>
>    xmlns:pns="http://eclipse.org/bpel/sample"
>    xmlns:wns="http://eclipse.org/bpel/sample">
>
>    <process name="pns:HelloWorld">
>        <active>true</active>
>        <provide partnerLink="client">
>            <service name="wns:HelloService" port="HelloPort"/>
>        </provide>
>        <invoke partnerLink="client">
>            <service name="wns:HelloService" port="HelloPort"/>
>        </invoke>
>    </process>
> </deploy>
>
>
> Im running on Apache Tomcat and WindowsXP.
> Any help would be appreciated.
>
>
>
>
>        __________________________________  Ihr erstes Baby? Holen Sie sich
> Tipps von anderen Eltern.  www.yahoo.de/clever

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message