ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Winterstein" <bernd.winterst...@googlemail.com>
Subject sendsoap question
Date Mon, 05 May 2008 09:53:17 GMT
Hi I have the following wsdl implemented as a BPEL process
When i Send the following soap file with sendsoap i always get an error
Any ideas? I thought I did the same as in the HelloWorld example.


?xml version="1.0" encoding="utf-8" ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/
">
  <!-- test soap message -->
  <SOAP-ENV:Body>

    <ns1:talkNonsense xmlns:ns1="http://winterstein-it.de/NonseService/">
        <parameters xmlns="">Hello</parameters>
    </ns1:talkNonsense>

  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Caused by: org.apache.ode.axis2.OdeFault: Unexpected element in SOAP body:
message {http://winterstein-it.de/NonseService/}talkNonsense element {
http://www.w3.org/2001/XMLSchema}string.
    at
org.apache.ode.axis2.util.SoapMessageConverter.extractSoapBodyParts(SoapMessageConverter.java:408)
    at
org.apache.ode.axis2.util.SoapMessageConverter.parseSoapRequest(SoapMessageConverter.java:314)
    at
org.apache.ode.axis2.ODEService.onAxisMessageExchange(ODEService.java:106)
    ... 20 more
Caused by: java.lang.IllegalArgumentException: Unexpected element in SOAP
body: message {http://winterstein-it.de/NonseService/}talkNonsense element {
http://www.w3.org/2001/XMLSchema}string.
    at
org.apache.ode.axis2.Messages.msgUnexpectedElementInSOAPBody(Messages.java:202)
    ... 23 more




<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="http://winterstein-it.de/NonseService/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="NonseService"
    targetNamespace="http://winterstein-it.de/NonseService/"
    xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">


    <wsdl:types>
        <xsd:schema targetNamespace="http://winterstein-it.de/NonseService/
">
            <xsd:element name="NonseOp">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="test" type="xsd:string" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:schema>
    </wsdl:types>

    <wsdl:message name="nonseOpMsg">
        <wsdl:part name="parameters" element="xsd:string"/>
    </wsdl:message>

    <wsdl:portType name="NonseService">
        <wsdl:operation name="talkNonsense">
            <wsdl:input message="tns:nonseOpMsg" />
            <wsdl:output message="tns:nonseOpMsg" />
        </wsdl:operation>
    </wsdl:portType>

    <wsdl:binding name="NonseServiceSOAP" type="tns:NonseService">
        <soap:binding style="document"
            transport="http://schemas.xmlsoap.org/soap/http" />
        <wsdl:operation name="talkNonsense">
            <soap:operation soapAction=""/>
            <wsdl:input>
                <soap:body use="literal" />
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>

    <wsdl:service name="NonseService">
        <wsdl:port binding="tns:NonseServiceSOAP"
            name="NonseServiceSOAP">
            <soap:address location="
http://localhost:8080/ode/processes/nonse" />
        </wsdl:port>
    </wsdl:service>

    <plnk:partnerLinkType name="NonseServicePartnerLinkType">
        <plnk:role name="client" portType="tns:NonseService" />
        <plnk:role name="nonseImplementor" portType="tns:NonseService" />
    </plnk:partnerLinkType>

</wsdl:definitions>

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