<?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: NuSoap, SOAP, and PHP Web Services Tutorial &#8211; Part 2</title>
	<atom:link href="http://www.codedeveloper.net/2010/05/nusoap-soap-and-php-web-services-tutorial-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codedeveloper.net/2010/05/nusoap-soap-and-php-web-services-tutorial-part-2/</link>
	<description>A Site For And By Web Developers</description>
	<lastBuildDate>Wed, 13 Apr 2011 04:09:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Rajasekhar</title>
		<link>http://www.codedeveloper.net/2010/05/nusoap-soap-and-php-web-services-tutorial-part-2/comment-page-1/#comment-115</link>
		<dc:creator>Rajasekhar</dc:creator>
		<pubDate>Wed, 13 Apr 2011 04:09:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.codedeveloper.net/?p=204#comment-115</guid>
		<description>Hi, this tutorial give me good idea on web services using soap.

thank u</description>
		<content:encoded><![CDATA[<p>Hi, this tutorial give me good idea on web services using soap.</p>
<p>thank u</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.codedeveloper.net/2010/05/nusoap-soap-and-php-web-services-tutorial-part-2/comment-page-1/#comment-106</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Wed, 05 Jan 2011 11:00:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.codedeveloper.net/?p=204#comment-106</guid>
		<description>I hope this helps you guys with sending multiple data through to the server

/************************************
 * Server Code
 ************************************/

	require_once(&#039;./classes/nusoap/nusoap.php&#039;);

	$server = new nusoap_server;

	$server-&gt;configureWSDL(&#039;server&#039;, &#039;urn:server&#039;);

	$server-&gt;wsdl-&gt;schemaTargetNamespace = &#039;urn:server&#039;;

	$server-&gt;register(&#039;pollServer&#039;,
					//make a name and surname array for the request wich will 
					//be passed to the function parameter 1 as $value array
						array(&#039;name&#039; =&gt; &#039;xsd:string&#039;, &#039;surname&#039; =&gt; &#039;xsd:string&#039;),
					array(&#039;return&#039; =&gt; &#039;xsd:string&#039;),
					&#039;urn:server&#039;,
					&#039;urn:server#pollServer&#039;);
					
function pollServer($value)
{
	//modded the function 
	$name 		= isset($value[&#039;name&#039;]) ? $value[&#039;name&#039;] : &#039;&#039;;
	$surname 	= isset($value[&#039;surname&#039;]) ? $value[&#039;surname&#039;] : &#039;&#039;;
	
	if( $name !== &#039;&#039; &amp;&amp; $surname !== &#039;&#039; )
	{
		return &quot;You have been Registered&quot;;
	}else
	{
		return &quot;Not registered!!&quot;;
	}
}

$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : &#039;&#039;;

$server-&gt;service($HTTP_RAW_POST_DATA);

/********************************************
	 * Client Script
	 ********************************************/
	
	require_once(&#039;./classes/nusoap/nusoap.php&#039;);
	
	
	//Start the SOAP Client
	$client = new soapclient(&#039;server script url here &#039;, true);
	
	//Get the first error if any
	$error = $client-&gt;getError();
	
	if($error)
	{
		echo &#039;Error : &lt;pre&gt;&#039;.$error.&#039;&lt;/pre&gt;&#039;;
	}
	
	//Define the result
	$result = $client-&gt;call(&#039;pollServer&#039; , array(&#039;name&#039; =&gt; &#039;Good&#039;, &#039;surname&#039; =&gt; &#039;NOTGOOD&#039;)); //fix
	
	
	//Check for Faults
	if( $client-&gt;fault )
	{
		echo &#039;Fault : &lt;pre&gt;&#039;.$result.&#039;&lt;/pre&gt;&#039;;
	}else
	{
		$error = $client-&gt;getError();
		
		if($error)
		{
			echo &#039;Error : &lt;pre&gt;&#039;.$error.&#039;&lt;/pre&gt;&#039;;
		}else
		{
			echo &#039;Result : &lt;pre&gt;&#039;.$result.&#039;&lt;/pre&gt;&#039;;
		}
	}
	
	
	//Display the request
	echo &quot;Request : &quot;;
	echo &#039;&lt;pre&gt;&#039;.htmlspecialchars($client-&gt;request, ENT_QUOTES).&#039;&lt;/pre&gt;&#039;;
	
	//Display the result 
	echo &#039;Response : &#039;;
	echo &#039;&lt;pre&gt;&#039;.htmlspecialchars($client-&gt;response, ENT_QUOTES).&#039;&lt;/pre&gt;&#039;;
	
	//Display the debug information
	echo &#039;Debug Code : &#039;;
	echo &#039;&lt;pre&gt;&#039;.htmlspecialchars($client-&gt;debug_str, ENT_QUOTES).&#039;&lt;/pre&gt;&#039;;</description>
		<content:encoded><![CDATA[<p>I hope this helps you guys with sending multiple data through to the server</p>
<p>/************************************<br />
 * Server Code<br />
 ************************************/</p>
<p>	require_once(&#8216;./classes/nusoap/nusoap.php&#8217;);</p>
<p>	$server = new nusoap_server;</p>
<p>	$server-&gt;configureWSDL(&#8216;server&#8217;, &#8216;urn:server&#8217;);</p>
<p>	$server-&gt;wsdl-&gt;schemaTargetNamespace = &#8216;urn:server&#8217;;</p>
<p>	$server-&gt;register(&#8216;pollServer&#8217;,<br />
					//make a name and surname array for the request wich will<br />
					//be passed to the function parameter 1 as $value array<br />
						array(&#8216;name&#8217; =&gt; &#8216;xsd:string&#8217;, &#8216;surname&#8217; =&gt; &#8216;xsd:string&#8217;),<br />
					array(&#8216;return&#8217; =&gt; &#8216;xsd:string&#8217;),<br />
					&#8216;urn:server&#8217;,<br />
					&#8216;urn:server#pollServer&#8217;);</p>
<p>function pollServer($value)<br />
{<br />
	//modded the function<br />
	$name 		= isset($value['name']) ? $value['name'] : &#8221;;<br />
	$surname 	= isset($value['surname']) ? $value['surname'] : &#8221;;</p>
<p>	if( $name !== &#8221; &amp;&amp; $surname !== &#8221; )<br />
	{<br />
		return &#8220;You have been Registered&#8221;;<br />
	}else<br />
	{<br />
		return &#8220;Not registered!!&#8221;;<br />
	}<br />
}</p>
<p>$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : &#8221;;</p>
<p>$server-&gt;service($HTTP_RAW_POST_DATA);</p>
<p>/********************************************<br />
	 * Client Script<br />
	 ********************************************/</p>
<p>	require_once(&#8216;./classes/nusoap/nusoap.php&#8217;);</p>
<p>	//Start the SOAP Client<br />
	$client = new soapclient(&#8216;server script url here &#8216;, true);</p>
<p>	//Get the first error if any<br />
	$error = $client-&gt;getError();</p>
<p>	if($error)<br />
	{<br />
		echo &#8216;Error :
<pre>'.$error.'</pre>
<p>&#8216;;<br />
	}</p>
<p>	//Define the result<br />
	$result = $client-&gt;call(&#8216;pollServer&#8217; , array(&#8216;name&#8217; =&gt; &#8216;Good&#8217;, &#8216;surname&#8217; =&gt; &#8216;NOTGOOD&#8217;)); //fix</p>
<p>	//Check for Faults<br />
	if( $client-&gt;fault )<br />
	{<br />
		echo &#8216;Fault :
<pre>'.$result.'</pre>
<p>&#8216;;<br />
	}else<br />
	{<br />
		$error = $client-&gt;getError();</p>
<p>		if($error)<br />
		{<br />
			echo &#8216;Error :
<pre>'.$error.'</pre>
<p>&#8216;;<br />
		}else<br />
		{<br />
			echo &#8216;Result :
<pre>'.$result.'</pre>
<p>&#8216;;<br />
		}<br />
	}</p>
<p>	//Display the request<br />
	echo &#8220;Request : &#8220;;<br />
	echo &#8216;
<pre>'.htmlspecialchars($client-&gt;request, ENT_QUOTES).'</pre>
<p>&#8216;;</p>
<p>	//Display the result<br />
	echo &#8216;Response : &#8216;;<br />
	echo &#8216;
<pre>'.htmlspecialchars($client-&gt;response, ENT_QUOTES).'</pre>
<p>&#8216;;</p>
<p>	//Display the debug information<br />
	echo &#8216;Debug Code : &#8216;;<br />
	echo &#8216;
<pre>'.htmlspecialchars($client-&gt;debug_str, ENT_QUOTES).'</pre>
<p>&#8216;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://www.codedeveloper.net/2010/05/nusoap-soap-and-php-web-services-tutorial-part-2/comment-page-1/#comment-105</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Wed, 05 Jan 2011 10:59:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.codedeveloper.net/?p=204#comment-105</guid>
		<description>I hope this helps you guys with sending multiple data through to the server

/************************************
 * Server Code
 ************************************/

	require_once(&#039;./classes/nusoap/nusoap.php&#039;);

	$server = new nusoap_server;

	$server-&gt;configureWSDL(&#039;server&#039;, &#039;urn:server&#039;);

	$server-&gt;wsdl-&gt;schemaTargetNamespace = &#039;urn:server&#039;;

	$server-&gt;register(&#039;pollServer&#039;,
					//make a name and surname array for the request wich will 
					//be passed to the function parameter 1 as $value array
						array(&#039;name&#039; =&gt; &#039;xsd:string&#039;, &#039;surname&#039; =&gt; &#039;xsd:string&#039;),
					array(&#039;return&#039; =&gt; &#039;xsd:string&#039;),
					&#039;urn:server&#039;,
					&#039;urn:server#pollServer&#039;);
					
function pollServer($value)
{
	//modded the function 
	$name 		= isset($value[&#039;name&#039;]) ? $value[&#039;name&#039;] : &#039;&#039;;
	$surname 	= isset($value[&#039;surname&#039;]) ? $value[&#039;surname&#039;] : &#039;&#039;;
	
	if( $name !== &#039;&#039; &amp;&amp; $surname !== &#039;&#039; )
	{
		return &quot;You have been Registered&quot;;
	}else
	{
		return &quot;Not registered!!&quot;;
	}
}

$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : &#039;&#039;;

$server-&gt;service($HTTP_RAW_POST_DATA);

/********************************************
	 * Client Script
	 ********************************************/
	
	require_once(&#039;./classes/nusoap/nusoap.php&#039;);
	
	
	//Start the SOAP Client
	$client = new soapclient(&#039;http://soaptest.rmeintjes.eleven/server.php?wsdl&#039;, true);
	
	//Get the first error if any
	$error = $client-&gt;getError();
	
	if($error)
	{
		echo &#039;Error : &lt;pre&gt;&#039;.$error.&#039;&lt;/pre&gt;&#039;;
	}
	
	//Define the result
	$result = $client-&gt;call(&#039;pollServer&#039; , array(&#039;name&#039; =&gt; &#039;Good&#039;, &#039;surname&#039; =&gt; &#039;NOTGOOD&#039;)); //fix
	
	
	//Check for Faults
	if( $client-&gt;fault )
	{
		echo &#039;Fault : &lt;pre&gt;&#039;.$result.&#039;&lt;/pre&gt;&#039;;
	}else
	{
		$error = $client-&gt;getError();
		
		if($error)
		{
			echo &#039;Error : &lt;pre&gt;&#039;.$error.&#039;&lt;/pre&gt;&#039;;
		}else
		{
			echo &#039;Result : &lt;pre&gt;&#039;.$result.&#039;&lt;/pre&gt;&#039;;
		}
	}
	
	
	//Display the request
	echo &quot;Request : &quot;;
	echo &#039;&lt;pre&gt;&#039;.htmlspecialchars($client-&gt;request, ENT_QUOTES).&#039;&lt;/pre&gt;&#039;;
	
	//Display the result 
	echo &#039;Response : &#039;;
	echo &#039;&lt;pre&gt;&#039;.htmlspecialchars($client-&gt;response, ENT_QUOTES).&#039;&lt;/pre&gt;&#039;;
	
	//Display the debug information
	echo &#039;Debug Code : &#039;;
	echo &#039;&lt;pre&gt;&#039;.htmlspecialchars($client-&gt;debug_str, ENT_QUOTES).&#039;&lt;/pre&gt;&#039;;</description>
		<content:encoded><![CDATA[<p>I hope this helps you guys with sending multiple data through to the server</p>
<p>/************************************<br />
 * Server Code<br />
 ************************************/</p>
<p>	require_once(&#8216;./classes/nusoap/nusoap.php&#8217;);</p>
<p>	$server = new nusoap_server;</p>
<p>	$server-&gt;configureWSDL(&#8216;server&#8217;, &#8216;urn:server&#8217;);</p>
<p>	$server-&gt;wsdl-&gt;schemaTargetNamespace = &#8216;urn:server&#8217;;</p>
<p>	$server-&gt;register(&#8216;pollServer&#8217;,<br />
					//make a name and surname array for the request wich will<br />
					//be passed to the function parameter 1 as $value array<br />
						array(&#8216;name&#8217; =&gt; &#8216;xsd:string&#8217;, &#8216;surname&#8217; =&gt; &#8216;xsd:string&#8217;),<br />
					array(&#8216;return&#8217; =&gt; &#8216;xsd:string&#8217;),<br />
					&#8216;urn:server&#8217;,<br />
					&#8216;urn:server#pollServer&#8217;);</p>
<p>function pollServer($value)<br />
{<br />
	//modded the function<br />
	$name 		= isset($value['name']) ? $value['name'] : &#8221;;<br />
	$surname 	= isset($value['surname']) ? $value['surname'] : &#8221;;</p>
<p>	if( $name !== &#8221; &amp;&amp; $surname !== &#8221; )<br />
	{<br />
		return &#8220;You have been Registered&#8221;;<br />
	}else<br />
	{<br />
		return &#8220;Not registered!!&#8221;;<br />
	}<br />
}</p>
<p>$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : &#8221;;</p>
<p>$server-&gt;service($HTTP_RAW_POST_DATA);</p>
<p>/********************************************<br />
	 * Client Script<br />
	 ********************************************/</p>
<p>	require_once(&#8216;./classes/nusoap/nusoap.php&#8217;);</p>
<p>	//Start the SOAP Client<br />
	$client = new soapclient(&#8216;http://soaptest.rmeintjes.eleven/server.php?wsdl&#8217;, true);</p>
<p>	//Get the first error if any<br />
	$error = $client-&gt;getError();</p>
<p>	if($error)<br />
	{<br />
		echo &#8216;Error :
<pre>'.$error.'</pre>
<p>&#8216;;<br />
	}</p>
<p>	//Define the result<br />
	$result = $client-&gt;call(&#8216;pollServer&#8217; , array(&#8216;name&#8217; =&gt; &#8216;Good&#8217;, &#8216;surname&#8217; =&gt; &#8216;NOTGOOD&#8217;)); //fix</p>
<p>	//Check for Faults<br />
	if( $client-&gt;fault )<br />
	{<br />
		echo &#8216;Fault :
<pre>'.$result.'</pre>
<p>&#8216;;<br />
	}else<br />
	{<br />
		$error = $client-&gt;getError();</p>
<p>		if($error)<br />
		{<br />
			echo &#8216;Error :
<pre>'.$error.'</pre>
<p>&#8216;;<br />
		}else<br />
		{<br />
			echo &#8216;Result :
<pre>'.$result.'</pre>
<p>&#8216;;<br />
		}<br />
	}</p>
<p>	//Display the request<br />
	echo &#8220;Request : &#8220;;<br />
	echo &#8216;
<pre>'.htmlspecialchars($client-&gt;request, ENT_QUOTES).'</pre>
<p>&#8216;;</p>
<p>	//Display the result<br />
	echo &#8216;Response : &#8216;;<br />
	echo &#8216;
<pre>'.htmlspecialchars($client-&gt;response, ENT_QUOTES).'</pre>
<p>&#8216;;</p>
<p>	//Display the debug information<br />
	echo &#8216;Debug Code : &#8216;;<br />
	echo &#8216;
<pre>'.htmlspecialchars($client-&gt;debug_str, ENT_QUOTES).'</pre>
<p>&#8216;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Farshid Alavi Moghadam</title>
		<link>http://www.codedeveloper.net/2010/05/nusoap-soap-and-php-web-services-tutorial-part-2/comment-page-1/#comment-104</link>
		<dc:creator>Farshid Alavi Moghadam</dc:creator>
		<pubDate>Wed, 22 Dec 2010 12:16:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.codedeveloper.net/?p=204#comment-104</guid>
		<description>The error i was given is &quot;Error: no transport found, or selected transport is not yet supported!&quot;;</description>
		<content:encoded><![CDATA[<p>The error i was given is &#8220;Error: no transport found, or selected transport is not yet supported!&#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Farshid Alavi Moghadam</title>
		<link>http://www.codedeveloper.net/2010/05/nusoap-soap-and-php-web-services-tutorial-part-2/comment-page-1/#comment-103</link>
		<dc:creator>Farshid Alavi Moghadam</dc:creator>
		<pubDate>Wed, 22 Dec 2010 11:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.codedeveloper.net/?p=204#comment-103</guid>
		<description>Hey man, I have tried to test your example, but the result wasn&#039;t as same as it is shown above. The result I was given is : &quot;Value returned from the server is:&quot;. Tell me where the problem comes from!!!!</description>
		<content:encoded><![CDATA[<p>Hey man, I have tried to test your example, but the result wasn&#8217;t as same as it is shown above. The result I was given is : &#8220;Value returned from the server is:&#8221;. Tell me where the problem comes from!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johng</title>
		<link>http://www.codedeveloper.net/2010/05/nusoap-soap-and-php-web-services-tutorial-part-2/comment-page-1/#comment-99</link>
		<dc:creator>johng</dc:creator>
		<pubDate>Thu, 19 Aug 2010 22:12:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.codedeveloper.net/?p=204#comment-99</guid>
		<description>Hi Greg,

Is this just giving you the actual character &quot;A&quot;? Also, did you setup a script similar to what I did in the 1st part of the tutorial for the server? What happens if you switch the argument passed in to &quot;Bad&quot;?</description>
		<content:encoded><![CDATA[<p>Hi Greg,</p>
<p>Is this just giving you the actual character &#8220;A&#8221;? Also, did you setup a script similar to what I did in the 1st part of the tutorial for the server? What happens if you switch the argument passed in to &#8220;Bad&#8221;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://www.codedeveloper.net/2010/05/nusoap-soap-and-php-web-services-tutorial-part-2/comment-page-1/#comment-98</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Thu, 19 Aug 2010 14:58:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.codedeveloper.net/?p=204#comment-98</guid>
		<description>Its really great script, this i tested and $value[&#039;value&#039;] is not giving &quot;Good&quot; 

its giving just A and if i return $value, its giving Array.

can you please help me.</description>
		<content:encoded><![CDATA[<p>Its really great script, this i tested and $value['value'] is not giving &#8220;Good&#8221; </p>
<p>its giving just A and if i return $value, its giving Array.</p>
<p>can you please help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johng</title>
		<link>http://www.codedeveloper.net/2010/05/nusoap-soap-and-php-web-services-tutorial-part-2/comment-page-1/#comment-89</link>
		<dc:creator>johng</dc:creator>
		<pubDate>Sat, 22 May 2010 12:12:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.codedeveloper.net/?p=204#comment-89</guid>
		<description>What sort of errors were you having that need clarification?</description>
		<content:encoded><![CDATA[<p>What sort of errors were you having that need clarification?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo</title>
		<link>http://www.codedeveloper.net/2010/05/nusoap-soap-and-php-web-services-tutorial-part-2/comment-page-1/#comment-88</link>
		<dc:creator>Ricardo</dc:creator>
		<pubDate>Sat, 22 May 2010 00:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.codedeveloper.net/?p=204#comment-88</guid>
		<description>I congratulate them on the library NuSOAP there are very few tutorials and examples of use. Please clarify several doubts about all that with PHP 5.3 occurred several errors.</description>
		<content:encoded><![CDATA[<p>I congratulate them on the library NuSOAP there are very few tutorials and examples of use. Please clarify several doubts about all that with PHP 5.3 occurred several errors.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

