Information on the Java plug-in is at http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/overvie w.html. As suggested by Alex, you can probably use this and signed applets to get around the original applet security restrictions.
Scott Nichol ----- Original Message ----- From: "Scott Nichol" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 19, 2002 10:27 AM Subject: Re: Accessing web service from an applet > For security reasons, an applet can only connect to the host from which > is was loaded. See, e.g., http://java.sun.com/sfaq/#socket. > > The two things I have done to get around this are (1) set up a proxy on > that host or (2) delegate actions to servlets. In your case, you could > also consider writing proxy SOAP service classes. Your applet would > make SOAP calls to the host from which it was loaded. The services on > that host would be clients of the real services, forwarding parameters > received from the applet to the real service, then forwarding responses > from the real service to your applet. > > Scott Nichol > > ----- Original Message ----- > From: "John Kirksey" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, November 19, 2002 10:03 AM > Subject: Accessing web service from an applet > > > Hello, I am new to Java web services; all of my experience is with > Microsoft's SOAP toolkit. > > Is it possible to access a web service from an applet? I am a part time > Information Systems student, and I want to have an applet that connects > to a stock quote service (among other things). > > I have installed the Apache toolkit and tested the sample stock quote > client, and it works perfectly. I have even used several other web > services on Xmethods.com, each successfully. When I convert the code to > an applet, I am now getting: > > java.security.AccessControlException: access denied > (java.net.SocketPermission 66.28.98.121:9090 connect,resolve) > > How can I overcome this? > > Thanks in advance, > > John Kirksey > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>