• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java: Invoke web service using Axis2 stub class  RSS feed

 
Monish Chandrasekar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm new to web services. With all difficulty I have generated a simple 'Hello World' web service . I want to invoke the web service using java. The web service has a hard coded value shown as the output. Here is what I have tried.

I have created a new Dynamic web Project in Eclipse for web service client.
To this project generated stub classes for the web service using Axis2 and Eclipse.
I am not able to understand what the generated stub class basically contain, and how to use the stub class to invoke the webservice.
The stub class generated has too many lines of code. which i cannot paste it here; Is there any particular class that i need to concentrate on inorder to invoke a method in the webservice?
Could you please let me know how to invoke a web service using Java in eclipse.

Part of theWSDL looks something like this

Later part: In case my webService has input(eg: web service for addition) how do i pass the request parameters and get an output as a response.
 
Surendra Kumar
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can look at this client generating code to write a client that makes web service call.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!