On 01/24/2012 04:38 PM, Juan Mateu wrote:
Hello,
I want to communicate OpenSim objects with an external program. As I
have understood the only way is using XML-RPC protocol. First create a
script for the object in OpenSim, then create a program with Java or C #
for example. I've done some tests based on examples of web and despite
using libraries for Java and C # is not working.
In Java, I get the following errors:
org.apache.xmlrpc.XmlRpcException: Invalid channel
org.apache.xmlrpc.XmlRpcClient at $ Worker.execute (XmlRpcClient.java: 457)
at org.apache.xmlrpc.XmlRpcClient.execute (XmlRpcClient.java: 163)
at SLClient.main (SLClient.java: 15)
The channel that I have is that it shows me the object of OpenSim.
I have used the library for Java is cis69mc.jar.
I've also configured to work with OpenSim port with remoteDataPort.
Someone can guide me to perform communication OpenSim objects with
external programs.
Best Regards.
string url;
default
{
state_entry()
{
llSay(0, "Script running");
llSetText("HTTP",<0,1,0>,1.0);
}
touch_start(integer _det) {
llRequestURL();
}
http_request(key ID, string Method, string Body) {
if (Method == URL_REQUEST_GRANTED) {
url = Body;
llSay(0,Body);
} else if (Method == URL_REQUEST_DENIED) {
llOwnerSay("No URLs free !");
} else if (Method == "GET") {
llHTTPResponse(ID, 200, "Hello there !");
}
}
}
_______________________________________________
Opensim-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/opensim-users