PHP SOAP Fatal Error -


i'm trying integrate cargo system website. i'm using webservice.

but i've error that: "fatal error: uncaught soapfault exception: [wsdl] soap-error: parsing wsdl: couldn't find in "

and error show me line: 2 second. , line has code:

$client = new soapclient("http://customerservices.araskargo.com.tr/arascargocustomerintegrationservice/arascargointegrationservice.svc"); 

and here's full code:

<?php $client = new soapclient("http://customerservices.araskargo.com.tr/arascargocustomerintegrationservice/arascargointegrationservice.svc"); $queryinfo = "<queryinfo>". "<querytype>2</querytype>". "<date>07.10.2015</date>". "</queryinfo>"; $logininfo = "<logininfo>". "<username>xxx</username>". "<password>xxx</password>". "<customercode>xxx</customercode>". "</logininfo>"; $result = $client->getqueryxml(array('logininfo'=>$logininfo,'queryinfo'=>$queryinfo)); echo $result; 

how can solve problem?

the url you're passing soapclient not of wsdl file. maybe meant use:

$client = new soapclient("http://customerservices.araskargo.com.tr/arascargocustomerintegrationservice/arascargointegrationservice.svc?singlewsdl"); 

Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -