PHP calls WebService and webservice. PHP calls WebService, calls webservice1. environment configuration php. ini, and removes the semicolon before php_soap.dll. the configuration is complete and needs to be restarted. 2. PHP call code, as shown below? Phptry PHP calls WebService and webservice
1. environment configuration
Configure php. ini and remove the semicolon before php_soap.dll,
The configuration is complete and needs to be restarted.
2. PHP call code:
/* Assign values to the orderdata parameter */
$ Contact = "parameter value ";
$ Params = array ("orderdata" => $ contact ,);
$ Result = $ soap-> service method name ($ params );
Print_r ($ result );
}
Catch (Exception $ e ){
Echo 'caught exception: ', $ e-> getMessage (), "\ n ";
}
?>
The effect is as follows:
Environment configuration: php. ini. remove the semicolon before php_soap.dll. after the configuration is complete, restart the system. 2. PHP call code, as shown below? Php try...