这里的uri是什么作用?好像
$server = new SoapServer(null, array('uri' => ""));
也行,但
$server = new SoapServer(null, array());
就不行了。
7 个解决方案
#1
应该是指连接到哪个服务器吧,应该是一个必要参数
#2
class SoapServer {
__construct ( mixed wsdl [, array options] )
}
This constructor allows the creation of SoapServer objects in WSDL or non-WSDL mode.
参数
wsdl
If you want the WSDL mode, you must set this to the URI of a WSDL file. In the other case, you must set this to NULL and set the uri option.
options
Allow setting a default SOAP version (soap_version), internal character encoding (encoding), and actor URI (actor). The classmap option can be used to map some WSDL types to PHP classes. This option must be an array with WSDL types as keys and names of PHP classes as values.
__construct ( mixed wsdl [, array options] )
}
This constructor allows the creation of SoapServer objects in WSDL or non-WSDL mode.
参数
wsdl
If you want the WSDL mode, you must set this to the URI of a WSDL file. In the other case, you must set this to NULL and set the uri option.
options
Allow setting a default SOAP version (soap_version), internal character encoding (encoding), and actor URI (actor). The classmap option can be used to map some WSDL types to PHP classes. This option must be an array with WSDL types as keys and names of PHP classes as values.
#3
options
Allow setting a default SOAP version (soap_version), internal character encoding (encoding), and actor URI (actor). The classmap option can be used to map some WSDL types to PHP classes. This option must be an array with WSDL types as keys and names of PHP classes as values.
Allow setting a default SOAP version (soap_version), internal character encoding (encoding), and actor URI (actor). The classmap option can be used to map some WSDL types to PHP classes. This option must be an array with WSDL types as keys and names of PHP classes as values.
#4
应该是不可缺省的参数啊~~
#5
文档上只有这一小段说明"actor URI (actor)",不清不楚的,不明白。
to anshenghao(幽雅的佐为):
只在第一个参数为null时是不可缺的,比如
$server = new SoapServer("test.wsdl");
这样子可以的
to anshenghao(幽雅的佐为):
只在第一个参数为null时是不可缺的,比如
$server = new SoapServer("test.wsdl");
这样子可以的
#6
应该是名称空间
#7
不可缺少的~
#1
应该是指连接到哪个服务器吧,应该是一个必要参数
#2
class SoapServer {
__construct ( mixed wsdl [, array options] )
}
This constructor allows the creation of SoapServer objects in WSDL or non-WSDL mode.
参数
wsdl
If you want the WSDL mode, you must set this to the URI of a WSDL file. In the other case, you must set this to NULL and set the uri option.
options
Allow setting a default SOAP version (soap_version), internal character encoding (encoding), and actor URI (actor). The classmap option can be used to map some WSDL types to PHP classes. This option must be an array with WSDL types as keys and names of PHP classes as values.
__construct ( mixed wsdl [, array options] )
}
This constructor allows the creation of SoapServer objects in WSDL or non-WSDL mode.
参数
wsdl
If you want the WSDL mode, you must set this to the URI of a WSDL file. In the other case, you must set this to NULL and set the uri option.
options
Allow setting a default SOAP version (soap_version), internal character encoding (encoding), and actor URI (actor). The classmap option can be used to map some WSDL types to PHP classes. This option must be an array with WSDL types as keys and names of PHP classes as values.
#3
options
Allow setting a default SOAP version (soap_version), internal character encoding (encoding), and actor URI (actor). The classmap option can be used to map some WSDL types to PHP classes. This option must be an array with WSDL types as keys and names of PHP classes as values.
Allow setting a default SOAP version (soap_version), internal character encoding (encoding), and actor URI (actor). The classmap option can be used to map some WSDL types to PHP classes. This option must be an array with WSDL types as keys and names of PHP classes as values.
#4
应该是不可缺省的参数啊~~
#5
文档上只有这一小段说明"actor URI (actor)",不清不楚的,不明白。
to anshenghao(幽雅的佐为):
只在第一个参数为null时是不可缺的,比如
$server = new SoapServer("test.wsdl");
这样子可以的
to anshenghao(幽雅的佐为):
只在第一个参数为null时是不可缺的,比如
$server = new SoapServer("test.wsdl");
这样子可以的
#6
应该是名称空间
#7
不可缺少的~