Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Message Based Service With 2 methods.  RSS feed

 
Jobin Mathew
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I had deployed a Service with more than 1 method published as webservice.
I am using Axis 1.4. The methods are correctly listed in the List page.
Now I want to call these methods. In when I allow only 1 method in service, there is no need of specifying the method name in client when it is a MSG (Message Based) one. But now where should I specify the method name in client. I tried setOperationName. But my client is not invoking the service, It is giving exception.

Couldn't find an appropriate operation for XML QName {http://www.wrox.com/eaaxis/catalog}CATALOG


Thanks in advance to all.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of client are you using? A client generated by WSDL2Java generates different Java methods for each operation the WS has, so calling the correct operation is a matter of ionvoking the right Java method.

If you're using SAAJ, you'd usually be specifying the operation and parameter like this:
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!