Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

XML-RPC: 500 Server Error issues

CrystalShard Foo
1+1=10
Join date: 6 Feb 2004
Posts: 682
08-27-2004 11:56
Hi hi.

I am trying to write an external application that will communicate with an LSL script via XML-RPC, and I seem to be having some trouble.

I keep getting 500 Server Error replies when I tried to send my data. Any ideas?

Here is the communication I am trying to use:
(connecting to 66.150.244.144:80 )

POST /cgi-bin/xmlrpc.cgi HTTP/1.1
User-Agent: Test application
Host: -= IP removed for forum post :P =-
Content-type: text/xml
Content-length: 409
Connection: close

<?xml version="1.1"?>
<methodCall><methodName>llRemoteData</methodName>
<params><param><value><struct>
<member><name>Channel</name><value><String>240f8758-6424-5b1f-c188-67ace39cc537</String></value></member>
<member><name>IntValue</name><value><int>1</int></value></member>
<member><name>StringValue</name><value><String>Hello world!</String></value></member>
</struct></value></param></params></methodCall>
MSo Lambert
Registered User
Join date: 16 Aug 2004
Posts: 101
08-29-2004 03:36
Hmm the request looks pretty ok to me... did you check if

A) xmlrpc.secondlife.com host was accessible and working at that time?

B) your LSL script was catching REMOTE_DATA_REQUEST remote_data events and actually replying with llRemoteDataReply after every request?

Stupid questions, I know, but other than that, your request looks just fine to me.
_____________________
MSo
Ming Chen
Here since 0.4.1!
Join date: 3 Sep 2003
Posts: 524
08-29-2004 08:43
1) you dont need to reply to every request
2)RPC wants to go off frequesntly in the update tiemrange
(last-week to one week after 1.5)

--Ming
_____________________
MSo Lambert
Registered User
Join date: 16 Aug 2004
Posts: 101
08-29-2004 09:06
From: someone
1) you dont need to reply to every request


... unless you want to know if your request was received properly ;) But yes, there is no need to reply to every one... sorry if my answer was misleading...
_____________________
MSo
Jack Lambert
Registered User
Join date: 4 Jun 2004
Posts: 265
08-29-2004 12:53
Incidentally while we're on the subject...

is there a way to wrap the xml in some sort of security? It's slightly worrying as basic text :)

--Jack Lambert
MSo Lambert
Registered User
Join date: 16 Aug 2004
Posts: 101
08-29-2004 13:06
Well the XML security usually depends on the underlying protocol (https...), but im not aware if Linden Labs has a https access to their xml-rpc endpoint...

As an alternative, I saw some simple and effective LSL encryption libraries posted on the forums that could be used to transfer encrypted data.
_____________________
MSo
CrystalShard Foo
1+1=10
Join date: 6 Feb 2004
Posts: 682
08-30-2004 08:34
I have a PHP based XML-RPC client uploaded on my site and it appears to be working allright with my test XML-RPC LSL script on SL.

Problems start only when I try to use the windows client that I am writing. The fact that I get a reply of sorts from the server shows that the connection is fine... I made the program dump the text it sends over debug info and it seems like its sending the right data up the TCP stream..

... i'm really lost here. Something isnt pharsed correctly and I have no idea what. o.O
MSo Lambert
Registered User
Join date: 16 Aug 2004
Posts: 101
08-30-2004 14:36
Ok, Icopied your XML request exactly as you posted it and I sent it through my windows client to the test LSL script (changing only the channel key).

I couldn't get my script to receive your XML request, until I changed all the <String> tags to <string>. After that, it worked like a charm every time.

Hope that helps...
_____________________
MSo