@@ -12,15 +12,15 @@ create one from scratch or use a 3rd party generator.
12
12
.. note ::
13
13
14
14
There are several SOAP server implementations available for use with
15
- PHP. `Zend SOAP `_ and `NuSOAP `_ are two examples. Although we use
15
+ PHP. `Zend SOAP `_ and `NuSOAP `_ are two examples. Although we use
16
16
the PHP SOAP extension in our examples, the general idea should still
17
17
be applicable to other implementations.
18
18
19
19
SOAP works by exposing the methods of a PHP object to an external entity
20
20
(i.e. the person using the SOAP service). To start, create a class - ``HelloService `` -
21
21
which represents the functionality that you'll expose in your SOAP service.
22
22
In this case, the SOAP service will allow the client to call a method called
23
- ``hello ``, which happens to send an email address ::
23
+ ``hello ``, which happens to send an email::
24
24
25
25
namespace Acme\SoapBundle;
26
26
@@ -46,7 +46,6 @@ In this case, the SOAP service will allow the client to call a method called
46
46
47
47
return 'Hello, ' . $name;
48
48
}
49
-
50
49
}
51
50
52
51
Next, you can train Symfony to be able to create an instance of this class.
@@ -112,7 +111,7 @@ into the content of the Response and clear the output buffer. Finally, you're
112
111
ready to return the ``Response ``.
113
112
114
113
Below is an example calling the service using `NuSOAP `_ client. This example
115
- assumes the ``indexAction `` in the controller above is accessible via the
114
+ assumes that the ``indexAction `` in the controller above is accessible via the
116
115
route ``/soap ``::
117
116
118
117
$client = new \soapclient('http://example.com/app.php/soap?wsdl', true);
0 commit comments