note 88012 added to function.soap-soapclient-soapcall
| From: | uwe dot trotzek at gmx dot de | Date: | Tue, 06 Jan 2009 09:07:37 +0000 |
| Subject: | note 88012 added to function.soap-soapclient-soapcall | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-148877@lists.php.net to get a copy of this message | ||
Receiving .NET Datatables in PHP:
<?php
public function getDataBySQL($strSQL){
$arrParams = array( 'strSQL' => $strSQL);
try{
$arrOptions = array('location' => WBSRV_URI);
$this->_sclWebService = new SoapClient(WBSRV_WSDL_PATH, $arrOptions);
$dt = $this->_sclWebService
->getTableFromSQL($arrParams)
->getTableFromSQLResult
->any;
$dt = simplexml_load_string($dt)->NewDataSet;
return $dt;
}catch (Exception $e){
echo $e->getMessage();
}
}
?>
The serialized xml String has to be converted first using the function simplexml_load_string.
Now the complete dataset is represented in $dt
----
Server IP: 217.160.72.57
Probable Submitter: 192.166.87.116
----
Manual Page -- http://www.php.net/manual/en/function.soap-soapclient-soapcall.php
Edit -- https://master.php.net/note/edit/88012
Del: integrated -- https://master.php.net/note/delete/88012/integrated
Del: useless -- https://master.php.net/note/delete/88012/useless
Del: bad code -- https://master.php.net/note/delete/88012/bad+code
Del: spam -- https://master.php.net/note/delete/88012/spam
Del: non-english -- https://master.php.net/note/delete/88012/non-english
Del: in docs -- https://master.php.net/note/delete/88012/in+docs
Del: other reasons-- https://master.php.net/note/delete/88012
Reject -- https://master.php.net/note/reject/88012
Search -- https://master.php.net/manage/user-notes.php