Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 780
tv.ashvin Avatar asked Sep 19 '12 07:09

tv.ashvin


2 Answers

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.

like image 137
Tony Stark Avatar answered Nov 17 '22 00:11

Tony Stark


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.

like image 23
Massimiliano Arione Avatar answered Nov 16 '22 23:11

Massimiliano Arione