<?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>Commentaires sur : Utiliser SOAP en PHP avec la librairie NuSoap.</title>
	<atom:link href="http://www.tellaw.org/2008/04/23/utiliser-soap-en-php-avec-la-librairie-nusoap/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tellaw.org/2008/04/23/utiliser-soap-en-php-avec-la-librairie-nusoap/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=utiliser-soap-en-php-avec-la-librairie-nusoap</link>
	<description>L&#039;important n&#039;est pas le language, c&#039;est vous!</description>
	<lastBuildDate>Mon, 06 Feb 2012 09:45:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Par : hakim</title>
		<link>http://www.tellaw.org/2008/04/23/utiliser-soap-en-php-avec-la-librairie-nusoap/#comment-67</link>
		<dc:creator>hakim</dc:creator>
		<pubDate>Mon, 06 Apr 2009 14:32:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.tellaw.org/?p=39#comment-67</guid>
		<description>Bonjour chez moi ça marche pas. j&#039;ai une erreur qui dit :
Le type de contenu text/xml; charset=ISO-8859-1 du message de réponse ne correspond pas au type de contenu de la liaison (text/xml; charset=utf-8). Si vous utilisez un codeur personnalisé, vérifiez que la méthode IsContentTypeSupported est implémentée correctement. Les premiers 441 octets de la réponse étaient : « Hello fff ! ».


voici le code de mon service


set_magic_quotes_runtime(0);
 
// Soap Server.
require_once(&#039;nusoap/lib/nusoap.php&#039;);
 
// Create the soap Object
$s = new soap_server;
 
// Register a method available for clients
$s-&gt;register(&#039;hello&#039;);

$s-&gt;configureWSDL(&#039;Appelwsdl&#039;, &#039;urn:Appelwsdl&#039;);
$s-&gt;register(&#039;hello&#039;, // method name
array(&#039;name&#039; =&gt; &#039;xsd:string&#039;
), // input parameters
array(&#039;return&#039; =&gt; &#039;xsd:string&#039;), // output parameters
&#039;urn:hello&#039;, // namespace
&#039;urn:hellowsdl#&#039;, // soapaction
&#039;rpc&#039;, // style
&#039;encoded&#039;, // use
&#039;documentation&#039; // documentation
);

 
function hello($name){
 
	$returnedString = &quot;Hello &quot;.$name.&quot; !&quot;;
	return $returnedString;
 
}
 
// Return the results.
$s-&gt;service($HTTP_RAW_POST_DATA);</description>
		<content:encoded><![CDATA[<p>Bonjour chez moi ça marche pas. j&#8217;ai une erreur qui dit :<br />
Le type de contenu text/xml; charset=ISO-8859-1 du message de réponse ne correspond pas au type de contenu de la liaison (text/xml; charset=utf-8). Si vous utilisez un codeur personnalisé, vérifiez que la méthode IsContentTypeSupported est implémentée correctement. Les premiers 441 octets de la réponse étaient : « Hello fff ! ».</p>
<p>voici le code de mon service</p>
<p>set_magic_quotes_runtime(0);</p>
<p>// Soap Server.<br />
require_once(&#8216;nusoap/lib/nusoap.php&#8217;);</p>
<p>// Create the soap Object<br />
$s = new soap_server;</p>
<p>// Register a method available for clients<br />
$s-&gt;register(&#8216;hello&#8217;);</p>
<p>$s-&gt;configureWSDL(&#8216;Appelwsdl&#8217;, &#8216;urn:Appelwsdl&#8217;);<br />
$s-&gt;register(&#8216;hello&#8217;, // method name<br />
array(&#8216;name&#8217; =&gt; &#8216;xsd:string&#8217;<br />
), // input parameters<br />
array(&#8216;return&#8217; =&gt; &#8216;xsd:string&#8217;), // output parameters<br />
&#8216;urn:hello&#8217;, // namespace<br />
&#8216;urn:hellowsdl#&#8217;, // soapaction<br />
&#8216;rpc&#8217;, // style<br />
&#8216;encoded&#8217;, // use<br />
&#8216;documentation&#8217; // documentation<br />
);</p>
<p>function hello($name){</p>
<p>	$returnedString = &laquo;&nbsp;Hello &laquo;&nbsp;.$name.&nbsp;&raquo; !&nbsp;&raquo;;<br />
	return $returnedString;</p>
<p>}</p>
<p>// Return the results.<br />
$s-&gt;service($HTTP_RAW_POST_DATA);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : hamdi</title>
		<link>http://www.tellaw.org/2008/04/23/utiliser-soap-en-php-avec-la-librairie-nusoap/#comment-66</link>
		<dc:creator>hamdi</dc:creator>
		<pubDate>Fri, 27 Mar 2009 17:01:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.tellaw.org/?p=39#comment-66</guid>
		<description>slt 
ce code ne fonctionne pas car l&#039;initialisation de WSDL manque 
il faut rajouter ce bout de code dans le soapserver pour initialiser le wsdl.
$server-&gt;configureWSDL(&#039;Appelwsdl&#039;, &#039;urn:Appelwsdl&#039;);
$server-&gt;register(&#039;bonjour&#039;,   // method name
array(&#039;prenom&#039; =&gt; &#039;xsd:string&#039;,
&#039;file&#039; =&gt; &#039;xsd:string&#039;,
&#039;language&#039; =&gt; &#039;xsd:string&#039;),    // input parameters
array(&#039;return&#039; =&gt; &#039;xsd:string&#039;),   // output parameters
&#039;urn:bonjour&#039;,    // namespace
&#039;urn:bonjourwsdl#&#039;,    // soapaction
&#039;rpc&#039;,          // style
&#039;encoded&#039;,         // use
&quot;documentation&quot;        // documentation
);

avec ca tt est OK!!!</description>
		<content:encoded><![CDATA[<p>slt<br />
ce code ne fonctionne pas car l&#8217;initialisation de WSDL manque<br />
il faut rajouter ce bout de code dans le soapserver pour initialiser le wsdl.<br />
$server-&gt;configureWSDL(&#8216;Appelwsdl&#8217;, &#8216;urn:Appelwsdl&#8217;);<br />
$server-&gt;register(&#8216;bonjour&#8217;,   // method name<br />
array(&#8216;prenom&#8217; =&gt; &#8216;xsd:string&#8217;,<br />
&#8216;file&#8217; =&gt; &#8216;xsd:string&#8217;,<br />
&#8216;language&#8217; =&gt; &#8216;xsd:string&#8217;),    // input parameters<br />
array(&#8216;return&#8217; =&gt; &#8216;xsd:string&#8217;),   // output parameters<br />
&#8216;urn:bonjour&#8217;,    // namespace<br />
&#8216;urn:bonjourwsdl#&#8217;,    // soapaction<br />
&#8216;rpc&#8217;,          // style<br />
&#8216;encoded&#8217;,         // use<br />
&laquo;&nbsp;documentation&nbsp;&raquo;        // documentation<br />
);</p>
<p>avec ca tt est OK!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : boulares</title>
		<link>http://www.tellaw.org/2008/04/23/utiliser-soap-en-php-avec-la-librairie-nusoap/#comment-65</link>
		<dc:creator>boulares</dc:creator>
		<pubDate>Fri, 07 Nov 2008 12:10:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.tellaw.org/?p=39#comment-65</guid>
		<description>j&#039;ai un serveur python service web
et j&#039;essaye de me connecter a partir d&#039;un client php
il me donne array comme resultat 
aidez moi svp voici le code:

set_magic_quotes_runtime(0);
	//WebService Client.
	require_once(&quot;../SLPproject/include/nusoap/nusoap.php&quot;);
	// Set the parameters to send to the WebService
	$parameters = array(&quot;text&quot;=&gt;$_SESSION[&#039;texte&#039;]); 
	// Set the WebService URL	
	$soapclient = new soapclient(&quot;http://127.0.0.1:1111/&quot;); 
	// Call the WebService and store its result in $result.
	$result = $soapclient-&gt;call(&quot;check_spell&quot;,$parameters);
	echo $result;</description>
		<content:encoded><![CDATA[<p>j&#8217;ai un serveur python service web<br />
et j&#8217;essaye de me connecter a partir d&#8217;un client php<br />
il me donne array comme resultat<br />
aidez moi svp voici le code:</p>
<p>set_magic_quotes_runtime(0);<br />
	//WebService Client.<br />
	require_once(&laquo;&nbsp;../SLPproject/include/nusoap/nusoap.php&nbsp;&raquo;);<br />
	// Set the parameters to send to the WebService<br />
	$parameters = array(&laquo;&nbsp;text&nbsp;&raquo;=&gt;$_SESSION['texte']);<br />
	// Set the WebService URL<br />
	$soapclient = new soapclient(&laquo;&nbsp;http://127.0.0.1:1111/&nbsp;&raquo;);<br />
	// Call the WebService and store its result in $result.<br />
	$result = $soapclient-&gt;call(&laquo;&nbsp;check_spell&nbsp;&raquo;,$parameters);<br />
	echo $result;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Sun Location Vacances</title>
		<link>http://www.tellaw.org/2008/04/23/utiliser-soap-en-php-avec-la-librairie-nusoap/#comment-64</link>
		<dc:creator>Sun Location Vacances</dc:creator>
		<pubDate>Tue, 21 Oct 2008 13:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.tellaw.org/?p=39#comment-64</guid>
		<description>Article intéressant, cependant, nusoap a du mal a fonctionner avec le service web Google Api...</description>
		<content:encoded><![CDATA[<p>Article intéressant, cependant, nusoap a du mal a fonctionner avec le service web Google Api&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : enforcer</title>
		<link>http://www.tellaw.org/2008/04/23/utiliser-soap-en-php-avec-la-librairie-nusoap/#comment-63</link>
		<dc:creator>enforcer</dc:creator>
		<pubDate>Sun, 10 Aug 2008 15:59:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.tellaw.org/?p=39#comment-63</guid>
		<description>idem, même problème que cité au dessus :s</description>
		<content:encoded><![CDATA[<p>idem, même problème que cité au dessus :s</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : admin</title>
		<link>http://www.tellaw.org/2008/04/23/utiliser-soap-en-php-avec-la-librairie-nusoap/#comment-62</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 01 Aug 2008 12:33:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.tellaw.org/?p=39#comment-62</guid>
		<description>Peux tu m&#039;envoyer stp ton code sur ma boite mail (eric.wallet chez yahoo france).
Merci beaucoup
Eric</description>
		<content:encoded><![CDATA[<p>Peux tu m&#8217;envoyer stp ton code sur ma boite mail (eric.wallet chez yahoo france).<br />
Merci beaucoup<br />
Eric</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : zzzer</title>
		<link>http://www.tellaw.org/2008/04/23/utiliser-soap-en-php-avec-la-librairie-nusoap/#comment-61</link>
		<dc:creator>zzzer</dc:creator>
		<pubDate>Fri, 01 Aug 2008 12:12:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.tellaw.org/?p=39#comment-61</guid>
		<description>Salut,

J&#039;ai essayé ton exemple, mais il ne semble pas fonctionner !

Lorsque j&#039;appelle le client, voici ce qu&#039;il m&#039;affiche :



Warning: SoapClient::SoapClient(http://127.0.0.1/phpWS.php) [function.SoapClient-SoapClient]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Service Error in /var/www/appelWS.php on line 14

Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]: I/O warning : failed to load external entity &quot;http://127.0.0.1/phpWS.php&quot; in /var/www/appelWS.php on line 14

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn&#039;t load from &#039;http://127.0.0.1/phpWS.php&#039; in /var/www/appelWS.php:14 Stack trace: #0 /var/www/appelWS.php(14): SoapClient-&gt;SoapClient(&#039;http://127.0.0....&#039;) #1 {main} thrown in /var/www/appelWS.php on line 14



Aurais-tu une idée de ce dont il peut s&#039;agir ?

Merci d&#039;avance :)</description>
		<content:encoded><![CDATA[<p>Salut,</p>
<p>J&#8217;ai essayé ton exemple, mais il ne semble pas fonctionner !</p>
<p>Lorsque j&#8217;appelle le client, voici ce qu&#8217;il m&#8217;affiche :</p>
<p>Warning: SoapClient::SoapClient(http://127.0.0.1/phpWS.php) [function.SoapClient-SoapClient]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Service Error in /var/www/appelWS.php on line 14</p>
<p>Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]: I/O warning : failed to load external entity &laquo;&nbsp;http://127.0.0.1/phpWS.php&nbsp;&raquo; in /var/www/appelWS.php on line 14</p>
<p>Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn&#8217;t load from &#8216;<a href="http://127.0.0.1/phpWS.php" rel="nofollow">http://127.0.0.1/phpWS.php</a>&#8216; in /var/www/appelWS.php:14 Stack trace: #0 /var/www/appelWS.php(14): SoapClient-&gt;SoapClient(&#8216;<a href="http://127.0.0...." rel="nofollow">http://127.0.0&#8230;.</a>&#8216;) #1 {main} thrown in /var/www/appelWS.php on line 14</p>
<p>Aurais-tu une idée de ce dont il peut s&#8217;agir ?</p>
<p>Merci d&#8217;avance <img src='http://www.tellaw.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : asmatem</title>
		<link>http://www.tellaw.org/2008/04/23/utiliser-soap-en-php-avec-la-librairie-nusoap/#comment-60</link>
		<dc:creator>asmatem</dc:creator>
		<pubDate>Tue, 17 Jun 2008 17:20:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.tellaw.org/?p=39#comment-60</guid>
		<description>salut j&#039;ai developper une application et je voullais la transformer en un web service j&#039;ai deja ecrire le soap serveur mais rien ne change c&#039;est à dire le serveur n&#039;est pas creer. je pense que le prbm est dans la librerie nusoap je ne trouve pas ou je doit la mettre svp aider moi c&#039;est tres urgent.
merci d&#039;avance.</description>
		<content:encoded><![CDATA[<p>salut j&#8217;ai developper une application et je voullais la transformer en un web service j&#8217;ai deja ecrire le soap serveur mais rien ne change c&#8217;est à dire le serveur n&#8217;est pas creer. je pense que le prbm est dans la librerie nusoap je ne trouve pas ou je doit la mettre svp aider moi c&#8217;est tres urgent.<br />
merci d&#8217;avance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

