phpzend-frameworksoapzend-soapzend-xmlrpc

Zend_Soap_Server or Zend_XmlRpc_Server


I need to implement webservice for a mobile application. I am using Zend Framework. I know we have Zend_Soap_Server and Zend_XmlRpc_Server. Which should I prefer. Client is concern about security. After reading here I think it is SOAP. But when to use Zend_XmlRpc.


Solution

  • IMO you should consider providing a simple REST API, as it is much simpler than SOAP, which is generally preferred over XML-RPC. You can build RESTful controllers fairly easily within Zend Framework.

    Neither Zend_Soap_Server or Zend_SmlRpc_Server will address your security concerns. All three options (those two as well as the REST approach) are only concerned with the structure of the data being passed between the client and the server.

    Security is mainly related to the following two concerns:

    There may be other security concerns specific to the application protocol, DOS attacks, etc, but the two listed above are the common ones that most people would address first.