@@ -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('me@example.com')
4443 ->setBody($name.' says hi!');
@@ -96,13 +95,13 @@ buffering the STDOUT and use ``ob_get_clean()`` to dump the echoed output
9695into the content of the Response and clear the output buffer. Finally, you're
9796ready to return the ``Response ``.
9897
99- 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
10099assumes that the ``index() `` method in the controller above is accessible via
101100the route ``/soap ``::
102101
103102 $soapClient = new \SoapClient('http://example.com/index.php/soap?wsdl');
104103
105- $result = $soapClient->call ('hello', ['name' => 'Scott']);
104+ $result = $soapClient->__soapCall ('hello', ['name' => 'Scott']);
106105
107106An example WSDL is below.
108107
@@ -170,3 +169,4 @@ An example WSDL is below.
170169.. _`NuSOAP` : https://sourceforge.net/projects/nusoap
171170.. _`output buffering` : https://www.php.net/manual/en/book.outcontrol.php
172171.. _`Laminas SOAP` : https://docs.laminas.dev/laminas-soap/server/
172+ .. _`SoapClient` : https://www.php.net/manual/en/class.soapclient.php
0 commit comments