Jump to content

jcworking2000

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jcworking2000's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. 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; }
  2. I have try both, true & false, still get the same result..... --- any idea?
  3. Thanks for your reply. i try to print it out but it display this stdClass Object ( ) please help. i think it's almost there. Thanks and have a great day.
  4. hi all, i am new to php and web service but i am trying to connect to a database using web services in php, i am able to add the web service to my page but just wondering how to capture the response and display it? in the following code, it suppose to print out "hello world". thanks for your help in advance. $xml = "<Process_MM_Test>Hello World</Process_MM_Test>"; ini_set('soap.wsdl_cache_enabled', 0); $client = new SoapClient("xxx.asmx?wsdl"); $response = $client->__soapCall("Process_MM_Test", array("xml_formatted_string" => $xml)); thanks
×
×
  • 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.