Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

Web Service

Thread view: 
javajedi - 17 Nov 2006 19:04 GMT
Hi there,
I am wondering about lots of things about web services. But firstly I
want to learn how the web service is useful to us.
Here is the thing: A user can use a web service via internet and can
get the results via xml.
So what is the difference between a web service and JSP or Servlet. I
can write a jsp that takes parameters and send them in an xml format.
The client can parse that xml and take the result. What is the
difference of web service from this. Can someone tell me?
Tomek - 17 Nov 2006 19:13 GMT
javajedi napisal(a):
> Hi there,
> I am wondering about lots of things about web services. But firstly I
[quoted text clipped - 5 lines]
> The client can parse that xml and take the result. What is the
> difference of web service from this. Can someone tell me?

ok, try to list some things :)
- Webserwises can work on many transports , not only over HTTP as
servlets do , so you can JMS, SMTP or whatever you want.
Howard Brazee - 17 Nov 2006 19:33 GMT
>Hi there,
>I am wondering about lots of things about web services. But firstly I
[quoted text clipped - 5 lines]
>The client can parse that xml and take the result. What is the
>difference of web service from this. Can someone tell me?

I can write CoBOL to do the same thing - in fact I have.

But a full XML environment seems easier with Java web servers than
with our old hodge-podge JSP design, so that's the way we're moving.
javajedi - 17 Nov 2006 19:54 GMT
So you say:
Web Service can be accessed with many application protocols
and Web Service is easier to use.

I have another question:
Does web service only takes commands from client, and then returns
result them?
I want to mean is there any relation between my first and second call
to web service? Does web service know who I am when I connect it second
time?
For example when I call a web method account.isUser("aaa","aaa");
and then call a method getList() which cannot be called if the boolean
variable isAccess != true, will the web service permit me to get the
result of the second function after I called the first function?

Client:
isUser("aa","aa");
getList();

Server:
public boolean isUser(){
      //if user return true
}

public List getList(){
    if(isAccess = = true)
         return true;
}

Or DO  I NEED SESSIONS like in web pages
Tkachenko Vira - 17 Nov 2006 21:44 GMT
Здравствуйте, javajedi.

Вы писали 17 листопада 2006 р., 21:54:14:

> So you say:
> Web Service can be accessed with many application protocols
[quoted text clipped - 5 lines]
> to web service? Does web service know who I am when I connect it second
> time?

Yes, they can be either stateless or stateful. You can read about this
here http://www.xml.com/pub/a/ws/2003/07/22/sessions.html

--  
С уважанием, Ткаченко Вера
[ICQ#230923300] [web: http://www.vera.org.ua]
[mail: toVera(at)ukr.net.del.it] [location: The Earth-Ukraine-Kiev]
Chris Smith - 18 Nov 2006 19:27 GMT
> I am wondering about lots of things about web services. But firstly I
> want to learn how the web service is useful to us.
[quoted text clipped - 4 lines]
> The client can parse that xml and take the result. What is the
> difference of web service from this. Can someone tell me?

There is actually a very fundamental difference that hasn't been
mentioned so far.  Web services are intended for interaction between two
pieces of software, which may be domain specific.  A regular application
of JSP is designed to communicate with an end-user via a web browser.  
It's not generally the case that a "user" uses a web service, except
indirectly.

That being said, it is possible to implement a web service using JSP, of
course, but it is more difficult than it needs to be.  By using
something like Axis, most of the time, you can simply write code without
worrying about the XML part at all, and the Axis framework will worry
about making your code into a web service via SOAP or other protocols.  
JSP is an implementation technology while web services are a concept for
communication protocols; but JSP is designed for for end-user
interaction.

Signature

Chris Smith

javajedi - 18 Nov 2006 21:50 GMT
Chris Smith yazdi:
> > I am wondering about lots of things about web services. But firstly I
> > want to learn how the web service is useful to us.
[quoted text clipped - 20 lines]
> communication protocols; but JSP is designed for for end-user
> interaction.

thanks Chris, you are the best.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.