Php soap extensions can be used to provide and use Webservices. In other words, PHP developers can use this PHP extension to write their own Webservices, or write some clients to use the given Webserv... php soap extensions can be used to provide and use Web services. In other words, PHP developers can use this PHP extension to write their own Web services, you can also write some clients to use the given Web services.
In PHP5, this SOAP extension aims to implement PHP's support for Web services. unlike other methods that implement PHP's support for Web services, the SOAP extension is written in C, therefore, it is faster than other methods.
SOAP extensions support the following specifications:
* SOAP 1.1, * SOAP 1.2, * WSDL 1.1
SOAP extensions are mainly used to process RPC-based Web services. However, you can also use text-based WSDL files to work with the server and client in the WSDL mode.
1. install the soap module in Linux
After installing php, it is best to keep the files installed at that time, such as usr/local/php-5.3.2, check whether the soap module is installed: run php-m in the php installation directory to view
For example:/usr/local/php/bin/php-m | grep 'Soap'
If no installation is available, go to the php installation source folder.
Cd php-5.3.2/ext/soap
Run the phpize command:/usr/local/php/bin/phpize
Check whether the information has an error. if there is no error, run the following command:
./configure –with-php-config=/usr/local/php/bin/php-config –enable-soap
Then install and compile
make
Installation
make install
After installation, a message is displayed, indicating the path to save the soap. so file.
The compiled soap. so file is saved in the/usr/local/php/lib/php/extensions/no-debug-non-zts-20111222 directory, and then the php. ini file is modified.
Manual modification: search for/usr/local/php/etc/php. extension_dir = ". /", commented out by default, modified to extension_dir ="/usr/local/php/lib/php/extensions/no-debug-non-zts-20111222 /"
Add the following after this line, and then save: extension = "soap. so"
Restart apache and run php-m to see the extended soap module. if you want to install the extended modules, and so on.
II. install the soap module in Windows
In Windows, you can modify php. ini to select which extension libraries are loaded when PHP is started. You can also use dl () to dynamically load data in the script. All DLL files in the PHP Extension Library have the php _ prefix. Many extension libraries are built into PHP for Windows. This means that no additional DLL files or extension configuration commands are required to load these extension libraries. The PHP Extension Library list in Windows lists the extension libraries that require or have previously required additional php dll files.
To be in php. to enable an extension Library in ini, remove the extension = php _ * line _*. the annotation symbol before the dll. delete the semicolon (;) before the extension library to be loaded.
Enable php_soap.dll Extension Library:
// Change this line; extension = php_soap.dll // to extension = php_soap.dll
Note: If you run PHP for the server module version, do not forget to restart the web server after modifying php. ini to make the change take effect.
The following is a list of built-in extension libraries:
Php_bz2.dll bzip2 compression function library php_calendar.dll calendar conversion function library php_crack.dll password cracking function library php_ctype.dll ctype family function library php_curl.dll CURL, client URL library function library php_dba.dll DBA: Database (dbm style) abstract layer function library php_dbase.dll dBase function library php_dbx.dll dbx function library php_domxml.dll DOM function library php_dotnet.dll. NET function library php_exif.dll EXIF function library php_fbsql.dll FrontBase function library php_fdf.dll FDF: form data formatting function library php_filepro.dll filePro function library php_ftp.dll FTP function library php_gd.dll GD library Image function library php_gd2.dll GD library Image function library php_gettext.dll Gettext function library php_hyperwave.dll HyperWave function library php_iconv.dll ICONV Character Set conversion php_ifx.dll Informix function library, POP3 and NNTP function libraries php_ingres.dll Ingres II function libraries php_interbase.dll protocol Java function library php_ldap.dll LDAP function library multi-byte string function library extends Mcrypt function library php_mhash.dll Mhash function library extends Mimetype function library php_ming) php_msql.dll mSQL function library php_mssql.dll MSSQL function library
Address:
Reprinted at will, but please attach the article address :-)