Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Services and the fly likes newbie question: one war with two interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "newbie question: one war with two interfaces" Watch "newbie question: one war with two interfaces" New topic
Author

newbie question: one war with two interfaces

marzio logiudice
Greenhorn

Joined: Oct 26, 2006
Posts: 6
Hi all,

I've just started working with webservices. I've got an existing project, implementing a webservice interface (e.g. Service1) with the following methods: method1, method2, method3.

I need to create a second interface Service2 and move method2 and method3 to it, while Service1 will still expose method1.

How can i have both interfaces in the same war file? I've tried to create the second one, but can't get the correct wsdl.

Any help/suggestion/hint?
Thanks
marzio logiudice
Greenhorn

Joined: Oct 26, 2006
Posts: 6
In other words, I would like to deploy one war file, but access two different web interfaces:

http://myaddress/Service1
http://myaddress/Service2

according to the needs.
Is it possible?
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Yes, its possible.
In one war you can publish more than one webservices.
If you were able to publish Service1 webservice with method1-2-3, you should be do the same with Service2 wewbserivce with method 2-3 alone.

Please let us to know what webservice plugin you are using, like aixs or jwsdp etc ? This will help to reply clearly.


Spritle Software Blogs
marzio logiudice
Greenhorn

Joined: Oct 26, 2006
Posts: 6
As I said I'm kind of new in this area.

I guess the plugin is XFire, the service is based on the Spring framework and Hibernate for persistence.

I need to publish two interfaces because the persistence layer can remain the same (each service will access the db and does not need to interact with the other)

Thanks for your guidance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: newbie question: one war with two interfaces
 
Similar Threads
How interface replace multiple inheritance(class)
method chaining
Misc Interface Questions.
Question on exception handling
Does run() method is declard i Thread?