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 <[email protected]> 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:[email protected] > > Web: fusesource.com > > Twitter: freemanfang > > Blog: http://freemanfang.blogspot.**com > > <http://freemanfang.blogspot.com> -- Daniel Kulp [email protected] http://dankulp.com/blog Talend - http://www.talend.com
