This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Web Services and the fly likes How Can I Access Various 3Rd Party Services In Server Side Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How Can I Access Various 3Rd Party Services In Server Side" Watch "How Can I Access Various 3Rd Party Services In Server Side" New topic
Author

How Can I Access Various 3Rd Party Services In Server Side

revathi kurum
Ranch Hand

Joined: Dec 04, 2013
Posts: 58
Hi good morning,

My question is how to access various 3rd party services(events.con, career.com, indeed.com)in server side actually i tried single services its working in clent side, but how i can access various services in servlet and its should go to clent as a single response.
E Armitage
Rancher

Joined: Mar 17, 2012
Posts: 892
    
    9
Depends on what type of services they are. If they are all REST services then there plenty of Java REST clients that you will get from Google.
revathi kurum
Ranch Hand

Joined: Dec 04, 2013
Posts: 58
thanks actually i want soap web-services please help
E Armitage
Rancher

Joined: Mar 17, 2012
Posts: 892
    
    9
So Google "Java soap client", look at the options suggested and pick one that is best applicable to your project.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
Naturally, if you are doing SOAP or REST requests on the server side you must take the normal precautions to prevent interference between multiple user requests. No servlet instance variables that contain user specific data, etc.

You must also pay particular attention to cleaning up after errors in the SOAP or REST requests so that connections get closed etc no matter whether the request succeeds or fails.

Bill
vk jain
Greenhorn

Joined: Oct 05, 2007
Posts: 21
You can generate stub classes using wsdl2java utility from WSDL for third party services. Once you have stub you can call other web service operation simple as a method call. Otherwise You can also use dynamic proxies way of calling web services if you didn't want to generate stub.
 
Don't get me started about those stupid light bulbs.
 
subject: How Can I Access Various 3Rd Party Services In Server Side