Web Service URL in SoapClient and SOAP-ERROR: Parsing WSDL error



There is a web service URL which returns a country's cities details. I can access this web service URL in browser by direct Http Request using GET method and works fine :


[Snip: I changed my actual domain name with example]



http://ift.tt/1vJZedp;


But when I try to access above URL via SoapClient :



/* Line 36 */
$cities = new SoapClient("http://ift.tt/1vJZedp;");


Gets me following error :



Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL:
Couldn't find <definitions> in 'http://ift.tt/1vJZedt
<StaticDataRequest><Header><Code>TT4533</Code><Username>skyman211</Username>
<Password>ammkj43</Password></Header><Body><GetStaticData>cities</GetStaticData>
<ExtraParams><CountryCode>67</CountryCode></ExtraParams></Body></StaticDataRequest>'
in /srv/www/htdocs/test/inc/client.php:36 Stack trace: #0 /srv/www/htdocs/test/
inc/client.php(36): SoapClient->SoapClient('http://alpha.ex...') #1 /srv/www/
htdocs/ortmas/index.php(6): InitData->getCities(67) #2 {main} thrown in /srv/
www/htdocs/test/inc/client.php on line 36

No comments:

Post a Comment