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 call web services. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "how to call web services." Watch "how to call web services." New topic
Author

how to call web services.

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
Hi,

i have used the apache axis and it created the following wsdl file.

Now how can i call this ws from the jsp page.

Please help me.

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41863
    
  63
For starters, no JSP should make any kind of I/O call, including WS calls - move that code into a backing bean.

Axis (like most SOAP toolkits) includes a tool for creating client code for accessing a given WSDL. Check its documentation for "wsdl2java".


Ping & DNS - my free Android networking tools app
pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
Hi,

I have created the client using myeclipse.
And now its running well.

But how can i call this using jsp page.

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41863
    
  63
Some source files should have been created. Consult the documentation of whichever WS plugin you're using for creating the client; it should tell you where to find them.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to call web services.