你怎麼可以添加作爲函數的節點的屬性;
$update = $soap->UpdateMember($pRecord);
或
$update = $soap->__soapCall('UpdateMember', array($Updates));
我需要添加namescape或XMLNS這裏歸因於實際的函數名。我得到以下;
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.sample.net/">
<SOAP-ENV:Body>
<ns1:UpdateMember>
MORE XML HERE
</ns1:UpdateMember>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
,但我需要
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.sample.net/">
<SOAP-ENV:Body>
<ns1:UpdateMember xmlns="http://www.sample.net/">
MORE XML HERE
</ns1:UpdateMember>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
需要有NS1:UpdateMember的xmlns:NS1 = 「http://www.sample.net/」 或類似的東西。
是的,這工作! – Jonah 2010-01-23 07:39:43