Skip to content

Commit 20b1619

Browse files
authored
Update NuSOAP client example
The $soapClient created in the example is an instance of the native \SoapClient class, instead of NuSOAP.
1 parent 9807a2f commit 20b1619

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

controller/soap_web_service.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ In this case, the SOAP service will allow the client to call a method called
3838

3939
public function hello($name)
4040
{
41-
4241
$message = (new \Swift_Message('Hello Service'))
4342
->setTo('[email protected]')
4443
->setBody($name.' says hi!');
@@ -100,7 +99,7 @@ Below is an example calling the service using a `NuSOAP`_ client. This example
10099
assumes that the ``index()`` method in the controller above is accessible via
101100
the route ``/soap``::
102101

103-
$soapClient = new \SoapClient('http://example.com/index.php/soap?wsdl');
102+
$soapClient = new nusoap_client('http://example.com/index.php/soap?wsdl');
104103

105104
$result = $soapClient->call('hello', ['name' => 'Scott']);
106105

0 commit comments

Comments
 (0)