cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <>
Subject Re: Uri problem
Date Thu, 23 Jun 2011 11:04:26 GMT

On Thu, Jun 23, 2011 at 9:04 AM, Julien <> wrote:
> Hi,
> I have a problem when i call a webservice. We are build our client with ant (using The
xsd and The wsdl That our supplier give us).
> However we have a error that we don't undestand.
> Do someone can help us please ?
> (ps: sorry for my very bad english :/)
> DefaultValidationEventHandler: [ERROR]: unexpected element (uri:"",
local:"beanReponseTransfertCRI"). Expected elements are <{}beanReponseTransfertCRI>
>     Location:  node: [ns2:beanReponseTransfertCRI: null]
> Exception : Unmarshalling Error: unexpected element
(uri:"", local:"beanReponseTransfertCRI").
Expected elements are <{}beanReponseTransfertCRI>

Consider configuring a JAXWS client with Transform feature:

See the text above that section on how to do the same from Spring. Example,

Map<String, String> inTransformMap =  Collections.singletonMap(
transformInInterceptor =
    new org.apache.cxf.interceptor.transform.TransformInInterceptor();

will configure the client to drop a
namespace from 'beanReponseTransfertCRI'.

Perhaps you can get the above fixed by dealing with the (schema)
elementFormDefault issue, assuming  it is the cause of the problem,
but the suggested 'fix' can help...



Sergey Beryozkin

Application Integration Division of Talend

View raw message