0
極品SOAP客戶端簡單的代碼/建議在PHP如何在PHP中編寫SOAP客戶端?
樣品申請
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:sch="http://somewebsite.com/Publisher/schemas">
<soapenv:Header/>
<soapenv:Body>
<sch:GetCampaignsRequest>
<sch:username>myusername</sch:username>
<sch:password>mypassword</sch:password>
<sch:approvaltype>approved</sch:approvaltype>
</sch:GetCampaignsRequest>
</soapenv:Body>
</soapenv:Envelope>
我有下面的PHP代碼嘗試,但我得到的錯誤
致命錯誤:最大的執行時間在線0上的E:\ xampp \ htdocs \ soap \ test.php中超過60秒的時間。
$params = array('username' => 'username','password' => 'password','approvaltype'=>'approved');
$client=new SoapClient('http://somewebsite.com/Publisher.v1.1/publisher.wsdl', array('features' => SOAP_SINGLE_ELEMENT_ARRAYS));
$result = $client->GetCampaignsRequest($params);
print_r($result);
Nickb解決方案不工作 – Elankeeran 2011-12-17 12:51:45