Registration and private vs public keys

Mark Taylor m.b.taylor at bristol.ac.uk
Fri May 2 05:41:04 PDT 2008


On Fri, 2 May 2008, Alasdair Allan wrote:

> In response to the following registration post,
>
> <?xml version="1.0" encoding="UTF-8"?>
> <methodCall>
> <methodName>samp.hub.register</methodName>
> <params>
> <param><value><string>Nu3DwlDwMMbLVKqMNOVR</string></value></param>
> </params>
> </methodCall>
>
> Which looks exactly like example method call from the specification. I get 
> his back from the Perl XMLRPC server
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <methodResponse>
> <params>
> <param><value><string>registerResponse</string></value></param>
> <param><value><string>pfFBQXMjYyns2</string></value></param>
> </params>
> </methodResponse>
>
> rather than what you have in section 4.4 which doesn't have the
>
> <param><value><string>registerResponse</string></value></param>
>
> line included. Is what you have what is returned from a Java implementation?

the XML in the examples was written by me in vi with reference to 
the XML-RPC specification (which means they may contain mistakes -
please shout if you find one).

> If so I think I've just run into our first toolkit issue... *sigh*

this is a toolkit issue only in that it looks like your toolkit
is buggy; the XML-RPC spec says

    The body of the response is a single XML structure, a <methodResponse>,
    which can contain a single <params> which contains a single <param>
    which contains a single <value>.

The examples in sec 4.4 are not in any sense meant to be normative, 
they are just illustrations of combining the rules in the rest of the
document with the XML-RPC specification.

> but that's going to get really icky. It also means I'm going to have
> to look carefully at all the back and forth on the wire in case it's
> adding anything else dumb in there.

Once we get multiple hub implementations using different languages
and different toolkits this sort of thing will show up pretty quickly.

-- 
Mark Taylor   Astronomical Programmer   Physics, Bristol University, UK
m.b.taylor at bris.ac.uk +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/



More information about the apps-samp mailing list