Skip to content

Commit 594d97a

Browse files
committed
Fixed code examples in cookbook/web_services
1 parent 46fb58b commit 594d97a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cookbook/web_services/php_soap_extension.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ which represents the functionality that you'll expose in your SOAP service.
2222
In this case, the SOAP service will allow the client to call a method called
2323
``hello``, which happens to send an email::
2424

25+
// src/Acme/SoapBundle/HelloService.php
2526
namespace Acme\SoapBundle;
2627

2728
class HelloService
@@ -44,7 +45,7 @@ In this case, the SOAP service will allow the client to call a method called
4445
$this->mailer->send($message);
4546

4647

47-
return 'Hello, ' . $name;
48+
return 'Hello, '.$name;
4849
}
4950
}
5051

@@ -114,7 +115,7 @@ Below is an example calling the service using `NuSOAP`_ client. This example
114115
assumes that the ``indexAction`` in the controller above is accessible via the
115116
route ``/soap``::
116117

117-
$client = new \soapclient('http://example.com/app.php/soap?wsdl', true);
118+
$client = new \Soapclient('http://example.com/app.php/soap?wsdl', true);
118119
119120
$result = $client->call('hello', array('name' => 'Scott'));
120121

0 commit comments

Comments
 (0)