24

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.

icc97
  • 11,395
  • 8
  • 76
  • 90
tv.ashvin
  • 705
  • 2
  • 7
  • 13
  • *"make object on Device (iPhone, Blackberry, Android) End"* makes very little sense. PHP wouldn't be used on those devices. – icc97 Jun 15 '17 at 06:55

2 Answers2

31

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

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

Edit: For Latest Version of PHP above 5.3

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

It may help you.

Tony Stark
  • 8,064
  • 8
  • 44
  • 63
17

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.

icc97
  • 11,395
  • 8
  • 76
  • 90
Massimiliano Arione
  • 2,422
  • 19
  • 40
  • i am new to php and want to host a soap service on apache. Can you provide me any client/server example based on php 5.3 – user May 12 '14 at 05:39
  • The first link 'Developing Services Using PHP' (http://onlamp.com/pub/a/php/2007/07/26/php-web-services.html) is still relevant - it uses the native SoapClient – icc97 Jun 15 '17 at 06:28
  • I have noted which ones used nusoap now – icc97 Jun 15 '17 at 06:47