jQuery in Action, 3rd edition
The moose likes Web Services and the fly likes Several services or one? (axis) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Several services or one? (axis)" Watch "Several services or one? (axis)" New topic

Several services or one? (axis)

alain martin
Ranch Hand

Joined: Apr 11, 2005
Posts: 43
I have to develop several web services with axis, I'm thinking in two options:

1. Develop all webservices in only a service file. One wsdl, one stub. Very easy.
2. Develop several services in groups. Several wsdl files, several stubs...

What is move easy and clear, for the client developer?

<a href="http://www.hhdirecto.net" target="_blank" rel="nofollow">http://www.hhdirecto.net</a>
Tom George
Ranch Hand

Joined: Jan 28, 2004
Posts: 41
Well, IMHO, what is easy for the developer isnt always the perfect way, right? If your web services have different functionalities and are distinct entities, it makes sense to separate them. Anyway the WSDL has to go over the net and the "small-is-beautiful" principle applies..

Of course, I could be wrong.

Peer Reynders

Joined: Aug 19, 2005
Posts: 2933
Also there is the issue of version control. Publishing multiple services in the same WSDL inexorably links them to one another - something you want to avoid. As you evolve your services you may have to publish multiple versions of the interface to the same service for backward compatibility and each client installation may require a different version mix of the different endpoints, potentially leading to a combinatorial explosion of customized WSDLs.
Bottom-line - stick with the smallest WSDLs possible - but no smaller.

You can usually manage common portions between WSDLs with XSD and WSDL imports. But again make sure to include a version identifier in your import filenames.
WSDL file imports
[ July 12, 2006: Message edited by: Peer Reynders ]
I agree. Here's the link: http://aspose.com/file-tools
subject: Several services or one? (axis)
It's not a secret anymore!