I'm trying to access the agemni.com webservice using php which has been a very hard since it is wrriten in .net
<?php
$client = new SoapClient("http://agemni.com/AgemniWebservices/service1.asmx?WSDL", array('trace' => 1));
$options->strUsername = "karth";
$options->strPassword = "7pk6Xc8o";
$options->strCompanyName = "webloon";
$options->objecttype = 2;
$options->keys = array("fname", "lname", "phone", "zip", "area id", "lead id", "contactdate");
$options->values = array("John", "Doe", "859-333-3333", "40332", "12345", "28222", "4/10/2010");
$validate = $client->ValidateEntity($options);
echo '<pre>';
echo var_dump($validate);
echo '</pre>';
echo '<br><br>';
echo htmlspecialchars($client->__getLastRequest());
?>
I was able to connect using the credentials but I get a error,
Conversion from type 'XmlNode()' to type 'String' is not valid.
This is the relevant part from the getType method.
[3]=>
string(18) "string statusCodes"
[4]=>
string(154) "struct ValidateEntity {
string strUsername;
string strPassword;
string strCompanyName;
int objecttype;
ArrayOfAnyType keys;
ArrayOfAnyType values;
}"
[5]=>
string(43) "struct ArrayOfAnyType {
anyType anyType;
}
Anyone knows how to pass ArrayOfAnyType using php?
Thank you.