Php 如何通过nusoap构造参数请求
当我通过nu soap客户端调用soap web服务时,我遇到了一个问题,我使用“Storm_r1.1-Adarna”工具尝试了它,成功地实现了,但没有使用php代码。 请参阅以下详情: 示例请求消息如下所示:Php 如何通过nusoap构造参数请求,php,web-services,soap,Php,Web Services,Soap,当我通过nu soap客户端调用soap web服务时,我遇到了一个问题,我使用“Storm_r1.1-Adarna”工具尝试了它,成功地实现了,但没有使用php代码。 请参阅以下详情: 示例请求消息如下所示: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.kiala.com/schemas/psws/1.0
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://www.kiala.com/schemas/psws/1.0">
<soapenv:Header/>
<soapenv:Body>
<ns:createOrder reference="260778">
<identification>
<sender>5390a7006cee11e0ae3e0800200c9a66</sender>
<hash>831f8c1ad25e1dc89cf2d8f23d2af...fa85155f5c67627</hash>
<originator>VITS-STAELENS</originator>
</identification>
<delivery>
<from country="ES" node=""/>
<to country="ES" node="0299"/>
</delivery>
<parcel>
<description>Zoethout thee</description>
<weight>0.100</weight>
<orderNumber>10K24</orderNumber>
<orderDate>2012-12-31</orderDate>
</parcel>
<receiver>
<firstName>Gladys</firstName>
<surname>Roldan de Moras</surname>
<address>
<line1>Calle General Oraá 26</line1>
<line2>(4º izda)</line2>
<postalCode>28006</postalCode>
<city>Madrid</city>
<country>ES</country>
</address>
<email>gverbruggen@kiala.com</email>
<language>es</language>
</receiver>
</ns:createOrder>
</soapenv:Body>
</soapenv:Envelope>
和错误:
array
'faultcode' => string 'ns2:Client' (length=10)
'faultstring' => string 'Invalid request sent' (length=20)
'detail' =>
array
'orderFault' =>
array
'faultCode' => string 'INVALID_REQUEST' (length=15)
'message' => string ''orderRequest' tag is missing mandatory 'reference' attribute' (length=61)
当我用nusoap调用web服务时,我的请求参数可能有问题
<ns:createOrder reference="260778">
您的请求缺少
引用
属性
我在您的$params
中没有看到任何参考
你确定你的php代码是正确的吗?好的!我错过了这个情人。我刚刚加了一句。但这仍然不能解决我的问题。我只是想在这里发帖。多谢各位。
<ns:createOrder reference="260778">