Php learning path: The Use instance of soap in php and the generation of the WSDL file provide a class library for automatically generating the WSDL file-SoapDiscovery. class. php class,
1. web service popularity: My Opinion on the differences
Php learning path: the use instance of soap in php and the generation of the WSDL file provide a class library that automatically generates the WSDL file ?? SoapDiscovery. class. php class 1. web service popularity: my opinion on the differences
1. Web Service Popularity : Webservice the difference between soap WSDL and personal insightsweb service to achieve business demand: web service is really" the one ", Provides a general designation of a service interface. wsdl provides
1. Create WSDL
Description
A, non-standard webservice, can only be accessed by PHP
B, the standard webservice, you have to use the WSDL (WebService Description Language, is the XML syntax standard to describe your service content, I understand)
Here
Use wsdl in PHP to create a standard webservice. Note: Non-standard webservice may only allow PHP to access standard webservice. you must use wsdl. here I will only introduce the standard webservicewww.2cto.com. 1. create a WSDL:
• Non-standard
PHPsoapWebService uses SoapDiscovery. class. php to generate the wsdl file ,. PHPsoapWebService uses SoapDiscovery. class. php to generate the wsdl file. PHPsoapwebservice uses the wsdl file demo: server PHP soap Web Service uses SoapDiscovery.
The PHP Soap Web service uses SoapDiscovery.class.php to generate the WSDL file,
The PHP SOAP Web service uses the WSDL file demo:
==============================================================
Service side:
Before using the WSDL Soap WebService
PHP calls the interface code of the wsdl file type to share ,. PHP shares the interface code for calling the wsdl file type. the copied code is as follows: the php class is automatically generated by the system. it is only for testing purposes. the
Php learning path: WSDL (2 ). Php learning path: WSDL (II) 3. define the logic message used by the service when the service operation is called, the service is defined as message exchange. In the wsdl document, these messages are defined as the
PHP calls the interface code share of the WSDL file type,
Copy CodeThe code is as follows:This class is automatically generated by the system and is intended for testing purposes onlyClass Indexaction extends Action {Public Function index ()
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.