note 101835 added to soapclient.soapclient
| From: | AsafMeller at osu1 dot php dot net | Date: | Thu, 13 Jan 2011 13:57:13 +0000 |
| Subject: | note 101835 added to soapclient.soapclient | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-175703@lists.php.net to get a copy of this message | ||
a full working php .net soap configuration :
notes
1. web.config on .net server must work with basichttp binding.
2. paramaters to soap functions must be passed as :
array ('parm1_name'=>'parm1_value',
'parm2_name'=>'parm2_value'...)
<?php
header('Content-Type: text/plain');
try {
$options = array(
'soap_version'=>SOAP_1_1,
'exceptions'=>true,
'trace'=>1,
'cache_wsdl'=>WSDL_CACHE_NONE
);
$client = new SoapClient('http://www.site.com/end_point.wsdl',
$options);
// Note where 'Get' and 'request' tags are in the XML
} catch (Exception $e) {
echo "<h2>Exception Error!</h2>";
echo $e->getMessage();
}
echo 'running HelloWorld :';
try {
$response=$client->HelloWorld();
}
catch (Exception $e)
{
echo 'Caught exception: ', $e->getMessage(), "\n";
}
print_r($response);
?>
good luck !
Asaf.
----
Server IP: 69.147.83.197
Probable Submitter: 84.229.77.67
----
Manual Page -- http://www.php.net/manual/en/soapclient.soapclient.php
Edit -- https://master.php.net/note/edit/101835
Del: integrated -- https://master.php.net/note/delete/101835/integrated
Del: useless -- https://master.php.net/note/delete/101835/useless
Del: bad code -- https://master.php.net/note/delete/101835/bad+code
Del: spam -- https://master.php.net/note/delete/101835/spam
Del: non-english -- https://master.php.net/note/delete/101835/non-english
Del: in docs -- https://master.php.net/note/delete/101835/in+docs
Del: other reasons-- https://master.php.net/note/delete/101835
Reject -- https://master.php.net/note/reject/101835
Search -- https://master.php.net/manage/user-notes.php