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:[email protected]] Sent: Thursday, September 24, 2009 1:33 PM To: [email protected] 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 <[email protected]> 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. >
