Click here to Skip to main content
15,894,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

I'm now moving my site from own server (Windows Server with IIS) to SiteGround (Apache Server). In my site, I have a php file that make web service call to WCF service that hosted on another server using php SoapClient. And I am getting following error when initializing SoapClient.

"SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://mysite.com/myWCF.svc?wsdl' : failed to load external entity "http://mysite.com/myWCF.svc?wsdl".

Everything working fine from previous server. My wcf service is working perfectly as I can make a call from other site hosted on other server. I can access wsdl file from the browser. This means my php code and web service have no issue.

Only problem from the site hosted on SiteGround hosting service. I contact their support but they said they are not php developers and solving php script problem is out of their technical scope. And they said they will assist if server configuration is required for this problem.

But I don't know what configurations are needed to be done for this error. I am a .Net developer and don't know much about php and it's configurations. Please help me if there is something I need to make changes on server to make web service call. Is there any php variable need to be set or extension need to be installed?

I checked phpinfo().
Php Version is 5.4.29
Soap Client and Soap Server options are enabeld under "Soap" section.
default_socket_timeout value is 200 (I changed from 20 as a google result. But this didn't sovled)

In case you could check, following is my php code:
PHP
$myParam = array( 'aServiceID' => '42', 'aType' => 1);
$client = new SoapClient('http://mysite.com/myWCF.svc?wsdl');
$webService = $client->GetInfo($myParam);
$wsResult = $webService->GetInfoResult;

var_dump($wsResult);


Please help.

Thanks in advanced,
tslin
Posted

1 solution

Problem solved. I needed a sub domain redirection for my web service from hosting control site.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900