作者:史军2927 | 来源:互联网 | 2023-09-17 10:43
ImtryingtoaccessaWebServiceusingnuSOAP(becauseImboundtoPHP4here)thatusesmorethan
I'm trying to access a WebService using nuSOAP (because I'm bound to PHP4 here) that uses more than 1 namespace in a message. Is that possible?
我正在尝试使用nuSOAP访问WebService(因为我在这里绑定了PHP4),它在消息中使用了多个命名空间。那可能吗?
An example request message would look like this:
示例请求消息如下所示:
..
..
..
I tried to following:
我试着跟随:
$client = new nusoap_client("my.wsdl", true);
$params = array(
'Person' => array(
'FirstName' => 'Thomas',
..
),
'Attribute' => 'foo'
);
$result = $client->call('myOperation', $params, '', 'soapAction');
in the hope that nuSOAP would try to match these names to the correct namespaces and nodes. Then I tried to use soapval() to generate the elements and their namespace - but if I call an operation, nuSOAP creates the following request:
希望nuSOAP尝试将这些名称与正确的名称空间和节点相匹配。然后我尝试使用soapval()生成元素及其命名空间 - 但是如果我调用一个操作,nuSOAP会创建以下请求:
So something goes wrong during the "matching" phase.
因此在“匹配”阶段出现问题。
4 个解决方案