$client->getRecordList( 'demo_api', 'de...@example.com', 'demo', array( 'is_report' => false, // Data not for report, but for export 'r_how' => 1, // Show by detail, not grouped ) )
For android application it looks like:
SoapObject _client = new SoapObject("", "getRecordList");
_client.addProperty("apiId", "demo_api");
_client.addProperty("login", "de...@example.com");
_client.addProperty("pass", "demo");
SoapObject param = new SoapObject();
param.addProperty("is_report",false);
param.addProperty("r_how",1);
_client.addProperty("params",param);
SoapSerializationEnvelope _envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
_envelope.bodyOut = _client;
HttpTransportSE _ht = new HttpTransportSE("http://www.drebedengi.ru/soap/");
_ht.debug = true;
try {
_ht.call("", _envelope);
System.out.println(_envelope.getResponse());
} catch (Exception e) {
System.out.println(_ht.responseDump);
e.printStackTrace();
}
I am using ksoap2 in my android app to connect to Magento SOAP API.
In the PHP server, I can create customerData by
$customerData = array(
"firstname" => "testFirstname",
"lastname" => "testLastName",
"email" => "test...@mail.com",
"mode" => "guest",
"website_id" => "0"
);
in my code, I don't know how to implement in the ????? part.
request.addProperty("customerData", ?????);
I have try SoapObject, HashTable, String, it seemed that web server did not receive data.
Can you confirm that this method is still working? I have tried that, but it did not.