You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Hannes23 <jo...@gmx.de> on 2007/09/20 10:35:06 UTC

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-classes--tf4486127.html#a12793022
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: Create one Web Service out of multiple java classes?

Posted by Nasreen Laghari <la...@hotmail.com>.
Hmm If we think logically, To make a project from java classes, we make multiple classes then only one class contain main method that class we make run.
 
So If you connect all classes to 1 class and in Service.xml put this class name.
 
 
 



> Date: Thu, 20 Sep 2007 03:44:33 -0700> From: jo230000@gmx.de> To: axis-user@ws.apache.org> 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: jo230000@gmx.de> To:> >> axis-user@ws.apache.org> 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-classes--tf4486127.html#a12793022>> >> Sent from the Axis - User mailing list archive at Nabble.com.> > >> >> ---------------------------------------------------------------------> To> >> unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org> For additional> >> commands, e-mail: axis-user-help@ws.apache.org> > > _________________________________________________________________> > 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-classes--tf4486127.html#a12794751> Sent from the Axis - User mailing list archive at Nabble.com.> > > ---------------------------------------------------------------------> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org> For additional commands, e-mail: axis-user-help@ws.apache.org> 
_________________________________________________________________
Capture your memories in an online journal!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us

RE: Create one Web Service out of multiple java classes?

Posted by "Walker, Jeff" <Je...@fmr.com>.
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: ranjan.madhav@bt.com [mailto:ranjan.madhav@bt.com] 
Sent: Thursday, September 20, 2007 7:16 AM
To: axis-user@ws.apache.org
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:gayatri@amtexsystems.com]
	Sent: Thu 20-Sep-07 4:37 PM
	To: axis-user@ws.apache.org
	Subject: RE: Create one Web Service out of multiple java
classes?
	
	
	Can u give an example of it.. 
	 
	gayathri.s, amtex systems, gayatri@amtexsystems.com,
	 
	-----Original Message-----
	From: Madhav,RR,Ranjan,XGG9 R [mailto:ranjan.madhav@bt.com] 
	Sent: Thursday, September 20, 2007 4:30 PM
	To: axis-user@ws.apache.org
	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:jo230000@gmx.de]
	Sent: Thu 20-Sep-07 4:14 PM
	To: axis-user@ws.apache.org
	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: jo230000@gmx.de>
To:
	>> axis-user@ws.apache.org> 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: axis-user-unsubscribe@ws.apache.org> For
additional
	>> commands, e-mail: axis-user-help@ws.apache.org>
	>
_________________________________________________________________
	> 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: axis-user-unsubscribe@ws.apache.org
	For additional commands, e-mail: axis-user-help@ws.apache.org

RE: Create one Web Service out of multiple java classes?

Posted by ra...@bt.com.
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:gayatri@amtexsystems.com]
Sent: Thu 20-Sep-07 4:37 PM
To: axis-user@ws.apache.org
Subject: RE: Create one Web Service out of multiple java classes?


Can u give an example of it.. 
 
gayathri.s, amtex systems, gayatri@amtexsystems.com,
 
-----Original Message-----
From: Madhav,RR,Ranjan,XGG9 R [mailto:ranjan.madhav@bt.com] 
Sent: Thursday, September 20, 2007 4:30 PM
To: axis-user@ws.apache.org
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:jo230000@gmx.de]
Sent: Thu 20-Sep-07 4:14 PM
To: axis-user@ws.apache.org
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: jo230000@gmx.de> To:
>> axis-user@ws.apache.org> 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-classes--tf4486127.html#a12793022>
>> Sent from the Axis - User mailing list archive at Nabble.com.> > >
>> ---------------------------------------------------------------------> To
>> unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org> For additional
>> commands, e-mail: axis-user-help@ws.apache.org>
> _________________________________________________________________
> 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-classes--tf4486127.html#a12794751
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org

RE: Create one Web Service out of multiple java classes?

Posted by Gayathri <ga...@amtexsystems.com>.
Can u give an example of it.. 
 
gayathri.s, amtex systems, gayatri@amtexsystems.com,
 
-----Original Message-----
From: Madhav,RR,Ranjan,XGG9 R [mailto:ranjan.madhav@bt.com] 
Sent: Thursday, September 20, 2007 4:30 PM
To: axis-user@ws.apache.org
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:jo230000@gmx.de]
Sent: Thu 20-Sep-07 4:14 PM
To: axis-user@ws.apache.org
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: jo230000@gmx.de> To:
>> axis-user@ws.apache.org> 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-classes--t
f4486127.html#a12793022>
>> Sent from the Axis - User mailing list archive at Nabble.com.> > >
>> ---------------------------------------------------------------------> To
>> unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org> For additional
>> commands, e-mail: axis-user-help@ws.apache.org>
> _________________________________________________________________
> 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-classes--t
f4486127.html#a12794751
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org

RE: Create one Web Service out of multiple java classes?

Posted by ra...@bt.com.
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:jo230000@gmx.de]
Sent: Thu 20-Sep-07 4:14 PM
To: axis-user@ws.apache.org
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: jo230000@gmx.de> To:
>> axis-user@ws.apache.org> 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-classes--tf4486127.html#a12793022>
>> Sent from the Axis - User mailing list archive at Nabble.com.> > >
>> ---------------------------------------------------------------------> To
>> unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org> For additional
>> commands, e-mail: axis-user-help@ws.apache.org>
> _________________________________________________________________
> 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-classes--tf4486127.html#a12794751
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org




RE: Create one Web Service out of multiple java classes?

Posted by Hannes23 <jo...@gmx.de>.
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: jo230000@gmx.de> To:
>> axis-user@ws.apache.org> 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-classes--tf4486127.html#a12793022>
>> Sent from the Axis - User mailing list archive at Nabble.com.> > >
>> ---------------------------------------------------------------------> To
>> unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org> For additional
>> commands, e-mail: axis-user-help@ws.apache.org> 
> _________________________________________________________________
> 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-classes--tf4486127.html#a12794751
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: Create one Web Service out of multiple java classes?

Posted by Nasreen Laghari <la...@hotmail.com>.
 
As far as I know it is possible and Axis2 support this.

> Date: Thu, 20 Sep 2007 01:35:06 -0700> From: jo230000@gmx.de> To: axis-user@ws.apache.org> 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-classes--tf4486127.html#a12793022> Sent from the Axis - User mailing list archive at Nabble.com.> > > ---------------------------------------------------------------------> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org> For additional commands, e-mail: axis-user-help@ws.apache.org> 
_________________________________________________________________
Can you find the hidden words?  Take a break and play Seekadoo!
http://club.live.com/seekadoo.aspx?icid=seek_wlmailtextlink