|
Hi Sumeet,
I've also found that you can't use the class
"org.apache.xmlrpc.XmlRpcClient" when your client is an applet. I've tried and
ran into the same error message you did.
I switched to using
"org.apache.xmlrpc.applet.SimpleXmlRpcClient" and my applet works fine
now.
- Paul From: James Carroll [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 18, 2005 6:12 AM To: [email protected] Subject: RE: Can we use XML RPC Client within an Applet Hi Sumeet,
The applet can be an
XML-RPC client, and it can make requests to other machines, the
trick is that the applet make
the request back to the originating machine (the one with the web
page and the
applet�) but make the request to something that will proxy the
request to the other machine, receive the
result, and then return that result to your applet. You can use a
Directory directive in
apache.conf with mod_proxy to do the proxying� (but be careful you don�t
let it proxy any request from
anywhere to anywhere, hackers will use this to anonymize their
traffic.) There are other ways of
having something on your originating server return the results from
another machine too�
a java servlet would look something like:
URL url = "" URL(ourRequest);
URLConnection connection = url.openConnection();
BufferedInputStream bis = new
BufferedInputStream(connection.getInputStream());
OutputStream binout = null;
byte[] storage = new byte[storageLength];
binout
= response.getOutputStream();
//
relay whatever content type is returned from our
request
response.setContentType(connection.getContentType());
while (true)
{
int bytesRead = bis.read(storage, 0,
storageLength);
if (bytesRead == -1)
{
break;
}
binout.write(storage, 0, bytesRead);
�. (not a working
example.) -Jim From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Hi andreas,
Rgds,
Is the
server the applet tries to connect to the same one it (the applet) originated
from ? java.security.AccessControlException: access denied
(java.util.PropertyPermission org.apache.xmlrpc.TypeFactory read)
|
Title: RE: Can we use XML RPC Client within an Applet
- Can we use XML RPC Client within an Applet sumeet . s
- Re: Can we use XML RPC Client within an... Indra Syafruddin
- RE: Can we use XML RPC Client within an... "Sch�lver, Andreas"
- RE: Can we use XML RPC Client within an... sumeet . s
- RE: Can we use XML RPC Client withi... Tino Wildenhain
- RE: Can we use XML RPC Client within an... James Carroll
- mail archive Leverett, Paul Van
- mail archive Jason Wyatt
- String compare Indra Syafruddin
- Re: String compare Adam Taft
- Re: String compare Calicrates Policroniades
