File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "web service client" Watch "web service client" New topic

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="" />

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.

Tim Moores

Joined: Sep 21, 2011
Posts: 2409
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:
subject: web service client
It's not a secret anymore!