You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Bruno Melloni <Br...@chickasaw.net> on 2009/09/24 18:46:23 UTC

Annotation for Input-output parameter?

I am making a call like the one below, where mbWorkUnit 'should be' an input-output parameter.  The behavior that I observed is that data is passed in, but values set by the implementation are not returned.  My guess is that I am missing an annotation.  I tried to add 'mode="WebParam.Mode.INOUT' to the @WebParam clause, but that caused the compile error: Syntax error on token "mbWorkUnit".

Can someone point me in the right direction?  


  MBResult getWorkUnit(@WebParam(name="mbWorkUnit")MBWorkUnit mbWorkUnit);

Thanks,

b.

RE: Annotation for Input-output parameter?

Posted by Bruno Melloni <Br...@chickasaw.net>.
It wasn't.  And great question!  It was the critical clue.  I manually imported javax.xml.ws.Holder (strangely, Eclipse wasn't smart enough to find it in the classpath with <ctrl><space>) and used:

"MBResult getWorkUnit2(@WebParam(name="mbWorkUnit", mode=WebParam.Mode.INOUT)Holder<MBWorkUnit> mbWorkUnit);"

Works like a charm.

I also discovered that the Sun javadocs for javax.xml.ws contain no information whatsoever.  It is depressing to see how low Sun's documentation has fallen :(

b.


-----Original Message-----
From: Andreas Veithen [mailto:andreas.veithen@gmail.com] 
Sent: Thursday, September 24, 2009 1:33 PM
To: users@cxf.apache.org
Subject: Re: Annotation for Input-output parameter?

Does MBWorkUnit extend javax.xml.ws.Holder?

Andreas

On Thu, Sep 24, 2009 at 18:46, Bruno Melloni
<Br...@chickasaw.net> wrote:
> I am making a call like the one below, where mbWorkUnit 'should be' an input-output parameter.  The behavior that I observed is that data is passed in, but values set by the implementation are not returned.  My guess is that I am missing an annotation.  I tried to add 'mode="WebParam.Mode.INOUT' to the @WebParam clause, but that caused the compile error: Syntax error on token "mbWorkUnit".
>
> Can someone point me in the right direction?
>
>
>  MBResult getWorkUnit(@WebParam(name="mbWorkUnit")MBWorkUnit mbWorkUnit);
>
> Thanks,
>
> b.
>


Re: Annotation for Input-output parameter?

Posted by Andreas Veithen <an...@gmail.com>.
Does MBWorkUnit extend javax.xml.ws.Holder?

Andreas

On Thu, Sep 24, 2009 at 18:46, Bruno Melloni
<Br...@chickasaw.net> wrote:
> I am making a call like the one below, where mbWorkUnit 'should be' an input-output parameter.  The behavior that I observed is that data is passed in, but values set by the implementation are not returned.  My guess is that I am missing an annotation.  I tried to add 'mode="WebParam.Mode.INOUT' to the @WebParam clause, but that caused the compile error: Syntax error on token "mbWorkUnit".
>
> Can someone point me in the right direction?
>
>
>  MBResult getWorkUnit(@WebParam(name="mbWorkUnit")MBWorkUnit mbWorkUnit);
>
> Thanks,
>
> b.
>