On Tuesday 16 October 2007, cunparis wrote:
> bmargulies wrote:
> > Where are you getting the requirement that the response be named
> > 'Response', as opposed to, say, OpNameResponse?
> >
> > Aside from that, I think that what you are asking for is the default
> > behavior of JAX-WS + JAXB.
>
> For the name of the response, that's what I said: "the return object
> has the same name + Response".
>
> When you say default behavior, my question is do I have to make my
> methods with a single parameter named appropriately or can I say use 3
> parameters and JAX-WS + JAXB will generate a web service with
> operations that take a single parameter.

With JSR-181/JAX-WS, you can do either.  

If you want to use a single parameter, you would annotate the class with:
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)

If you want to use multiple params, you wouldn't need to annotate 
anything as "wrapped" is the default.   The runtime will automatically 
do the wrapping for you.


-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to