来自php的.Net Soap WSDL webservice调用没有响应

时间:2014-12-22 11:24:10

标签: php soap wsdl

我通过使用nusoap.php库通过php调用brandbank webservice时遇到问题。  我必须从他们公开的Brandbank webservice获取数据  https://www.i-label.net/partners/webservices/datafeedbasic/extractdata.asmx?WSDL 我使用nusoap.php库在php中创建了我的代码,但是出现了错误

我的代码

require_once "nusoap.php";
$client = new nusoap_client("https://www.i-label.net/partners/webservices/datafeedbasic/extractdata.asmx?WSDL");
$error = $client->getError();
if ($error) {
    echo "<h2>Constructor error</h2><pre>" . $error . "</pre>";
}
$param = array('ExternalCallerId'=>' 32 char     key ','GTIN'=>'04015400440819','Description'=>'TAMPAX BLUE BOX MINI 20s','OwnLabel'=>'false','Category'=>'HHB','HasImage'=>'false');
$client->setUseCurl(true);
$client->soap_defencoding = 'UTF-8';
$result = $client->call("GetUnsentProductData", $param);

if ($client->fault) {
    echo "<h2>Fault</h2><pre>";
    print_r($result);
    echo "</pre>";
}
else {
    $error = $client->getError();
    if ($error) {
        echo "<h2>Error</h2><pre>" . $error . "</pre>";
    }
else {
    echo "<h2>Products Info</h2><pre>";
    echo $result;
    echo "</pre>";
}

}

以下是webservice的回复

Array
(
    [faultcode] => soap:Server
    [faultstring] => Server was unable to process request. ---> An exception has occured whilst processing your request. The details have been logged, and the system administrator has been notified
    [detail] => 
)

Brandbank WSDL链接:https://www.i-label.net/partners/webservices/datafeedbasic/extractdata.asmx?WSDL 我面临的问题我不知道如何在参数中发送产品列表以及此肥皂调用。

1 个答案:

答案 0 :(得分:0)

我可以看到此票证已过时,但您似乎正在尝试将Coverage文件信息发送到GetUnsent端点。

可以通过https://www.i-label.net/partners/webservices/datafeedbasic/extractdata.asmx?WSDL

找到Coverage的端点