ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tammo van Lessen" <tvanles...@gmail.com>
Subject Re: sendsoap question
Date Mon, 05 May 2008 11:33:18 GMT
Hi Bernd,

for the given WSDL interface the correct doc/lit SOAP request would be
without the <ns1:talkNonsense> element. I guess that you actually
meant to use the tns:NonseOp type as an element type for the part?
i.e.

 <wsdl:message name="nonseOpMsg">
       <wsdl:part name="parameters" element="tns:NonseOp"/>
 </wsdl:message>

HTH,
  Tammo

On Mon, May 5, 2008 at 11:53 AM, Bernd Winterstein
<bernd.winterstein@googlemail.com> wrote:
> 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>
>



-- 
Tammo van Lessen - tvanlessen@gmail.com - http://www.taval.de

Mime
View raw message