Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic