Php 为soap web服务创建xml?
几天来,我一直在努力用PHP为SOAP Web服务创建一个xml,格式如下:Php 为soap web服务创建xml?,php,xml,soap,Php,Xml,Soap,几天来,我一直在努力用PHP为SOAP Web服务创建一个xml,格式如下: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envel
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetPaynetReference xmlns="http://www.test.com.mx/">
<issuerCod>408ddf42-6426-45bf-b684-be6c864ed4d2</issuerCod>
<description>test</description>
<params>
<Parameter>
<Name>Reference</Name>
<Value>123< Value/>
</Parameter>
<Parameter>
<Name>Amount</Name>
<Value>10.0< Value/>
</Parameter>
<Parameter>
<Name>DueDate</Name>
<Value>31/08/2013< Value/>
</Parameter>
</params>
</GetPaynetReference>
408ddf42-6426-45bf-b684-be6c864ed4d2
测试
参考文献
123
数量
10.0
到期日
2013年8月31日
有人能给我指出正确的方向或提供一个代码示例来说明如何实现这一点吗?您可能应该使用。您可以参考nuSOAP之类的东西。我使用并且很好。请展示您尝试过的内容以及尝试时发生的情况。然后我们就能帮助你前进。否则,您的问题将被否决,并可能被关闭。(另一方面,如果不是重复的话,如果你稍微改进一下,这个问题有可能获得一些选票。)-方向够了吗?或者您编写的任何特定代码中的任何内容,而不是问题?嘿,MK我当前使用的是soap客户端,我以前创建的xml只是传递一个数组,但这里的问题是,由于重复嵌套元素,例如参数,我似乎无法创建正确的xml结构,那么你的问题写得不好。解释您尝试了什么、得到了什么以及什么不起作用。因为PHP5内置了SOAP支持,所以不再需要NuSoap。