Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Naga Venkata Pradeep Namburi
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Empty input message in wsdl - void foo() speaks about a similar issue.

Regards,
Dan
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!