Skip to content

Commit a099fbc

Browse files
authored
Use native \SoapClient instead of NuSOAP client
1 parent 20b1619 commit a099fbc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

controller/soap_web_service.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ buffering the STDOUT and use ``ob_get_clean()`` to dump the echoed output
9595
into the content of the Response and clear the output buffer. Finally, you're
9696
ready to return the ``Response``.
9797

98-
Below is an example calling the service using a `NuSOAP`_ client. This example
98+
Below is an example calling the service using a native `SoapClient`_ client. This example
9999
assumes that the ``index()`` method in the controller above is accessible via
100100
the route ``/soap``::
101101

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

104-
$result = $soapClient->call('hello', ['name' => 'Scott']);
104+
$result = $soapClient->__soapCall('hello', ['name' => 'Scott']);
105105

106106
An example WSDL is below.
107107

@@ -169,3 +169,4 @@ An example WSDL is below.
169169
.. _`NuSOAP`: https://sourceforge.net/projects/nusoap
170170
.. _`output buffering`: https://www.php.net/manual/en/book.outcontrol.php
171171
.. _`Laminas SOAP`: https://docs.laminas.dev/laminas-soap/server/
172+
.. _`SoapClient`: https://www.php.net/manual/en/class.soapclient.php

0 commit comments

Comments
 (0)