<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP SoapClient Could Not Connect to Host</title>
	<atom:link href="http://www.adcworks.com/2008/04/php-soapclient-could-not-connect-to-host/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adcworks.com/2008/04/php-soapclient-could-not-connect-to-host/</link>
	<description></description>
	<lastBuildDate>Sun, 20 Dec 2009 03:33:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: David</title>
		<link>http://www.adcworks.com/2008/04/php-soapclient-could-not-connect-to-host/comment-page-1/#comment-77</link>
		<dc:creator>David</dc:creator>
		<pubDate>Fri, 15 May 2009 19:09:09 +0000</pubDate>
		<guid isPermaLink="false">http://adcworks/?p=11#comment-77</guid>
		<description>I had this problem making SOAP calls that required client certificates. I had forgotten to set the correct permissions on the cert to allow apache read access to it.</description>
		<content:encoded><![CDATA[<p>I had this problem making SOAP calls that required client certificates. I had forgotten to set the correct permissions on the cert to allow apache read access to it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Drew</title>
		<link>http://www.adcworks.com/2008/04/php-soapclient-could-not-connect-to-host/comment-page-1/#comment-13</link>
		<dc:creator>Drew</dc:creator>
		<pubDate>Thu, 05 Mar 2009 16:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://adcworks/?p=11#comment-13</guid>
		<description>If you are using SOAP over HTTPS (SSL) also check the following:

php -i &#124; grep ssl
Registered Stream Socket Transports =&gt; tcp, udp, unix, udg, ssl, sslv3, sslv2, tls

If it doesn&#039;t say SSL in any of these then check for the SSL extension - it will not be loaded.

This will also cause the &quot;Could not connect to host&quot; issue.

This error is not very informative - while true that it cannot connect to host it could at least say &quot;Cannot use SSL&quot;.</description>
		<content:encoded><![CDATA[<p>If you are using SOAP over HTTPS (SSL) also check the following:</p>
<p>php -i | grep ssl<br />
Registered Stream Socket Transports =&gt; tcp, udp, unix, udg, ssl, sslv3, sslv2, tls</p>
<p>If it doesn&#8217;t say SSL in any of these then check for the SSL extension &#8211; it will not be loaded.</p>
<p>This will also cause the &quot;Could not connect to host&quot; issue.</p>
<p>This error is not very informative &#8211; while true that it cannot connect to host it could at least say &quot;Cannot use SSL&quot;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Kirkpatrick</title>
		<link>http://www.adcworks.com/2008/04/php-soapclient-could-not-connect-to-host/comment-page-1/#comment-12</link>
		<dc:creator>Tom Kirkpatrick</dc:creator>
		<pubDate>Mon, 02 Feb 2009 12:58:40 +0000</pubDate>
		<guid isPermaLink="false">http://adcworks/?p=11#comment-12</guid>
		<description>Exactly what I needed. Thanks.</description>
		<content:encoded><![CDATA[<p>Exactly what I needed. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.adcworks.com/2008/04/php-soapclient-could-not-connect-to-host/comment-page-1/#comment-11</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 04 Aug 2008 23:11:33 +0000</pubDate>
		<guid isPermaLink="false">http://adcworks/?p=11#comment-11</guid>
		<description>Are you sure that all URLs inside the WSDL are available from your local machine when running the code?

You can try pinging each URL or putting the URL into a web browser, just to check that it exists.

So for example, is the URL:

http://localhost:54749/EBankServices/Service.asmx

Available to ping or in a web browser? The error usually means a URL in the WDSL is not reachable.</description>
		<content:encoded><![CDATA[<p>Are you sure that all URLs inside the WSDL are available from your local machine when running the code?</p>
<p>You can try pinging each URL or putting the URL into a web browser, just to check that it exists.</p>
<p>So for example, is the URL:</p>
<p><a href="http://localhost:54749/EBankServices/Service.asmx" rel="nofollow">http://localhost:54749/EBankServices/Service.asmx</a></p>
<p>Available to ping or in a web browser? The error usually means a URL in the WDSL is not reachable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: azade</title>
		<link>http://www.adcworks.com/2008/04/php-soapclient-could-not-connect-to-host/comment-page-1/#comment-10</link>
		<dc:creator>azade</dc:creator>
		<pubDate>Fri, 01 Aug 2008 14:12:52 +0000</pubDate>
		<guid isPermaLink="false">http://adcworks/?p=11#comment-10</guid>
		<description>hi,
i create a web service with asp.net ,save the wsdl in c:\wamp\www as Service.wsdl
the location in wsdl is
&#039;http://localhost:54749/EBankServices/Service.asmx&#039;

and use this code :
try {
    $client = new SoapClient(&quot;Service.wsdl&quot;);
    $result = $client-&gt;HelloWorld(&#039;azade&#039;);
} catch (SoapFault $fault) {
    trigger_error(&quot;SOAP Fault: (faultcode: {$fault-&gt;faultcode}, faultstring: {$fault-&gt;faultstring})&quot;, E_USER_ERROR);
}
and the error:
Fatal error: SOAP Fault: (faultcode: HTTP, faultstring: Could not connect to host) in C:\wamp\www\k.php on line 6


how do i solve my problem?
how do i do things that u say?
thanks</description>
		<content:encoded><![CDATA[<p>hi,<br />
i create a web service with asp.net ,save the wsdl in c:\wamp\www as Service.wsdl<br />
the location in wsdl is<br />
&#8216;http://localhost:54749/EBankServices/Service.asmx&#8217;</p>
<p>and use this code :<br />
try {<br />
    $client = new SoapClient(&quot;Service.wsdl&quot;);<br />
    $result = $client-&gt;HelloWorld(&#8216;azade&#8217;);<br />
} catch (SoapFault $fault) {<br />
    trigger_error(&quot;SOAP Fault: (faultcode: {$fault-&gt;faultcode}, faultstring: {$fault-&gt;faultstring})&quot;, E_USER_ERROR);<br />
}<br />
and the error:<br />
Fatal error: SOAP Fault: (faultcode: HTTP, faultstring: Could not connect to host) in C:\wamp\www\k.php on line 6</p>
<p>how do i solve my problem?<br />
how do i do things that u say?<br />
thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
