PHP amp; XML - How to generate a soap request in PHP from this XML?(PHP amp;XML - 如何从此 XML 在 PHP 中生成soap请求?)
问题描述
我对 SOAP 操作完全陌生.
I am completly new to SOAP operations.
我收到了一个 XML 文档 (SOAP),以获取一些运输方式的收集点.
I have been provided with an XML document (SOAP) to get some collection points for a shipping method.
来自此处的手册:
http://privpakservices.schenker.nu/package/package_1.3/packageservices.asmx?op=SearchCollectionPoint
我可以看到我需要使用以下 SOAP 请求:
I can see that I need to use the following SOAP request:
问题是我不知道如何使用 PHP 将其作为请求发送,以及如何获得响应.
The thing is that i don't know how to send this as a request using PHP, and how to get the response.
任何帮助我确定正确方向的帮助,非常感谢.
Any help to pinpoint me in the right direction, is much appreciated.
更新
我可以用 var_dump 读取响应数据.但是,我无法读取单个元素数据.
I can read the response data with var_dump. However, I am not able to read individual element data.
我需要读取如下数据
推荐答案
如果有人感兴趣,我已经提供了正确答案:
If anyone should be interested, i have provided the correct answer:
这篇关于PHP &XML - 如何从此 XML 在 PHP 中生成soap请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!