SampleMain.cpp
// main.cpp:   includes both a little unit test and a sample client program.
main.cpp:   includes both a little unit test and a sample client program.
main . cpp : includes both a little unit test and a sample client program .
static void BasicTest()
{
	XmlRpcClient Connection("http://web.edval.com.au/rpc");
	Connection.setIgnoreCertificateAuthority();
	Connection.setBasicAuth_UsernameAndPassword("foo", "goo");
	XmlRpcValue args, result;
	args[0] = "test";
	args[1] = 1;
	double g = 3.14159;
	XmlRpcValue binary(&g, sizeof(g));
	args[2] = binary;
	XmlRpcValue::BinaryData bdata = binary;
	Replace this function name with your own:
	if (! Connection.execute("getKilowatts", args, result)) {
		std::cout << Connection.getError();
	}
	else if (result.getType() == XmlRpcValue::TypeString)
		std::cout << result.GetStdString();
	else std::cout << "Success\n";
}
static void BasicTest ( ) { XmlRpcClient Connection ( " " ) ; Connection . setIgnoreCertificateAuthority ( ) ; Connection . setBasicAuth_UsernameAndPassword ( " " , " " ) ; XmlRpcValue args , result ; args [ 0 ] = " " ; args [ 1 ] = 1 ; double g = 3.14159 ; XmlRpcValue binary ( & g , sizeof ( g ) ) ; args [ 2 ] = binary ; XmlRpcValue :: BinaryData bdata = binary ; if ( ! Connection . execute ( " " , args , result ) ) { std :: cout << Connection . getError ( ) ; } else if ( result . getType ( ) == XmlRpcValue :: TypeString ) std :: cout << result . GetStdString ( ) ; else std :: cout << " \n " ; }
main.cpp:   includes both a little unit test and a sample client program.
main . cpp : includes both a little unit test and a sample client program .
// Replace this URL with your own URL: //Connection.setBasicAuth_Callback(PopUpAPrettyDialog); //  Call:  arumate.getKilowatts(string, integer)   : //  // Replace this function name with your own: