Sounds a lot like the Session Facade design pattern, where the web service interface is the facade. http://java.sun.com/blueprints/corej2eepatterns/Patterns/SessionFacade.h tml -jeff _____
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 20, 2007 7:16 AM To: [email protected] Subject: RE: Create one Web Service out of multiple java classes? The simpler solution could be to have service group defined in services.xml Otherwise, lets suppose we have following classes and methods exposed as operations: ClassA (M1, M2), ClassB (M3) Then one can write a top level wrapper class as class ServiceWrapperClass { public Type1 M1(Params){ // call M1 on an object of ClassA } public Type2 M2(Params){ // call M2 on an object of ClassA } public Type3 M3(Params){ // call M3 on an object of ClassB } } Finally, expose only ServiceWrapperClass as ServiceClass in services.xml Regards, Madhav _____ From: Gayathri [mailto:[EMAIL PROTECTED] Sent: Thu 20-Sep-07 4:37 PM To: [email protected] Subject: RE: Create one Web Service out of multiple java classes? Can u give an example of it.. gayathri.s, amtex systems, [EMAIL PROTECTED], -----Original Message----- From: Madhav,RR,Ranjan,XGG9 R [mailto:[EMAIL PROTECTED] Sent: Thursday, September 20, 2007 4:30 PM To: [email protected] Subject: RE: Create one Web Service out of multiple java classes? Why don't you write a top level 'wrapper' class and then delegate the requests to objects of the implementation classes? If your requirement doesn't fit into this, then please elaborate. Regards, Madhav _____ From: Hannes23 [mailto:[EMAIL PROTECTED] Sent: Thu 20-Sep-07 4:14 PM To: [email protected] Subject: RE: Create one Web Service out of multiple java classes? But how? Any idea? Any Link? Nasreen Laghari-2 wrote: > > > As far as I know it is possible and Axis2 support this. > >> Date: Thu, 20 Sep 2007 01:35:06 -0700> From: [EMAIL PROTECTED]> To: >> [email protected]> Subject: Create one Web Service out of multiple >> java classes?> > > Hello,> > is it possible to create one Web Service out >> of multiple java classes? Is it> possible using Axis2?> > Are there any >> other possibilities?> > Hannes> -- > View this message in context: >> http://www.nabble.com/Create-one-Web-Service-out-of-multiple-java-classe s--tf4486127.html#a12793022> >> Sent from the Axis - User mailing list archive at Nabble.com.> > > >> ---------------------------------------------------------------------> To >> unsubscribe, e-mail: [EMAIL PROTECTED]> For additional >> commands, e-mail: [EMAIL PROTECTED]> > _________________________________________________________________ > Can you find the hidden words? Take a break and play Seekadoo! > http://club.live.com/seekadoo.aspx?icid=seek_wlmailtextlink > -- View this message in context: http://www.nabble.com/Create-one-Web-Service-out-of-multiple-java-classe s--tf4486127.html#a12794751 Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
