<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web development &#187; Nusoap Header Authentification</title>
	<atom:link href="http://sourcecodemoney.com/tag/nusoap-header-authentification/feed/" rel="self" type="application/rss+xml" />
	<link>http://sourcecodemoney.com</link>
	<description>Use source code for money</description>
	<lastBuildDate>Thu, 12 Aug 2010 10:54:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Nusoap header authentification</title>
		<link>http://sourcecodemoney.com/nusoap-header-authentification/php-code/</link>
		<comments>http://sourcecodemoney.com/nusoap-header-authentification/php-code/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 15:26:41 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[PHP code]]></category>
		<category><![CDATA[Array Parameters]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[Headers]]></category>
		<category><![CDATA[Lt]]></category>
		<category><![CDATA[Nusoap]]></category>
		<category><![CDATA[Nusoap Header]]></category>
		<category><![CDATA[Nusoap Header Authentification]]></category>
		<category><![CDATA[Password Authentication]]></category>
		<category><![CDATA[Php Web Service]]></category>
		<category><![CDATA[Web Service]]></category>
		<category><![CDATA[Webservice]]></category>

		<guid isPermaLink="false">http://sourcecodemoney.com/?p=54</guid>
		<description><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		


A web service often need authentication where it needs username and password. You need to pass the header when calling the web service. Here&#8217;s an example for http://webservice.apm.com.au/Feed/ web service.
$headers = &#8216;&#60;Authentication xmlns=&#8221;http://webservice.apm.com.au/Feed/&#8221;&#62;
&#60;User&#62;youruser&#60;/User&#62;
&#60;Password&#62;password&#60;/Password&#62;
&#60;/Authentication&#62;&#8217;;
$result = $client-&#62;call($function, array(&#8217;parameters&#8217; =&#62; $params), &#8221;, &#8221;,$headers, true);
]]></description>
			<content:encoded><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		<div id="diggbutton"><a href="http://digg.com/submit?phase=2&amp;url=http://sourcecodemoney.com/nusoap-header-authentification/php-code/"><img src="http://sourcecodemoney.com/wp-content/plugins/diggme/digg.png"></a></div><p>A web service often need authentication where it needs username and password. You need to pass the header when calling the web service. Here&#8217;s an example for <strong><em>http://webservice.apm.com.au/Feed/</em></strong> web service.</p>
<div id="code">$headers = &#8216;&lt;Authentication xmlns=&#8221;http://webservice.apm.com.au/Feed/&#8221;&gt;<br />
&lt;User&gt;youruser&lt;/User&gt;<br />
&lt;Password&gt;password&lt;/Password&gt;<br />
&lt;/Authentication&gt;&#8217;;</p>
<p>$result = $client-&gt;call($function, array(&#8217;parameters&#8217; =&gt; $params), &#8221;, &#8221;,$headers, true);</p></div>
]]></content:encoded>
			<wfw:commentRss>http://sourcecodemoney.com/nusoap-header-authentification/php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
