It would be great if you could add this information to [1], Chris, so the next 
poor soul has a shoulder to stand on :)

[1] http://opensimulator.org/wiki/RemoteAdmin

On 15/11/11 15:58, Ovi Chris Rouly wrote:
Folks,
What follows may be of no use to anyone. But, this week I needed it and 
couldn't find one like it (or anything even
close to it). What it is is a simple example of the input required by OpenSim 
0.7.2 through its [Remote Admin] control
port in order to control, for example, the "create a new user" function.
Shown below is a plain text string that OpenSim 0.7.2 will accept through the 
remoteAdmin control port. Some of you may
know and understand the implications of using an XML-based remote procedure 
calling (RPC) service to control an external
application via a few key control tokens, an available network connection, and 
the former's transmission through that
connection. Others may not. So, to be brief, I'll just say that the remoteAdmin 
port provides such a functionality. And,
in order to take advantage of OpenSim's remote admin facility, I "knitted" 
together some C# source that produced the
remoteAdmin control port's required HTTP/1.0 protocol stream with its embedded 
data tokens. The example that follows is
that plain text control/data stream output. I have found that this string will cause 
OpenSim to "create a new user" on
my box with its StandAlone 0.7.2 instance.
Maybe I'm wrong, but since I had to work fairly hard to gain this "template 
string" (and its implications for all the
other remoteAdmin functions), I thought maybe it might have value for someone 
else in the group. Thus, may I offer to
toss it out to the OpenSim Users Group. The web site (see the reference below) 
has other more language-specific,
abstract, yet "vital" resources. In particular, the C# methods were 
*INVALUABLE* as were Justin's helpful words.
Respectfully,
Chris
ref: http://opensimulator.org/wiki/RemoteAdmin
 >>>>>>EXAMPLE FOLLOWS<<<<<<<

POST admin_create_user HTTP/1.0
Host: http://10.0.0.12:16384/
Content-type: text/xml
Content-Length: 993

<?xml version="1.0"?>
<methodCall>
<methodName>admin_create_user</methodName>
<params>
<param>
<value>
<struct>
<member>
<name>password</name>
<value><string>password</string></value>
</member>
<member>
<name>user_firstname</name>
<value><string>male</string></value>
</member>
<member>
<name>user_lastname</name>
<value><string>9999</string></value>
</member>
<member>
<name>user_password</name>
<value><string>password</string></value>
</member>
<member>
<name>user_email</name>
<value><string>[email protected]</string></value>
</member>
<member>
<name>start_region_x</name>
<value><int>128</int></value>
</member>
<member>
<name>start_region_y</name>
<value><int>128</int></value>
</member>
</struct>
</value>
</param>
</params>
</methodCall>



_______________________________________________
Opensim-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/opensim-users


--
Justin Clark-Casey (justincc)
http://justincc.org/blog
http://twitter.com/justincc
_______________________________________________
Opensim-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/opensim-users

Reply via email to