File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes WSDL - One way operations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL - One way operations" Watch "WSDL - One way operations" New topic

WSDL - One way operations

Anjali S Sharma
Ranch Hand

Joined: Jun 29, 2005
Posts: 279
I am trying to create a webservice using Axis2 which has a method with no parameter. This method does not accept a parameter but returns a value.

Please refer to "getAllResumeIds" operation. The below WSDL gives me a warning

Also the code generation from this WSDL fails.

Can someone please let me know how to resolve this?

Thank you

Rajeev Trikha
Ranch Hand

Joined: Jan 29, 2010
Posts: 85

If your service operation has no input parameter and just return then the message exchange pattern still has to be request-response for your output-only operation.

You need to have a wsdl:input for this but the message you point towards has just the name and no message part, ie

Rajeev Trikha (SCJP 6)
Anjali S Sharma
Ranch Hand

Joined: Jun 29, 2005
Posts: 279
Thanks a lot.
I agree. Here's the link:
subject: WSDL - One way operations
jQuery in Action, 3rd edition