Class sign{public $Uname; public $Password; Public function __construct ($u, $p) { $this->uname = $u; $this->password = $p; }} $auth [' Uname '] = ' testsupplierid '; $auth [' Password '] = ' testsuppliersign '; $login = new sign ($auth [' Uname '], $auth [' Password '); $method = ' GetOrder '; $cmdid = ' http://sws2.vjia.com/swsmsTest/GetOrderService.asmx '; $param [' Swssupplierid '] = ' Test '; try{$client = new SoapClient ($cmdid, Array (' Trace ' =>true, ' exceptions ' =>true, ' style ' = >soap_document, ' encoding ' = ' UTF-8 ', ' soap_version ' =>soap_1_1); $header = new SoapHeader (' http:// tempuri.org/', ' Mysoapheader ', $login, True, Soap_actor_next); $client->__setsoapheaders ($header); $result = $ Client->__soapcall ($method, Array ($param));} catch (SoapFault $e) {exit ($e->faultstring);} Exit
To seek the guidance of expert
Reply to discussion (solution)
Fatal error:soap-error:parsing wsdl:couldn ' t load from ' http://sws2.vjia.com/swsmsTest/GetOrderService.asmx ': Premature end of data in tagged HTML line 3 in E:\wwwroot\os5\diaoyong.php on line 20 error prompt
I have also encountered this problem.