This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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