This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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.
 
Have you checked out Aspose?
 
subject: How to invoke the web service with multiple operations using JAX-WS Dispatch?
 
It's not a secret anymore!