Php SoapHeader名称空间的用途
我正在使用php SoapClient发出如下请求:Php SoapHeader名称空间的用途,php,namespaces,soap-client,Php,Namespaces,Soap Client,我正在使用php SoapClient发出如下请求: $auth = new stdClass(); $auth->loginId = 'test'; $auth->password = '12345'; $client = new SoapClient("example.wsdl", array('trace' => 1)); $header = new SoapHeader('http://example.com','Authentication',$auth,false
$auth = new stdClass();
$auth->loginId = 'test';
$auth->password = '12345';
$client = new SoapClient("example.wsdl", array('trace' => 1));
$header = new SoapHeader('http://example.com','Authentication',$auth,false);
$client->__setSoapHeaders($header);
我的问题是,SoapHeader类的名称空间属性的用途是什么?不管我在那里放了什么,我的请求和身份验证都会成功。忘记j2ee,但是由于名称空间的原因,有一些优点。