我收到错误:无法在nusoap中创建对象

时间:2018-03-10 09:44:40

标签: php wsdl nusoap

$url = "http://rgagroup.dyndns.org:8989/PactRevenUAPI/PACTRevenUAPIService.svc?wsdl";
    $xmlData="<SetDocument> <Key>pass123</Key> <CostCenterID>40007</CostCenterID> <Owner>Admin</Owner> <Header> <DocPrefix></DocPrefix> <DocNo></DocNo> <CustomerName> <Code>C4 - 47</Code> <Name>C4 - Al Dhait,Ras Al Khaima</Name> </CustomerName> </Header> <Body> <Row> <ProductCode> <Code>D05</Code> <Name>BALADE - Authentic Lebanese Labneh- Baraka 5kg</Name> </ProductCode> <Qty>1</Qty> <Units> <Code>pcs</Code><Name></Name> </Units> <UnitPrice>85</UnitPrice> </Row> </Body> </SetDocument>";

    require_once('lib/nusoap.php');

    $client = new nusoap_client($url, true);

    $error  = $client->getError();
    if ($error) {
        echo "<h2>Constructor error</h2><pre>" . $error . "</pre>";
    }
    $Response_data = $client->call("SetDocument", $xmlData);


    print_r($Response_data);

这是我的nusoup代码,我没有得到回复。你能帮我解决这个问题。

感谢。

0 个答案:

没有答案