Jump to content

Access agemni.com webservice (.net) with php


kusal

Recommended Posts

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.

  • 4 months later...
  • 4 weeks later...

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..

 

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.