aspose file tools*
The moose likes Web Services and the fly likes How to write a method not returning anything (void) in a WSDL 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 write a method not returning anything (void) in a WSDL" Watch "How to write a method not returning anything (void) in a WSDL" New topic
Author

How to write a method not returning anything (void) in a WSDL

Naga Venkata Pradeep Namburi
Greenhorn

Joined: Apr 04, 2008
Posts: 13
Hi

I need to expose MyJavaClass as a webservice.

It has a method public void myMethod();

I need to expose it as an operation.

Please let me know how to do this.

When i omit the output tag, it's displaying error in Jdeveloper.

Thanks
Alan Hampson
Ranch Hand

Joined: Apr 10, 2009
Posts: 31
What error are you getting?

I added a void method to my web service (Axis 2) and ran it. The generated WSDL simply showed that operation with no output tag, so I think you're on the right track.

alan
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
Empty input message in wsdl - void foo() speaks about a similar issue.

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to write a method not returning anything (void) in a WSDL