How does nusoap register all functions in the class?

Source: Internet
Author: User
How does nusoap register all functions in the class? I will use a single function. if the function is written in the class ., There is no difference between calling nusoap and a single function in the class, for example: PHPcode & lt ;? Phprequire_once ('nusoap. php'); ClassExtSO how does nusoap 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!

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.