Re: WS client, original message

2009-06-24 Thread Daniel Kulp
On Wed June 24 2009 1:09:21 pm John Baker wrote: > Dan, > > Do you have any thoughts on how to replace the Axis code: > > Service service = new Service(); > Call call = (Call)service.createCall(); > call.setTargetEndpointAddress(new URL(endPoint)); > call.set

Re: WS client, original message

2009-06-24 Thread John Baker
Dan, Do you have any thoughts on how to replace the Axis code: Service service = new Service(); Call call = (Call)service.createCall(); call.setTargetEndpointAddress(new URL(endPoint)); call.setOperationName(new QName("http://www.xyz.com";, method) );

Re: WS client, original message

2009-06-22 Thread Daniel Kulp
I don't think it's QUITE as simple with JAX-WS. The code would look similar to: Service service = Service.create(serviceName); service.addPort(portName, "http://schemas.xmlsoap.org/soap/";, "http://localhost:9006/SOAPDispatchService/SoapDispatchPort";

Re: WS client, original message

2009-06-21 Thread John Baker
So, I've found a thread where someone is doing the same: http://www.nabble.com/Client-from-ClientFactoryBean-as-a-generic-soap-client--td17700799.html However, when I try the same it seems to fail because of no service class in the endpoint: NullPointerException: at org.apache.cxf.serv

Re: WS client, original message

2009-06-21 Thread John Baker
Hi, Thanks for your response. I've written an interceptor to do it, but was just looking at the Dispatch API. I've got some old Axis code that I'm replacing - it does this: Service service = new Service(); Call call = (Call)service.createCall(); call.setTargetEndpoi

Re: WS client, original message

2009-06-21 Thread Mayank Mishra
John Baker wrote: Hello, How does one obtain the raw SOAP message returned from a client webservice call? Ideally, as String or a Document would be nice. John You can achieve the same in either of two ways: A. You can use Dispatch API [1] to write your client where you can get either

WS client, original message

2009-06-21 Thread John Baker
Hello, How does one obtain the raw SOAP message returned from a client webservice call? Ideally, as String or a Document would be nice. John