kusal Posted April 26, 2010 Share Posted April 26, 2010 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. Quote Link to comment Share on other sites More sharing options...
aeroswat Posted April 26, 2010 Share Posted April 26, 2010 Good idea to have your username and password listed? I think not I would edit that if i were you Quote Link to comment Share on other sites More sharing options...
kusal Posted April 26, 2010 Author Share Posted April 26, 2010 its alright its just a trail account to test out the api. I left it so someone can run the code and help me Quote Link to comment Share on other sites More sharing options...
Urzu20 Posted September 19, 2010 Share Posted September 19, 2010 I am also having this same issue with Agemni. Has anyone found a resolution to the problem? Quote Link to comment Share on other sites More sharing options...
geertsen Posted October 13, 2010 Share Posted October 13, 2010 I was having the same issue "Conversion from type 'XmlNode()' to type 'String' is not valid." After going back and forth with Agemni for the past few weeks, Today they changed something on their side so it should work now.., I resubmitted, NOW IT WORKS.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.