File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Creating a new webservice from existing ones???? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Creating a new webservice from existing ones????" Watch "Creating a new webservice from existing ones????" New topic

Creating a new webservice from existing ones????

Megan Stew

Joined: Jun 17, 2004
Posts: 4
Can any1 please throw some light on how a composite webservice can be built from existing webservices. That is, when a user selects any two webservices like Addition and then conversion of number to String , it should give java files (both Class file and Interface) such that it represents a new Webservice when it is deployed.

I have questions on the following,

--> How should I achieve this?

--> What are the things should I install in my machine to parse the WSDL file?

I will be very happy if any1 finds a solution and brief me about the overall set up so that I can achieve this.

Thanks in advance,
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
I'm afraid you'll just have to take the WSDL's of the two existing services, use WSDL2Java to generate you the client stubs, and then create your own web service as usual -- invoking the methods on the two previously generated web service stub classes to achieve the composite functionality.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
subject: Creating a new webservice from existing ones????
It's not a secret anymore!