<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.method.me/cs/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>Method:API Q&amp;A</title><link>http://forums.method.me/cs/forums/15.aspx</link><description>Ask questions specific to the MethodAPI from the Method Team and other Method users.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Re: Object reference not an instance of an object.</title><link>http://forums.method.me/cs/forums/thread/16449.aspx</link><pubDate>Fri, 08 Mar 2013 10:44:45 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:16449</guid><dc:creator>Sivalal</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/16449.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=16449</wfw:commentRss><description>&lt;p&gt;&lt;span style="overflow:hidden;" id="mce_3_start"&gt;Hi &lt;strong&gt;viret56&lt;/strong&gt;,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;" id="mce_1_start"&gt;&lt;/span&gt;Pass the variables in an array&lt;span style="overflow:hidden;" id="mce_2_start"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;$client-&amp;gt;MethodAPITableList(array(&amp;quot;strCompanyAccount&amp;quot;=&amp;gt;$company, &amp;quot;strLogin&amp;quot;=&amp;gt;$user,&amp;quot;strPassword&amp;quot;=&amp;gt; $password, &amp;quot;xmlReturned&amp;quot;=&amp;gt;&lt;span style="overflow:hidden;" id="mce_6_start"&gt;&lt;/span&gt;$&lt;span style="overflow:hidden;" id="mce_5_start"&gt;&lt;/span&gt;re&lt;span style="overflow:hidden;" id="mce_4_start"&gt;&lt;/span&gt;turnedXML&lt;span style="overflow:hidden;" id="mce_6_end"&gt;&lt;/span&gt;&lt;span style="overflow:hidden;" id="mce_5_end"&gt;&lt;/span&gt;));&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;" id="mce_7_start"&gt;&lt;span style="overflow:hidden;" id="mce_6_start"&gt;&lt;/span&gt;$&lt;span style="overflow:hidden;" id="mce_5_start"&gt;&lt;/span&gt;re&lt;span style="overflow:hidden;" id="mce_4_start"&gt;&lt;/span&gt;turnedXML&lt;span style="overflow:hidden;" id="mce_6_end"&gt;&lt;/span&gt;=&amp;#39;&amp;#39;; // an empty string is enough&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Object reference not an instance of an object.</title><link>http://forums.method.me/cs/forums/thread/11348.aspx</link><pubDate>Thu, 15 Mar 2012 18:51:42 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:11348</guid><dc:creator>viret56</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/11348.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=11348</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Method_David,&lt;/p&gt;
&lt;p&gt;The company, user, and password are set.&amp;nbsp; For the variable returnedXML, I have tried &amp;#39;$returnedXML&amp;#39;, &amp;#39;&amp;amp;$returnedXML&amp;#39;, an empty string (&amp;#39;&amp;#39;), and a literal string (&amp;#39;returnedXML&amp;#39;), all of which give me the same error message.&lt;/p&gt;
&lt;p&gt;By the way.&amp;nbsp; I am able to make a connection and retrieve data using PHP&amp;#39;s CURL library.&lt;/p&gt;</description></item><item><title>Re: Object reference not an instance of an object.</title><link>http://forums.method.me/cs/forums/thread/11347.aspx</link><pubDate>Thu, 15 Mar 2012 18:24:18 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:11347</guid><dc:creator>Method_David</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/11347.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=11347</wfw:commentRss><description>&lt;p&gt;Hi viret56,&lt;/p&gt;
&lt;p&gt;Have you set the variables company, user, and password? Also the variable returnedXML is supposed to be&amp;nbsp;passed by ref into the function, has this been set properly?&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Object reference not an instance of an object.</title><link>http://forums.method.me/cs/forums/thread/11316.aspx</link><pubDate>Wed, 14 Mar 2012 23:49:47 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:11316</guid><dc:creator>viret56</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/11316.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=11316</wfw:commentRss><description>&lt;p&gt;I am using PHP 5 SoapClient class to define a SOAP client pointing to the MethodAPI service. I do this with&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $client = new SoapClient(&amp;quot;https://www.methodintegration.com/MethodAPI/service.asmx?wsdl&amp;quot;);&lt;/p&gt;
&lt;p&gt;My first test is attempting to retreive a table list using MethodTableList.&amp;nbsp; The PHP code I used is&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $rsXML = $client-&amp;gt;MethodAPITableList($company, $user, $password, $returnedXML);&lt;/p&gt;
&lt;p&gt;The response returned ($rsXML-&amp;gt;MethodAPITableListResult) is the error message,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;Object reference not set to an instance of an object.&amp;quot;&lt;/p&gt;
&lt;p&gt;The two lines of code are fairly straightforward and I can&amp;#39;t see what is causing the error. Can someone tell me what caused that error?&amp;nbsp; Is it the $returnedXML string variable?&lt;/p&gt;</description></item></channel></rss>