my dog learned polymorphism*
The moose likes Web Services and the fly likes Another Noob Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Another Noob" Watch "Another Noob" New topic
Author

Another Noob

sarvananda sarvananda
Greenhorn

Joined: Mar 20, 2007
Posts: 21
Dear All,
I am a newbie to webservices (or is it web services). I looked around in FAQs, and into almost all of the topics that came out of search for "web services newb". read posts by Ulf Dittmer as well. It gave me a lot of info.. and I was a able to successfully install axis(i guess I use it because I can paste my code in its folder, and it will magically make it a webservice and generate wsdl)That takes care of the wsdl. SOAP looks a little complex, but i will win over it (with some great help from THE GOOGLE)stilll dunno where the XML would come in to the picture and expose calculator's add/subtract and pass params(from a .java prog) to the service and get results. its been quite an effort.

1)I probably am still not clear, as to where i am going. Have used
www.onjava.com/lpt/a/1578 to get started. What is still obscured is, how will I use this service from lets say a JSP.Where does the XML fit in ? more importanatly what does the XML do ?(i guess takes the inputparameters to the service) what exactly from the Jsp will make the call to this service?

2) There is a lady in Webshpere forum (...slips her name), who occassionally posts links for CBT tutorials for websphere. I was wondering if any one knew where I could look for CBT/video tutorials for newbie web services learners. I would love to take a few steps further from where I am now. I have searched google as well, however it gave links only for netbeans, which I have not used ( eclipse user, I ).

TIA
[ April 26, 2007: Message edited by: sarvananda sarvananda ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
Generally, JSP is not involved in WS. While it's possible to insert code in a JSP page that makes a WS call, it's much better design to put Java code in a backing bean that's used by a JSP.

The Axis tools generate Java client classes that can be used wherever other Java code runs: a desktop client, a servlet, ...

As to XML, SOAP is based on it, but normally you'll never see it, and don't need to worry about how certain parameters or results find their way into or out of XML. The generated client classes and the Axis web app do all that.

Does this answer your question?


Ping & DNS - updated with new look and Ping home screen widget
sarvananda sarvananda
Greenhorn

Joined: Mar 20, 2007
Posts: 21
Generally, JSP is not involved in WS. While it's possible to insert code in a JSP page that makes a WS call, it's much better design to put Java code in a backing bean that's used by a JSP.
The Axis tools generate Java client classes that can be used wherever other Java code runs: a desktop client, a servlet, ...

right. I was wondering how this would exactly happen. Do I write a helper class (POJO) with passing these attribs. to the service (In this case the java class given by axis?) ?


As to XML, SOAP is based on it, but normally you'll never see it, and don't need to worry about how certain parameters or results find their way into or out of XML. The generated client classes and the Axis web app do all that.

right. thankfully so

Does this answer your question?

It does to a certain extent. I am still looking at a lot of tuts. and almost all of them are just about talking majorly about SOAP and WSDL.
probably a simple hello world in a client-server architecture would be of immense help.
any ideas on video tutorials (CBT) ?

thank you so much for the effort in replying. I appreciate. My questions might seem sily, but they are coming out of complete ignorance of ws.

TIA
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39548
    
  27
Do I write a helper class (POJO) with passing these attribs. to the service (In this case the java class given by axis?)

Yes, I think Axis doesn't generate a runnable wrapper with a main method. The article you linked to does include one, though.
sarvananda sarvananda
Greenhorn

Joined: Mar 20, 2007
Posts: 21
thank you very much for your reply. Good day.
sarvananda sarvananda
Greenhorn

Joined: Mar 20, 2007
Posts: 21
finally after reading the entire page http://www.onjava.com/lpt/a/1578
I know am a lill more comfortable with the term ws and all the hu ha around it. . I would seriously recommend ANY new comer to go to this site for the "First steps" .... what do you think Ulf.

..... at some point we will just think, "I want this as a Web service," and it will happen. Dion Almaer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Another Noob
 
Similar Threads
Can anyone send me the tutorial
General Doubts in WebServices after Fibonacci Example
As a service provider and service consumer
APACHE AXIS AND SOAP (urgent)
Doubts in Fibonacci Web Services Example