web services fundamentals

G

gdv

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?=

gdv said:
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
 
G

gdv

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?
 
L

Lew

gdv said:
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.
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

gdv said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top