You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Anthony Webster <aw...@gmail.com> on 2011/06/30 15:23:59 UTC
Problem Unmarshalling...
Hello,
Could someone explain why the following works :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
" xmlns:mod="http://modalities.services.gitta.tentelemed.com/">
<soapenv:Header/>
<soapenv:Body>
<mod:GetResultsCount>
<uuid>v</uuid>
<label>fd</label>
</mod:GetResultsCount>
</soapenv:Body>
</soapenv:Envelope>
whereas this doesn't :
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" >
<s:Body>
<GetResultsCount xmlns="http://modalities.services.gitta.tentelemed.com/">
<uuid a:nil="true" xmlns:a="http://www.w3.org/2001/XMLSchema-instance"/>
<label a:nil="true" xmlns:a="http://www.w3.org/2001/XMLSchema-instance"/>
</GetResultsCount>
</s:Body>
</s:Envelope>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:Client</faultcode>
<faultstring>Unmarshalling Error: unexpected element (uri:"
http://modalities.services.gitta.tentelemed.com/", local:"uuid"). Expected
elements are <{}label>,<{}uuid></faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>
Is there a way to ensure that calls like the second one can work?
Thanks,
Anthony
Re: Problem Unmarshalling...
Posted by Daniel Kulp <dk...@apache.org>.
On Thursday, June 30, 2011 4:24:32 PM Anthony Webster wrote:
> Well the context is that the first call is generated by SoapUI and works
> fine whereas the second call was made by a .NET client and it doesn't work.
> So I was wondering if I need to change anything on my CXF server in order
> for similar .NET calls to work...
I assume this is a java first service? If so, add the targetNamespace
attribute to the @WebParam annotations to define the namespace you want them
in. Most likely, the same as the targetNamesapce on the @webService
annotation.
Dan
> Anthony
>
> On 30 June 2011 15:48, Freeman Fang <fr...@gmail.com> wrote:
> > Those two are actually different soap messages.
> > The major difference is that first one uuid/label has no namespace, but
> > the second one uuid/label has namespace http://modalities.services.**
> > gitta.tentelemed.com/
> > <http://modalities.services.gitta.tentelemed.com/>
> >
> > Freeman
> >
> > On 2011-6-30, at 下午9:23, Anthony Webster wrote:
> > Hello,
> >
> >> Could someone explain why the following works :
> >>
> >> <soapenv:Envelope xmlns:soapenv="http://schemas.**
> >> xmlsoap.org/soap/envelope/ <http://schemas.xmlsoap.org/soap/envelope/>
> >> "
> >> xmlns:mod="http://modalities.**services.gitta.tentelemed.com/<http://
> >> modalities.services.gitta.tentelemed.com/> **">
> >>
> >> <soapenv:Header/>
> >> <soapenv:Body>
> >>
> >> <mod:GetResultsCount>
> >>
> >> <uuid>v</uuid>
> >> <label>fd</label>
> >>
> >> </mod:GetResultsCount>
> >>
> >> </soapenv:Body>
> >>
> >> </soapenv:Envelope>
> >>
> >> whereas this doesn't :
> >>
> >> <s:Envelope
> >> xmlns:s="http://schemas.**xmlsoap.org/soap/envelope/<http://schemas.x
> >> mlsoap.org/soap/envelope/>"
> >>
> >> <s:Body>
> >> <GetResultsCount xmlns="http://modalities.**
> >> services.gitta.tentelemed.com/<http://modalities.services.gitta.tentel
> >> emed.com/> **">
> >> <uuid a:nil="true"
> >> xmlns:a="http://www.w3.org/**2001/XMLSchema-instance<http://www.w3.or
> >> g/2001/XMLSchema-instance> "/>
> >> <label a:nil="true"
> >> xmlns:a="http://www.w3.org/**2001/XMLSchema-instance<http://www.w3.or
> >> g/2001/XMLSchema-instance> "/>
> >> </GetResultsCount>
> >> </s:Body>
> >> </s:Envelope>
> >>
> >> <soap:Envelope
> >> xmlns:soap="http://schemas.**xmlsoap.org/soap/envelope/<http://schema
> >> s.xmlsoap.org/soap/envelope/> ">
> >>
> >> <soap:Body>
> >>
> >> <soap:Fault>
> >>
> >> <faultcode>soap:Client</**faultcode>
> >> <faultstring>Unmarshalling Error: unexpected element
> >> (uri:"
> >>
> >> http://modalities.services.**gitta.tentelemed.com/<http://modalities.s
> >> ervices.gitta.tentelemed.com/>", local:"uuid"). Expected
> >> elements are <{}label>,<{}uuid></**faultstring>
> >>
> >> </soap:Fault>
> >>
> >> </soap:Body>
> >>
> >> </soap:Envelope>
> >>
> >> Is there a way to ensure that calls like the second one can work?
> >>
> >> Thanks,
> >>
> >> Anthony
> >
> > ------------------------------**---------------
> > Freeman Fang
> >
> > FuseSource
> > Email:ffang@fusesource.com
> > Web: fusesource.com
> > Twitter: freemanfang
> > Blog: http://freemanfang.blogspot.**com
> > <http://freemanfang.blogspot.com>
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com
Re: Problem Unmarshalling...
Posted by Anthony Webster <aw...@gmail.com>.
Well the context is that the first call is generated by SoapUI and works
fine whereas the second call was made by a .NET client and it doesn't work.
So I was wondering if I need to change anything on my CXF server in order
for similar .NET calls to work...
Anthony
On 30 June 2011 15:48, Freeman Fang <fr...@gmail.com> wrote:
> Those two are actually different soap messages.
> The major difference is that first one uuid/label has no namespace, but the
> second one uuid/label has namespace http://modalities.services.**
> gitta.tentelemed.com/ <http://modalities.services.gitta.tentelemed.com/>
>
> Freeman
>
> On 2011-6-30, at 下午9:23, Anthony Webster wrote:
>
> Hello,
>>
>> Could someone explain why the following works :
>>
>> <soapenv:Envelope xmlns:soapenv="http://schemas.**
>> xmlsoap.org/soap/envelope/ <http://schemas.xmlsoap.org/soap/envelope/>
>> " xmlns:mod="http://modalities.**services.gitta.tentelemed.com/<http://modalities.services.gitta.tentelemed.com/>
>> **">
>> <soapenv:Header/>
>> <soapenv:Body>
>> <mod:GetResultsCount>
>> <uuid>v</uuid>
>> <label>fd</label>
>> </mod:GetResultsCount>
>> </soapenv:Body>
>> </soapenv:Envelope>
>>
>> whereas this doesn't :
>>
>> <s:Envelope xmlns:s="http://schemas.**xmlsoap.org/soap/envelope/<http://schemas.xmlsoap.org/soap/envelope/>"
>> >
>> <s:Body>
>> <GetResultsCount xmlns="http://modalities.**
>> services.gitta.tentelemed.com/<http://modalities.services.gitta.tentelemed.com/>
>> **">
>> <uuid a:nil="true" xmlns:a="http://www.w3.org/**2001/XMLSchema-instance<http://www.w3.org/2001/XMLSchema-instance>
>> "/>
>> <label a:nil="true" xmlns:a="http://www.w3.org/**2001/XMLSchema-instance<http://www.w3.org/2001/XMLSchema-instance>
>> "/>
>> </GetResultsCount>
>> </s:Body>
>> </s:Envelope>
>>
>> <soap:Envelope xmlns:soap="http://schemas.**xmlsoap.org/soap/envelope/<http://schemas.xmlsoap.org/soap/envelope/>
>> ">
>> <soap:Body>
>> <soap:Fault>
>> <faultcode>soap:Client</**faultcode>
>> <faultstring>Unmarshalling Error: unexpected element (uri:"
>> http://modalities.services.**gitta.tentelemed.com/<http://modalities.services.gitta.tentelemed.com/>",
>> local:"uuid"). Expected
>> elements are <{}label>,<{}uuid></**faultstring>
>> </soap:Fault>
>> </soap:Body>
>> </soap:Envelope>
>>
>> Is there a way to ensure that calls like the second one can work?
>>
>> Thanks,
>>
>> Anthony
>>
>
> ------------------------------**---------------
> Freeman Fang
>
> FuseSource
> Email:ffang@fusesource.com
> Web: fusesource.com
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.**com <http://freemanfang.blogspot.com>
>
>
>
>
>
>
>
>
>
>
Re: Problem Unmarshalling...
Posted by Freeman Fang <fr...@gmail.com>.
Those two are actually different soap messages.
The major difference is that first one uuid/label has no namespace,
but the second one uuid/label has namespace http://modalities.services.gitta.tentelemed.com/
Freeman
On 2011-6-30, at 下午9:23, Anthony Webster wrote:
> Hello,
>
> Could someone explain why the following works :
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> " xmlns:mod="http://modalities.services.gitta.tentelemed.com/">
> <soapenv:Header/>
> <soapenv:Body>
> <mod:GetResultsCount>
> <uuid>v</uuid>
> <label>fd</label>
> </mod:GetResultsCount>
> </soapenv:Body>
> </soapenv:Envelope>
>
> whereas this doesn't :
>
> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" >
> <s:Body>
> <GetResultsCount xmlns="http://modalities.services.gitta.tentelemed.com/
> ">
> <uuid a:nil="true" xmlns:a="http://www.w3.org/2001/XMLSchema-
> instance"/>
> <label a:nil="true" xmlns:a="http://www.w3.org/2001/XMLSchema-
> instance"/>
> </GetResultsCount>
> </s:Body>
> </s:Envelope>
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <soap:Fault>
> <faultcode>soap:Client</faultcode>
> <faultstring>Unmarshalling Error: unexpected element (uri:"
> http://modalities.services.gitta.tentelemed.com/", local:"uuid").
> Expected
> elements are <{}label>,<{}uuid></faultstring>
> </soap:Fault>
> </soap:Body>
> </soap:Envelope>
>
> Is there a way to ensure that calls like the second one can work?
>
> Thanks,
>
> Anthony
---------------------------------------------
Freeman Fang
FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com