You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by srinivas thallapalli <sr...@gmail.com> on 2011/06/20 13:50:55 UTC
Need help on CXF client
Hi All,
I am trying to get the values from the response object given by webservice
call, I tried in following two ways
1. Using Reflection on generated classes in memory
2. By having the classes in classpath generated by wsdl2java tool
In first case, using reflection everything went through fine.
There is problem with second case that is having classes in classpath and
parsing the response object.
It gives the following exception
DefaultValidationEventHandler: [ERROR]: unexpected element
(uri:"http://workflow.webservice.xxxx.com",
local:"getAssignedWorkItemListReturn"). Expected elements are
<{}getAssignedWorkItemListReturn>
Location: line 1
any suggestions to resolve this issue appreciated
Thanks
--
View this message in context: http://cxf.547215.n5.nabble.com/Need-help-on-CXF-client-tp4506071p4506071.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: Need help on CXF client
Posted by srinivas thallapalli <sr...@gmail.com>.
Thanks Dan, It works fine with -xjc-npa flag enable generated classes.
--
View this message in context: http://cxf.547215.n5.nabble.com/Need-help-on-CXF-client-tp4506071p4513102.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: Need help on CXF client
Posted by Daniel Kulp <dk...@apache.org>.
In certain cases, I've seen issues with finding the package-info.java that
would have the qualification flags in it. That would cause this. I would
SUGGEST trying to run wsdl2java with the -xjc-npa flag to have it not use the
package-info class.
Dan
On Monday, June 20, 2011 4:50:55 AM srinivas thallapalli wrote:
> Hi All,
>
> I am trying to get the values from the response object given by webservice
> call, I tried in following two ways
>
> 1. Using Reflection on generated classes in memory
> 2. By having the classes in classpath generated by wsdl2java tool
>
> In first case, using reflection everything went through fine.
> There is problem with second case that is having classes in classpath and
> parsing the response object.
>
> It gives the following exception
>
> DefaultValidationEventHandler: [ERROR]: unexpected element
> (uri:"http://workflow.webservice.xxxx.com",
> local:"getAssignedWorkItemListReturn"). Expected elements are
> <{}getAssignedWorkItemListReturn>
> Location: line 1
>
> any suggestions to resolve this issue appreciated
>
> Thanks
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Need-help-on-CXF-client-tp4506071p4506071.h
> tml Sent from the cxf-user mailing list archive at Nabble.com.
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com