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.

Link to comment
Share on other sites

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

 

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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