This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Web Services and the fly likes web service client 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 "web service client" Watch "web service client" New topic
Author

web service client

Kumar Gaurav
Ranch Hand

Joined: Apr 08, 2008
Posts: 108
Hi All,

I have to to act as webservice client and have to invoke method exposed by web service.
I know the wsdl url . Also in wsdl

<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />

that is it uses rpc-encoded style.
Also it requires BASIC authentication for which i know the userid and password.

Can anyone please suggest me how to generate client and use this web service using the client.
My application will be deployed in Jboss.
I have to invoke web service from a java class

Please let me know if anything else i need to share.


Regards,
Gaurav
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
All major SOAP stacks have tools for creating client code; check the documentation of whichever one you intend to use (Axis2, JAX-WS RI, etc.). The tool could be called wsdl2java or something like that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web service client
 
Similar Threads
RMI to SOAP conversion
JAX-RPC
Web service client implementation (Connection refused error)
How to generate a correct WSDL for a service with overloaded methods ?
problem with Axis1.4 web service