axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maciek Zywno <m.zy...@amg.net.pl>
Subject Re: can two java classes be deployed as one web service?
Date Thu, 04 Mar 2004 10:30:18 GMT
Pathuru, Kiran wrote:

>I am not really sure whether it is possible as I not an AXIS expert. But you
>can acheive the same using some thing like this:
>
>Write your two classes and write a third class with all the methods from
>both classes, and in method body call the other class.
>
>public class java1 {
>	method1() {
>	}
>}
>
>public class java2 {
>	method2() {
>	}
>}
>
>public class webservice {
>	java1 j1 = new java1();
>	java2 j2 = new java2();
>
>	method1() {
>		j1.method1();
>	}
>	method2() {	
>		j2.method2();
>	}
>}
>
>Hope this helps..
>
>regards,
>kiran pathuru
>
>-----Original Message-----
>From: Maciek Zywno [mailto:m.zywno@amg.net.pl]
>Sent: Thursday, March 04, 2004 11:12 AM
>To: axis-user@ws.apache.org
>Subject: can two java classes be deployed as one web service?
>
>
>hello
>
>I tried to deploy two classes as one web service i.e. I would like to 
>have one web service (at one URL) offer many operations. When I tried to 
>put two classes in one service element in wsdd file I still get two 
>wsdl's ?
>
>Is there any solution to having one web service based on more that one 
>java class?
>
>regards
>
>  
>
thanks , this obviously is a kind of a solution
I was curious if having two legacy classess I can deploy them in the 
same service without writing one new wrapper class

regards

Mime
View raw message