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

Multiple services in a SINGLE WSDL file  RSS feed

 
Mat Anthony
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I’m a new boy to web services and any help would be appreciated.
I currently have the following classes that I need to create web services from.

ServiceA.java
Containing method getOrder
method getProduct
ServiceB.java
Containing method creditCheck

I need to create a single WSDL file that contains both above using
org.apache.ws.java2wsdl.Java2WSDLTask

The WSDL should only include getOrder and creditCheck.

Is this possible ?. If so how can it be done ?.
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tip1: make getProduct as private method.

Tip2: Write a wrapper class that contains calls to both the method in different class, then expose this wrapper class to java2wsdl tool ??

Would that make sense for you ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!