Zend Framework 101: Zend_Soap


How SOAP Works

The way SOAP typically works is that the SOAP client (which may be implemented in any language, such as PHP, ASP, Perl, Python or otherwise) connects to the web service endpoint and requests its WSDL (Web Services Description Language) file.

The WSDL file tells the client about the different function calls that are available, as well as a description of any complex types that are used in addition to the basic data types (such as string, integer or Boolean).

When we create our web service, we must not only handle calls to the various methods that we offer, but we must be able to send a WSDL file to clients. Thankfully, Zend_Soap can automate the generation of WSDL files, as I’ll show you later in this article.

In the next three sections I will cover the key steps involved in creating a web service using Zend_Soap_Server. For the purposes of this example the web service will be located at http://example.com/webservice.php.

From phpriot.com

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s