2015-10-15 114 views
0

我如何使用PHP SOAP客户端生成这个模式不能似乎得到的方式用肥皂PHP客户端生成模式

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
 
xmlns:loc="http://www.csapi.org/schema/parlayx/subscribe/manage/v1_0/local"> 
 
<soapenv:Header> 
 
<tns:RequestSOAPHeader xmlns:tns="http://www.namesapace.com/common/v2_1"> 
 
<tns:one>***</tns:one> 
 
<tns:two>***</tns:three> 
 
<oauth_token>***</oauth_token> 
 
</tns:RequestSOAPHeader> 
 
</soapenv:Header> 
 
<soapenv:Body> 
 
<loc:ProductRequest> 
 
<subInfo> 
 
<productID>***</productID> 
 
<isAutoExtend>0</isAutoExtend> 
 
</subInfo> 
 
</loc:ProductRequest> 
 
</soapenv:Body> 
 
</soapenv:Envelope>

+1

请新增到目前为止你已经尝试过的东西。 – sushain97

+1

你不需要处理XML的东西,只需使用客户端对象'新的SoapClient()' – DanFromGermany

回答

0

描述IF用PHP SoapClient的没有成功,只是后的卷曲度要求更换NS1和NS2值解决它。

例在这个答案 - SOAP request in PHP with CURL

+0

真棒,可以是另一种解决方案 – user3761969