You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Bruce Snyder <br...@gmail.com> on 2007/08/17 00:04:55 UTC

Re: Getting WstxParsingException when invoking web service

On 7/30/07, smixuser <cl...@compuware.com> wrote:
>
> I have a service assembly deployed into ServiceMix.  I modified the
> client.html shipped with the wsdl-first example and when I invoke the web
> service, I receive the exception below.  I've attached the service assembly
> and the client.html.  Please help.  Thanks
>
> STATUS: 500
> <?xml version='1.0' encoding='UTF-8'?><env:Envelope
> xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><env:Fault><faultcode>env:Server</faultcode><faultstring>Could
> not read XML stream.. Nested exception is
> com.ctc.wstx.exc.WstxParsingException: Expected a text token, got
> START_ELEMENT.&#xd;
>  at [row,col {unknown-source}]:
> [6,16]</faultstring><detail><stack>org.codehaus.xfire.fault.XFireFault:
> Could not read XML stream.. Nested exception is
> com.ctc.wstx.exc.WstxParsingException: Expected a text token, got
> START_ELEMENT.
>  at [row,col {unknown-source}]: [6,16]

Based on the error above, I extracted your WSDL from the ZIP file and
then the XSD from the ZIP file. It appears that the error is due to
the fact that neither the WSDL nor the XSD defines anything to match
the XML you are sending:

    <tns:GetPersonRequest>
      <tns:personId>world</tns:personId>
    </tns:GetPersonRequest>

I.e., there is no GetPersonRequest element defined anywhere.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Castor - http://castor.org/