You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by artyom <ar...@gmail.com> on 2010/12/20 11:43:02 UTC

Problem getting @ResponseWrapper object

Hello,

I have interface with method 

 @RequestWrapper(localName = "FindNew", targetNamespace = "namespace.lv",
className = "lv.namespace.FindNew")
    @WebMethod(operationName = "FindNew", action =
"namespace.lv/mrb.service.FindNew")
    @ResponseWrapper(localName = "FindNewResponse", targetNamespace =
"namespace.lv", className = "lv.namespace.FindNewResponse")
    public void findNew(
     // some methods description here
    );

I can successfully connect to web service and get result back, but I have
troubles getting that "FindNewResponse" object (some info there I need), can
someone give me a hint how can I get this object ? 
Thank you.
-- 
View this message in context: http://cxf.547215.n5.nabble.com/Problem-getting-ResponseWrapper-object-tp3311818p3311818.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Problem getting @ResponseWrapper object

Posted by Daniel Kulp <dk...@apache.org>.
On Monday 20 December 2010 5:43:02 am artyom wrote:
> Hello,
> 
> I have interface with method
> 
>  @RequestWrapper(localName = "FindNew", targetNamespace = "namespace.lv",
> className = "lv.namespace.FindNew")
>     @WebMethod(operationName = "FindNew", action =
> "namespace.lv/mrb.service.FindNew")
>     @ResponseWrapper(localName = "FindNewResponse", targetNamespace =
> "namespace.lv", className = "lv.namespace.FindNewResponse")
>     public void findNew(
>      // some methods description here
>     );
> 
> I can successfully connect to web service and get result back, but I have
> troubles getting that "FindNewResponse" object (some info there I need),
> can someone give me a hint how can I get this object ?
> Thank you.

I'm not sure why you would need it.   You could run the java2ws with the -
wrapperbean flag to have it generate the appropriate wrapper bean for you.   
Is that what you need?


-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog