Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remote Web Services

I am new to web services. I have a requirement in my project. I have to consume the web services of our vendor in my project. All he has shared with me is a WSDL file and a document about the description of the the different operations. Question:- 1: What do I need to do consume these web services in my java project? I have been advised to use axis2, eclipse with tomcat6. 2: Do I need to ask for some other files/information from WS vendor OR wsdl file is enough to consume these web services? 3: Do I need to write a java WS client (using axis2 plugin) or another webservice which will talk to vendor web service?

Please suggest the best possible way.

I am sorry if the question sounds like a naive..

like image 989
freemnd76 Avatar asked Jul 20 '26 18:07

freemnd76


2 Answers

Axis is a solid choice for such application.

  1. You need to generate an axis client based on the provided WSDL. Then you import the generated client and use it's methods. You can see the details of this process here (read whole page or starting from the linked section): http://ws.apache.org/axis2/1_0/userguide3.html#Writing_Web_Service_Clients_using_Code_Generation_with_Data_Binding_Support
  2. You could also need some entry-point (WebService URL).
  3. You need to generate a client, not a webservice. See point 1.
like image 121
bezmax Avatar answered Jul 23 '26 09:07

bezmax


Don't use Axis if you need ambient authentication in a Windows environment. I went down that path and ended up going with Apache CXF - which seems better to me anyhow.

like image 20
andyczerwonka Avatar answered Jul 23 '26 07:07

andyczerwonka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!