• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I call a web service in the applet?  RSS feed

 
Kidd He
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want applet call a web service, the service operation get some String parameters and return a String[].I can implement the web service with netbeans.But how can I user the web service in a remote applet?
Is the following code generated by netbeans ok?


Can anybody show me some demo code or material?
Thanks!
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It doesn't look like that code passes any parameters to the WS, but it's hard to be sure without knowing more about those classes.

There's no reason why an applet can't call a WS. If the WS doesn't live on the same server as the applet, then it would need to be signed, though.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!