<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>PHP to ASP.NET Migration Assistant Alpha</title><link>http://forums.asp.net/133.aspx</link><description>Use this forum to ask questions about the PHP to ASP.NET Migration Assistant.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Consume an ASP.NET Web Service with PHP</title><link>http://forums.asp.net/thread/3388030.aspx</link><pubDate>Fri, 04 Sep 2009 15:02:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3388030</guid><dc:creator>ashwinkraj</dc:creator><author>ashwinkraj</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3388030.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=133&amp;PostID=3388030</wfw:commentRss><description>&lt;p&gt;Were you able to resolve this and get PHP SOAP to talk to your .NET web service? I created a simple web service method using ASP.NET/C#&lt;/p&gt;
&lt;p&gt;[WebMethod]&lt;br /&gt;public int addNumbers(int num1, int num2)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; int result = num1 + num2;&lt;br /&gt;&amp;nbsp; TextWriter tw = new StreamWriter(@&amp;quot;C:\WINDOWS\Temp\addNumbers.txt&amp;quot;);&lt;br /&gt;&amp;nbsp; tw.WriteLine(&amp;quot;&amp;quot; + num1 + &amp;quot; + &amp;quot; + num2 + &amp;quot; = &amp;quot; + result);&lt;br /&gt;&amp;nbsp; tw.Close();&lt;/p&gt;
&lt;p&gt;&amp;nbsp; return result;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;So the input and output parameters to the method call are logged to a text file. When I test this web service method locally, it seems to work fine. But when I try to invoke it via PHP, I encounter a couple of problems -&lt;br /&gt;(a) &lt;strong&gt;$soapClient-&amp;gt;addNumbers(99, 101)&lt;/strong&gt; resulted in the text file on the server containing &amp;quot;&lt;strong&gt;0 + 0 = 0&lt;/strong&gt;&amp;quot;&lt;br /&gt;(b) &lt;strong&gt;print $soapClient-&amp;gt;addNumbers(99, 101);&lt;/strong&gt; resulted in the following error on the PHP page&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Catchable fatal error:&amp;nbsp; Object of class stdClass could not be converted to string in C:\xampp\htdocs\inspect_service.php on line 27&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;where line 27 is the stated line.&lt;/p&gt;
&lt;p&gt;Can you please help?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Ashwin&lt;/p&gt;</description></item><item><title>Re: Consume an ASP.NET Web Service with PHP</title><link>http://forums.asp.net/thread/2527185.aspx</link><pubDate>Thu, 31 Jul 2008 08:06:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2527185</guid><dc:creator>azade</dc:creator><author>azade</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2527185.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=133&amp;PostID=2527185</wfw:commentRss><description>&lt;p&gt;hi,&lt;br /&gt;i create a web service with asp.net ,and then save the wsdl of it as Service.wsdl in c:\wamp\www&lt;br /&gt;(i use wamp)&lt;br /&gt;uncomment saop-php.dll in php.ini&lt;br /&gt;and use this code:&lt;br /&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $client = new SoapClient(&amp;quot;Service.wsdl&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;echo &amp;quot;Hello&amp;quot;;&lt;/em&gt;&lt;br /&gt;$param=array(&amp;#39;name&amp;#39;=&amp;gt;&amp;#39;azade&amp;#39;,); &lt;br /&gt;&amp;nbsp;$result =&amp;nbsp; $client-&amp;gt;__soapCall(&amp;#39;HelloWorld&amp;#39;,$param);&lt;br /&gt;&amp;nbsp;print_r($result);&lt;br /&gt;&amp;nbsp;&lt;br /&gt;but i got this error:&lt;br /&gt;&amp;nbsp;&lt;br /&gt;Hello&lt;br /&gt;Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in C:\wamp\www\n.php:12 Stack trace: #0 [internal function]: SoapClient-&amp;gt;__doRequest(&amp;#39;&amp;lt;?xml version=&amp;quot;...&amp;#39;, &amp;#39;http://localhos...&amp;#39;, &amp;#39;http://tempuri....&amp;#39;, 1, 0) #1 C:\wamp\www\n.php(12): SoapClient-&amp;gt;__soapCall(&amp;#39;HelloWorld&amp;#39;, Array) #2 {main} thrown in C:\wamp\www\n.php on line 12&lt;br /&gt;&amp;nbsp;&lt;br /&gt;could u help me ,plz?&lt;br /&gt;thanks&lt;/p&gt;</description></item><item><title>Re: Consume an ASP.NET Web Service with PHP</title><link>http://forums.asp.net/thread/1034990.aspx</link><pubDate>Mon, 29 Aug 2005 01:39:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1034990</guid><dc:creator>adoniner</dc:creator><author>adoniner</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1034990.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=133&amp;PostID=1034990</wfw:commentRss><description>&lt;font face="Garamond"&gt;Where is this documentation on consuming .NET web services via PHP?&lt;br&gt;
&lt;br&gt;
ado&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;</description></item><item><title>Re: Consume an ASP.NET Web Service with PHP</title><link>http://forums.asp.net/thread/935302.aspx</link><pubDate>Tue, 24 May 2005 16:29:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:935302</guid><dc:creator>javiguillen</dc:creator><author>javiguillen</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/935302.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=133&amp;PostID=935302</wfw:commentRss><description>you may have to pass the security credentials as web service parameters. Besides that, connection to the ASP.NET service should be&amp;nbsp;as easy as consuming a web service created in PHP&amp;nbsp; (consult documentation on consuming web services via PHP)&amp;nbsp;</description></item><item><title>Consume an ASP.NET Web Service with PHP</title><link>http://forums.asp.net/thread/934749.aspx</link><pubDate>Tue, 24 May 2005 08:09:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:934749</guid><dc:creator>g.t.hill</dc:creator><author>g.t.hill</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/934749.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=133&amp;PostID=934749</wfw:commentRss><description>&lt;P&gt;I have created a&amp;nbsp;Web Service in ASP.NET and also an ASP.NET client to consume this service. The Web Service uses Windows Authentication to recognise the client, so that not just anyone can access it.&lt;/P&gt;
&lt;P&gt;We have another existing system built in PHP, which we would like to be able to access the ASP.NET Web Service - does anyone know how this would be possible, bearing in mind the security complications of having to authenticate the consumer?&lt;/P&gt;
&lt;P&gt;Any help much appreciated...&lt;/P&gt;</description></item></channel></rss>