Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to call web services.

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic