[ejabberd] example of xml message for xml-rpc module

Badlop badlop at gmail.com
Wed May 14 22:49:10 MSD 2008


On Tue, May 13, 2008 at 6:28 AM, mark peleus <mark.peleus at gmail.com> wrote:
> Can someone please explain how should look the xml message that are used
> with mod xmlrpc?

I never tried to write the XML myself. I just used the examples in README.txt


> For example, how will the xml look when trying to register a new user
> Is it something like this:
>
> <?xml version="1.0"?>
> <methodCall>
>   <methodName>create_account</methodName>
>   <struct>
>         <member>
>           <name>user</name>
>           <value><string>the_user_name</string></value>
>           <name>host</name>
>           <value><string>the_host_name</string></value>
>           <name>password</name>
>           <value><string>the_user_password</string></value>
> </struct>
> </methodCall>

You forgot an </member> at the end?


> If I'm compiling xmlrpc-1.13-ipr2 manually and put the beam files in the
> main beam folder do I still need the line:
>
> $ erl -pa '/home/jabber/xmlrpc-1.13/ebin' ...

Right, if you copy the beams from /home/jabber/xmlrpc-1.13/ebin to the
directory where all the other ejabberd beam files are, then you don't
need to provide that -pa argument.


More information about the ejabberd mailing list