上面发错了
$client = new SoapClient($this->serviceUrl);错误:SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://172.16.33.26/purchase/Service1.asmx?wsdl' : failed to load external entity "http://172.16.33.26/purchase/Service1.asmx?wsdl"
$client = new SoapClient($this->serviceUrl);错误:SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://172.16.33.26/purchase/Service1.asmx?wsdl' : failed to load external entity "http://172.16.33.26/purchase/Service1.asmx?wsdl"
Array
(
[0] => InvoiceResponse Invoice(Invoice $parameters)
[1] => InvoiceResponse Invoice(Invoice $parameters)
)
数据结构
Array
(
[0] => struct Invoice {
string kprqq;
string kprqz;
string SAPNUMBER;
}
[1] => struct InvoiceResponse {
string InvoiceResult;
}
)有什么问题请直说
$client = new SoapClient("http://172.16.33.26/purchase/Service1.asmx?wsdl");如果使用 nusoap 类库
$client = new Soap_Client("http://172.16.33.26/purchase/Service1.asmx?wsdl");关键是你要把 WSDL 文件搞正确了