Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Johnson Ouyang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, Ivan.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic