You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by slhrkc <sa...@live.com> on 2018/01/24 06:55:01 UTC
Weird Unmarshalling Error Incident
Hi,
I use cxf to consume a ws. When i first start the application it throws the
below exception and this exception is true because the service is sending a
BillingAddress field which is not in the xsd.
org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element
(uri:"", local:"BillingAddress"). Expected elements are
<{}Status>,<{}IsDefault>,<{}Email>,<{}FirstName>,<{}RoleList>,<{}Title>,<{}Gender>,<{}MobilePhone>,<{}Nationality>,<{}CompanyName>,<{}Department>,<{}CustomerNumber>,<{}MotherName>,<{}CreationResource>,<{}CitizenNumber>,<{}AutoId>,<{}LastName>,<{}FatherName>,<{}BirthDate>
But after some time (like 15-20 requests) it stops giving the exception and
just ignores the BillingAddress field that comes from the service.
I am surprised to see this result. What might be happening here?
--
Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html
RE: Weird Unmarshalling Error Incident
Posted by Andrei Shakirin <as...@talend.com>.
Hi,
I have not good explanation of this effect.
Could you set a breakpoint on marshalling interceptor and debug that?
Regards,
Andrei.
> -----Original Message-----
> From: slhrkc [mailto:salih_1989@live.com]
> Sent: Mittwoch, 24. Januar 2018 07:55
> To: users@cxf.apache.org
> Subject: Weird Unmarshalling Error Incident
>
> Hi,
> I use cxf to consume a ws. When i first start the application it throws the below
> exception and this exception is true because the service is sending a
> BillingAddress field which is not in the xsd.
>
> org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element
> (uri:"", local:"BillingAddress"). Expected elements are
> <{}Status>,<{}IsDefault>,<{}Email>,<{}FirstName>,<{}RoleList>,<{}Title>,<{}Gend
> er>,<{}MobilePhone>,<{}Nationality>,<{}CompanyName>,<{}Department>,<{}Cu
> stomerNumber>,<{}MotherName>,<{}CreationResource>,<{}CitizenNumber>,<{
> }AutoId>,<{}LastName>,<{}FatherName>,<{}BirthDate>
>
> But after some time (like 15-20 requests) it stops giving the exception and just
> ignores the BillingAddress field that comes from the service.
>
> I am surprised to see this result. What might be happening here?
>
>
>
> --
> Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html