Using 1.2-b1. ( BTW, the e-mail archives is not valid from the website ).


The following XML was generated by XMLRPC-1.2b1:

POST / HTTP/1.1
Content-Length: 342
Content-Type: text/xml
User-Agent: Java1.3.1
Host: 192.168.0.82
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

<?xml version="1.0" encoding="ISO-8859-1"?>
<methodCall>
        <methodName>sendsimplemessage</methodName>
        <params>
        <param>
        <value>
        <struct><member>
                <name>MSISDN</name>
                <value>
                        <array><data><value>
                        <struct><member>
                                <name>num</name>
                                <value>+61444444</value>
                        </member></struct>
                        </value></data></array>
                </value>
        </member></struct>
        </value>
        </param>
        </params>
</methodCall>


Notice that the part where it says:


        <struct><member>
                <name>num</name>
                <value>+61444444</value>
        </member></struct>

... which has a missing type for the value element.
I was expecting it to be:


<struct><member> <name>num</name> <value><string>+61444444</string></value> </member></struct>



Here's the code that generated it:

import java.io.*;
import java.net.*;
import java.util.*;

import org.apache.xmlrpc.*;
import org.apache.xmlrpc.secure.*;

public class XMLRPCTest {

public XMLRPCTest() {

}

  public static void main( String args[] ) throws Exception {
     XmlRpcClient client = new SecureXmlRpcClient (
      "http://192.168.0.82"; );
     XmlRpc.debug = true;
     Vector    params = new Vector();
     Hashtable hashParams = new Hashtable();

     Vector msisdns = new Vector();
     Hashtable hashNumber = new Hashtable();
     hashNumber.put( "num", "+61444444" );
     msisdns.add( hashNumber );

     hashParams.put( "MSISDN", msisdns );
     params.add( hashParams );


client.execute( "sendsimplemessage", params ); }

}






Regards,



-- Jesus M. Salvo Jr. Mobile Internet Group Pty Ltd (formerly Softgame International Pty Ltd) M: +61 409 126699 T: +61 2 94604777 F: +61 2 94603677

PGP Public key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC0BA5348




Reply via email to