Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   web services fundamentals (http://www.velocityreviews.com/forums/t544194-web-services-fundamentals.html)

gdv 10-14-2007 04:32 PM

web services fundamentals
 
I am trying to understand web services.
what i understood so far is that web service is nothing but like a
java program sitting and running on the client side to access
application from the server side. so if there are 10 clients each will
have one web service ( total 10 web services). so what happens when
all 10 clients make a call to web service at the same time?


=?ISO-8859-1?Q?Arne_Vajh=F8j?= 10-14-2007 05:43 PM

Re: web services fundamentals
 
gdv wrote:
> I am trying to understand web services.
> what i understood so far is that web service is nothing but like a
> java program sitting and running on the client side to access
> application from the server side. so if there are 10 clients each will
> have one web service ( total 10 web services). so what happens when
> all 10 clients make a call to web service at the same time?


A web service is a service provided by a server to clients using
web technology (typical SOAP over HTTP).

In theory a server could process the request from each client
sequentially.

Web services in the Java world are usually hosted in a servlet
container and those are usually multi threaded and capable
of serving multiple requests in parallel.

Arne


gdv 10-14-2007 05:53 PM

Re: web services fundamentals
 
Thanks Arne.
just want to make sure that server's servlet containers (like tomcat)
contains the code for web service.
so server ( service provider ) will have application code and web
service code. How do client find out where is the service and how to
make a connection with the provider's web service?




On Oct 14, 1:43 pm, Arne Vajhøj <a...@vajhoej.dk> wrote:
> gdv wrote:
> > I am trying to understand web services.
> > what i understood so far is that web service is nothing but like a
> > java program sitting and running on the client side to access
> > application from the server side. so if there are 10 clients each will
> > have one web service ( total 10 web services). so what happens when
> > all 10 clients make a call to web service at the same time?

>
> A web service is a service provided by a server to clients using
> web technology (typical SOAP over HTTP).
>
> In theory a server could process the request from each client
> sequentially.
>
> Web services in the Java world are usually hosted in a servlet
> container and those are usually multi threaded and capable
> of serving multiple requests in parallel.
>
> Arne




Lew 10-14-2007 06:02 PM

Re: web services fundamentals
 
gdv wrote:
> Thanks Arne.


Please do not top-post. Read the "mini-FAQ" message in this newsgroup, and
the articles to which it links.

> just want to make sure that server's servlet containers (like tomcat)
> contains the code for web service.


It will if you write that code and deploy it to the app server.

> so server ( service provider ) will have application code and web
> service code. How do client find out where is the service and how to
> make a connection with the provider's web service?


Google for "UDDI" and "WSDL". One way or another the client will need to
discover a URL, and send a message that conforms to the service's requirements.

Sun has material on writing web services in its tutorials. Java SE 6 and EE 5
have enhanced support for web-service development.

--
Lew

=?ISO-8859-1?Q?Arne_Vajh=F8j?= 10-14-2007 06:17 PM

Re: web services fundamentals
 
gdv wrote:
> just want to make sure that server's servlet containers (like tomcat)
> contains the code for web service.


If somebody deployed it then it will be there.

> so server ( service provider ) will have application code and web
> service code. How do client find out where is the service and how to
> make a connection with the provider's web service?


The web service client connects to a specific URL.

It can be handcoded or it can use a stub generated from
the WSDL.

Arne


All times are GMT. The time now is 07:51 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57