File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes examples on webservices Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "examples on webservices" Watch "examples on webservices" New topic
Author

examples on webservices

Ram Ravisankar
Greenhorn

Joined: Jan 26, 2004
Posts: 2
Hi ,
I am new to webservices, is there any example on the web where I could go to take a peek at an implementation of webservices being exposed through a servlet which calls a bean and returns values?
Also, if you know of any worthy book on webservices please let me know.
thanks


/* Me thinks everyone drools at my member id */
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
probably this link will help you, but you have learn apache axis first to use them http://cvs.apache.org/viewcvs.cgi/ws-axis/java/samples/
try this as well.. http://www.xmethods.net/
[ January 27, 2004: Message edited by: Balaji Loganathan ]

Spritle Software Blogs
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Ram Ravisankar:
Also, if you know of any worthy book on webservices please let me know.
Hmm. Let's see. How about this one?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898

Are are any specific domains where Web Services are more likely to succeed? :roll:


Groovy
Ram Ravisankar
Greenhorn

Joined: Jan 26, 2004
Posts: 2
thanks guys. I will check out the book too.
Axis looks very easy to implement compared to Sun's!
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Pradeep Bhat:
Are are any specific domains where Web Services are more likely to succeed? :roll:
B2B integration, for example. To generalize a bit further, web services is a good fit for situations where the two sides of an integration are not under mutual control and thus have to rely on standards as much as they can in order to preserve the business case for making the integration in the first place (it's probably not worth it if you need to re-implemented large parts of the partners' systems).
Matt Holloway
Ranch Hand

Joined: Oct 16, 2003
Posts: 53
So, I'm trying to gain an idea here on Web Services. From what I interpret then, any integration between two disimilar systems can be performed as a web service? An example might be to get data from an ERP, and transform it using a product such as WebLogic Integration then pass it to another system, am I correct?
Initially, I was under the assumption that web services were more like a middle tier layer in an n-tier architecture... maybe it is this too?
Richard Monson-Haefel
author
Ranch Hand

Joined: Oct 31, 2003
Posts: 92
Just about anytime you need integration between two different platforms and high preformance (speed) is not critical, than Web services is an excellent option within the organization (A2A/EAI). That said, in just about any B2B problem where you are working with parterns outside your organization, web services makes sense because these types of intergations are (a) much more difficult with closely coupled systems like Java RMI or CORBA, and (b) integration with outside organization is usally not dependent on speed.
Web services with SOAP are not super slow, like pain-pealing slow, but they are slower than something like Java RMI or CORBA IIOP because you can't achieve the same speeds parsing text as you can dealing with primitive values like ints, doubles, etc.


-- <br />Richard Monson-Haefel<br /><a href="http://www.Monson-Haefel.com" target="_blank" rel="nofollow">http://www.Monson-Haefel.com</a>
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898

Lasse
What about telecom domain, I guess CORBA was successfully adopted there?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Pradeep Bhat:
What about telecom domain, I guess CORBA was successfully adopted there?
Yes, I've also heard rumors that they're using CORBA
However, telecom systems are often associated with serious performance requirements so using CORBA makes sense.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898

Any guidelines how to build scalable Web Services?
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
Building Scalable web services is much like building scalable servlets. If your web service is stateless, does not rely on things like singletons, and obeys the rules of J2EE in its implementation, then you should be able to scale it linearly with a simple ip-sprayer load balancer.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Pradeep Bhat:
Any guidelines how to build scalable Web Services?
In the end, web services is only a way to expose services. The most important part in making a scalable web service would be the way that web service is implemented. In other words, the answer would be the same as for any other server-side software that needs to be accessed over the Web.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: examples on webservices
 
Similar Threads
HF Java Webservices
webservices basic
pass xml on url?
Passed SCDJWS 5 (310-230) with 69%
WebServices certification