File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Client to call deployed Java Webservice

 
mansi sac
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am quite new to webservices.I have been given this task where I have to make a Java class which acts as a client to call methods of a java webservice deployed on Weblogic8.1 server.

Please suggest me how to proceed with it.

Thanks in advance,
Mansi
 
Philip Grove
Ranch Hand
Posts: 68
Firefox Browser Java Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What language is used to write the server part of the web service does not matter.

How to go about writing a client depends on the service itself. I guess that you have a SOAP service on the other end in which case I suggest that you look towards the javax.xml.soap package, you can find help here: Tip: Send and receive SOAP messages with SAAJ from IBM DeveloperWorks. I have previous used exactly the same document to enable me to write a SOAP client and it worked perfectly and was fairly easy to develop.

I would suggest that you learn a little about web services and XML before you have a go at the example because they dive right into the API abd expect you to know the basics.
 
Gnanasekaran Sakthivel
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am also new. Recently I tried one. Download Axis2 at http://axis.apache.org/axis2/java/core/. Download the one that is aligning with the JDK you use. They have 'Quick Start' and 'Installation Guide'. Please go through them at least once. In Axis2, there is a tool called wsdl2java. This can create client code. We just need to use them to test it. You need necessary library (jars) in the environment where you develop/run this. Things like security, etc might come into the picture.
There is a lot more to Webservices than what I said. As Philip said, please read more information as you go along.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic