2012-04-11 79 views
0

我創建了以下php肥皂客戶端,並且服務繼續報告丟失或無效的adminPassword版本。當我使用soapUI的方法和參數傳遞工作正常,所以不知道爲什麼PHP客戶端不工作。SOAP PHP Client返回缺少的參數,但soapUI工作正常

我也越來越通知書味精所以不知道這有什麼瓦特/它「注意:數組字符串轉換在/var/www/html/index.php第5個stdClass的」

響應: ([method] => getUsageReport_v1 [statusCode] => GEN006 [statusMessage] =>以下必需參數丟失或無效:adminPassword,version。[version] => 1.0 [monthlyReceiveReports] => [monthlySendReports] = > [receiveReports] => [sendReports] =>)

客戶端(掩蔽adminId和ADMINPASSWORD):

$client = new SoapClient("https://www.efaxcorporate.com/corp/services/CorpAdmin?wsdl"); 
$parm = array("adminId" => "*****","version" => "1.0", "adminPassword" => "***",); 
print_r($client->getUsageReport_v1(array($parm))); 

感謝這個

回答

0

任何幫助,我相信您選擇失蹤用戶名:

<wsdl:message name="getUsageReport_v1Request"> 
<wsdl:part name="adminId" type="xsd:string"/> 
<wsdl:part name="adminUserName" type="xsd:string"/> 
<wsdl:part name="adminPassword" type="xsd:string"/> 
<wsdl:part name="version" type="xsd:string"/> 
</wsdl:message>