How does nusoap register all functions in the class? I will use a single function, if the function is written in the class. ------ Solution -------------------- there is no difference between calling nusoap in the class and a single function, for example: PHPcode & lt ;? Phprequire_once (nusoap. php); ClassExtSOAP {public nusoap how to register all functions in the class
How does nusoap register all functions in the class?
I will use a single function. if a function is written in a class.
------ Solution --------------------
There is no difference between calling nusoap and a single function in the class, for example:
PHP code
Server = new soap_server (); $ this-> server-> register ('Hello'); $ this-> http_raw_post_data = isset ($ HTTP_RAW_POST_DATA )? $ HTTP_RAW_POST_DATA: '';} function services () {$ this-> server-> service ($ this-> http_raw_post_data );}} // class call $ obj = new ExtSOAP (); $ obj-> services ();?>
------ Solution --------------------
Learned
------ Solution --------------------
You do not need to register all functions.
You create a shared entry function.
Class myclass {
//***********
}
Function runApi ($ methodname, $ parment) {// method name, parameter array
$ Classname = "myclass ";
Call_user_func_array (array ($ classname, $ methodname), $ parment );
}
------ Solution --------------------
Use soap in PHP.
------ Solution --------------------
Use zendstdio to generate wsdl
I am using Csdn radio to get the latest news!