jcworking2000 Posted October 6, 2009 Share Posted October 6, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.