Perfect Soap (Wsdl) web service in php [closed]

放肆的年华 提交于 2019-12-20 08:42:13

问题


I am a PHP programmer, I want to create a SOAP web service using WSDL.

Please could someone suggest any simple tutorials or code that enable me to make object on Device (iPhone, Blackberry, Android) End.


回答1:


Here are some tutorials & examples of SOAP (WSDL) web service in PHP:

  1. PHP Web Services with WSDL (custom SOAP service)
  2. Creating Web Services with PHP and SOAP, Part 1 (out of date - nusoap)
  3. Creating Web Services with PHP and SOAP, Part 2 (out of date - nusoap)
  4. wsdl2php Manual (PHP SOAP extension)
  5. Web Services - WSDL: Creating SOAP Server (PHP SOAP extension)
  6. WSDL Document Example (SOAP explanation, no PHP)

Edit:

The SoapClient class is used in latest version of PHP (5.3 & up).

It may help you.




回答2:


Please avoid following some the suggested links from Tony Stark's answer, they are really out of date.

For example, using nusoap is really a pain in the ass with a currently supported version of PHP (e.g. 5.3/5.4).

A better alternative is the SoapClient from the native PHP SOAP extension.



来源:https://stackoverflow.com/questions/12490298/perfect-soap-wsdl-web-service-in-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!