File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes How to do ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "How to do ???" Watch "How to do ???" New topic
Author

How to do ???

Krasimir Goutcev
Greenhorn

Joined: May 13, 2009
Posts: 3
Hi all,
I need your help.

So, I must create client to call several webservices.
All services have 1 method with 1 string argument and return String.

But all this webservices are on different adresses and with different names.

Until now I'm used JAX-WS to create simple client, but in this case it can't be done.

Please give me idea how to do this???


Regards.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2329
Until now I'm used JAX-WS to create simple client, but in this case it can't be done.

Why not?
Krasimir Goutcev
Greenhorn

Joined: May 13, 2009
Posts: 3
My be i'm wrong bit when i say JAX-WS client i mean:

wsimport .....


This command will create client from WSDL.

When i try to use this client i get: ....Undefined port type:...


Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2329
Check the documentation of whatever SOAP stack you're using - it should have a full example of how to create client code, including how to use wsimport. Without seeing the details of what you're doing (like the full command line, and the WSDL) I don't think there's much we can do to help.
Krasimir Goutcev
Greenhorn

Joined: May 13, 2009
Posts: 3
The question is simple.
How to create clietn who can consume this 2 wsdl
------------- 1 -----------------

----------2 ---------
Kiran Yadav
Ranch Hand

Joined: Nov 02, 2011
Posts: 33

There various tools available in market which will automate the client creation from WSDL.
You can use RAD, or Eclipse to generate client from WSDL.
 
 
subject: How to do ???
 
Threads others viewed
Authenticate and authorise access to webservices
Need advice in webservice technologies
Best book to learn Web services
Schema Validation on Axis Call Parameters
Java Client for multiple WSDLs
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com