wood burning stoves 2.0*
The moose likes Web Services and the fly likes How to invoke the web service with multiple operations using JAX-WS Dispatch? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to invoke the web service with multiple operations using JAX-WS Dispatch?" Watch "How to invoke the web service with multiple operations using JAX-WS Dispatch?" New topic
Author

How to invoke the web service with multiple operations using JAX-WS Dispatch?

Johnson Ouyang
Greenhorn

Joined: Aug 28, 2009
Posts: 2
Hello everyone:

Let's take a look at this scratch.

QName serviceName = new QName("http://org.apache.cxf", "stockQuoteReporter");
Service s = Service.create(serviceName);

QName portName = new QName("http://org.apache.cxf", "stockQuoteReporterPort");
Dispatch<Source> dispatch = createDispatch(portName, Source.class, Service.Mode.PAYLOAD);


The creating dispath only needs port name. If the port defines more than one operation, how is the specific operation invoked if the request payload is the same for operations?

Thank you very much.

Johnson
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
This question was recently discussed in the SCDJWS forum: http://www.coderanch.com/t/459790/Web-Services-Certification-SCDJWS/certification/Using-dispatch-call-webservice-with
Best wishes!
Johnson Ouyang
Greenhorn

Joined: Aug 28, 2009
Posts: 2
Thank you, Ivan.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to invoke the web service with multiple operations using JAX-WS Dispatch?
 
Similar Threads
problem with webservice dynamic proxyclient
How to capture SoapRequest.xml and SoapResponse.xml
Deserialization Exception while using string[]
Will this plan work? What did I do wrong? Thanks.
JAX-WS Client - Unsupported Content-Type issue