开发者

Using SOAP to connect to a web service, please tell me what am I doing wrong?

I am trying to connect to a web service using PHP/SOAP and for some reason I can't. I think there might be a problem in these lines:

$client = new soapclient('http://212.199.64.197/LeadCollector/LeadCollector.asmx');
$client->debug_flag=true;
$err = $soapclient->getError(); 
$return = $client->call('InsertCollaboratorMoreLeadDetails', $webservice);

This is the error code I am getting:

: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://212.199.64.197/LeadCollector/LeadCollector.asmx' : Premature end of data in tag html line 3 in /home/uboopco1/public_html/llcproject.org/wp-content/plugins/fire-form/test.php:8 Stack trace: #0 /home/uboopco1/public_html/llcproject.org/wp-content/plugins/fire-form/test.php(8): SoapClient->SoapClient('http://212.199....') #1 {main} thrown in

Do you have an开发者_如何转开发 idea what the problem is?

Thanks!


Sometimes you need to add ?wsdl at the end of the URL.

Like this :

$client = new soapclient('http://212.199.64.197/LeadCollector/LeadCollector.asmx?wsdl');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜