dev@jax-ws.java.net

Re: creating responses with new jax-ws SPIs

From: Arun Gupta <Arun.Gupta_at_Sun.COM>
Date: Tue, 03 Oct 2006 20:09:24 -0700

Bobby,

See in line ..

Bobby Bissett - Javasoft wrote:
> I'm converting the mex pipe in the wsit code to the new jax-ws and
> addressing SPIs and have some questions. In my pipe, I used to create
> the response with:
>
> Message responseMessage = // create the message
> Packet response = req.createResponse(responseMessage);
>
> I see now that I should use Packet.createServerResponse() and pass in
> the message, a wsdl port, and a wsdl binding. Where am I supposed to get
> that port and binding? My response message isn't related to the endpoint
> wsdl or any binding in it.

I changed Packet.createServerResponse with the following signature:

Packet createServerResponse(Message responseMessage,
AddressingVersion av, SOAPVersion soapVersion, java.lang.String action)

This removes any dependency on WSBinding and WSDLPort. Please read the
updated javadocs [1] and let me know if it serves your purpose.

Would you need a similar capability on the client side as well ?

>
> Also, I used to do addressing properties toOutbound(), set my new ws-a
> action, and write out the headers. Does this createServerResponse()
> method do all of that for me?
Yes.

[1] http://kohsuke.sfbay/hudson/job/jaxws-ri-21/javadoc/

-Arun
>
> Thanks,
> Bobby
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: dev-help_at_jax-ws.dev.java.net
>

-- 
Web Technologies and Standards
Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta