aspose 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: 301
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: 42946
    
  70
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".
pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 301
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: 42946
    
  70
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to call web services.