Jump to content

php web services


jcworking2000

Recommended Posts

Hi, i have created a php form using web services. i am able to connect to the webservice but not the db, when data was submitted, it always return an error message "System.FormatException: Input string was not in a correct format", here is the code, any comments will be appreciated.

 

      $data = "xyz";

 

ini_set('soap.wsdl_cache_enabled', 0);

$client = new SoapClient("xxx.asmx?wsdl", array('trace' => 1,  'exceptions'=> 1,));

 

 

try {

$params->userDataXMLString = $data;

$objectresult = $client->function($params);

$simpleresult = $objectresult->functionResult;

 

var_dump($simpleresult);

} catch (SoapFault $exception) {

echo $exception;

}   

Link to comment
https://forums.phpfreaks.com/topic/176751-php-web-services/
Share on other sites

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.