SOAP: Difference between revisions
Content added Content deleted
m (→[[PHP]]: Fixed formatting) |
|||
Line 3: | Line 3: | ||
<?php |
<?php |
||
⚫ | |||
/* |
|||
⚫ | |||
* you can create a client... |
|||
*/ |
|||
⚫ | |||
⚫ | |||
/* |
|||
⚫ | |||
* single string parameter $input, and returns a result. |
|||
*/ |
|||
⚫ | |||
⚫ | |||
/* |
|||
⚫ | |||
⚫ | |||
* single integer parameter $input, and returns a result. |
|||
*/ |
|||
⚫ | |||
⚫ | |||
⚫ | |||
?> |
Revision as of 15:48, 23 January 2007
PHP
<?php
Assuming you have a wsdl definition file at at 'http://example.com/soap/wsdl', you can create a client...
$client = new SoapClient('http://example.com/soap/wsdl');
in this example, the soap server has a function called 'soapFunc' with a single string parameter $input, and returns a result.
$result = $client->soapFunc('hello');
in this example, the soap server has a function called 'anotherSoapFunc' with a single integer parameter $input, and returns a result.
$result = $client->anotherSoapFunc(34234); ?>