<?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: MethodAPIInsert error with input field array</title><link>http://forums.method.me/cs/forums/thread/1305.aspx</link><pubDate>Tue, 01 Sep 2009 16:29:06 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:1305</guid><dc:creator>paul</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/1305.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=1305</wfw:commentRss><description>&lt;p&gt;Peter,&lt;/p&gt;
&lt;p&gt;Looks good! Thanks a ton! i just found out another good practice for using nusoap. I found some documentation that recommmends using the nusoap_client constructor in case the PHP install has both SoapClient and Nusoap installed, that way you know you&amp;#39;re getting the right object!&lt;/p&gt;
&lt;p&gt;I.e. &amp;nbsp;&amp;nbsp; $client = new nusoap_client(&amp;#39;https://www.methodintegration.com/MethodAPI/service.asmx?wsdl&amp;#39;, true);&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: MethodAPIInsert error with input field array</title><link>http://forums.method.me/cs/forums/thread/1295.aspx</link><pubDate>Mon, 31 Aug 2009 17:40:38 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:1295</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/1295.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=1295</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Paul,&lt;/p&gt;
&lt;p&gt;PHP&amp;#39;s Nusoap is a little tricky with array within array.&lt;/p&gt;
&lt;p&gt;Here is the format I was able to pass in the array. Using the &amp;#39;key&amp;#39; as the datatype allowed the array to be passed in.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;//use the nusoap library&lt;br /&gt;require_once(&amp;#39;lib/nusoap.php&amp;#39;); &lt;br /&gt;$ns=&amp;quot;urn:servicename&amp;quot;;&lt;br /&gt;$client = new soapclient(&amp;#39;http://www.methodintegration.com/MethodAPI/service.asmx?wsdl&amp;#39;, true); &lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;$array = array( &amp;#39;strCompanyAccount&amp;#39; =&amp;gt; &amp;#39;AccountName&amp;#39;,&lt;br /&gt;&amp;nbsp;&amp;#39;strLogin&amp;#39; =&amp;gt; &amp;#39;UserName&amp;#39;,&lt;br /&gt;&amp;nbsp;&amp;#39;strPassword&amp;#39;&amp;nbsp; =&amp;gt; Password,&lt;br /&gt;&amp;nbsp;&amp;#39;strTable&amp;#39; =&amp;gt; &amp;#39;Customer&amp;#39;,&lt;br /&gt;&amp;nbsp;&amp;#39;arrInsertFieldsArray&amp;#39; =&amp;gt; array(&amp;#39;string&amp;#39; =&amp;gt; array(&amp;#39;Name&amp;#39;)),&lt;br /&gt;&amp;nbsp;&amp;#39;arrInsertValueArray&amp;#39; =&amp;gt; array(&amp;#39;string&amp;#39; =&amp;gt; array(&amp;#39;Frank the Tank&amp;#39;)),&lt;br /&gt;&amp;nbsp;&amp;#39;intResponseRecordID&amp;#39;&amp;nbsp; =&amp;gt; $id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;$result =&amp;nbsp; $client-&amp;gt; call(&amp;#39;MethodAPIInsert&amp;#39;, $array, array(&amp;quot;soapaction&amp;quot;=&amp;gt;&amp;quot;&lt;a href="http://tempuri.org/MethodAPIInsert"&gt;http://tempuri.org/MethodAPIInsert&lt;/a&gt;&amp;quot;));&amp;nbsp; &lt;br /&gt;echo &amp;#39;Response code : &amp;#39;.$result[0];&lt;/p&gt;
&lt;p&gt;//kill the client&lt;br /&gt;unset($client);&lt;/p&gt;</description></item><item><title>Re: MethodAPIInsert error with input field array</title><link>http://forums.method.me/cs/forums/thread/1245.aspx</link><pubDate>Tue, 25 Aug 2009 17:33:36 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:1245</guid><dc:creator>paul</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/1245.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=1245</wfw:commentRss><description>&lt;p&gt;I just looked out at my outbound SOAP envelope and it looks like this&lt;/p&gt;
&lt;p&gt;&amp;lt;SOAP-ENV:Envelope&amp;gt;&lt;br /&gt;&amp;lt;SOAP-ENV:Body&amp;gt;&lt;br /&gt;&amp;lt;MethodAPIInsert&amp;gt;&lt;br /&gt;&amp;lt;strCompanyAccount&amp;gt;MYCOMPANY&amp;lt;/strCompanyAccount&amp;gt;&lt;br /&gt;&amp;lt;strLogin&amp;gt;MYUSERNAME&amp;lt;/strLogin&amp;gt;&lt;br /&gt;&amp;lt;strPassword&amp;gt;MYPASSWORD&amp;lt;/strPassword&amp;gt;&lt;br /&gt;&amp;lt;strTable&amp;gt;Customer&amp;lt;/strTable&amp;gt;&lt;br /&gt;&amp;lt;arrInsertFieldsArray&amp;gt;&lt;br /&gt;&amp;lt;string/&amp;gt;&lt;br /&gt;&amp;lt;/arrInsertFieldsArray&amp;gt;&lt;br /&gt;&amp;lt;arrInsertValueArray&amp;gt;&lt;br /&gt;&amp;lt;string/&amp;gt;&lt;br /&gt;&amp;lt;/arrInsertValueArray&amp;gt;&lt;br /&gt;&amp;lt;intResponseRecordID/&amp;gt;&lt;br /&gt;&amp;lt;/MethodAPIInsert&amp;gt;&lt;br /&gt;&amp;lt;/SOAP-ENV:Body&amp;gt;&lt;br /&gt;&amp;lt;/SOAP-ENV:Envelope&amp;gt;&lt;/p&gt;
&lt;p&gt;So clearly, something is messed up with the input array elements. I&amp;#39;m using PHP&amp;#39;s Nusoap library and it might be handling the request data improperly.Could you please provide and example of a property formatted SOAP envelope for creating a Customer ( or any request that uses sub arrrays ).&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item><item><title>Re: MethodAPIInsert error with input field array</title><link>http://forums.method.me/cs/forums/thread/1239.aspx</link><pubDate>Tue, 25 Aug 2009 13:14:50 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:1239</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/1239.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=1239</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Paul,&lt;/p&gt;
&lt;p&gt;We&amp;#39;re still looking into this. We are able to duplicate your issue where the array values are not being passed to the server. &lt;/p&gt;
&lt;p&gt;I&amp;#39;ll give you an update by the end of the day on our progress.&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;</description></item><item><title>Re: MethodAPIInsert error with input field array</title><link>http://forums.method.me/cs/forums/thread/1226.aspx</link><pubDate>Mon, 24 Aug 2009 17:39:08 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:1226</guid><dc:creator>paul</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/1226.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=1226</wfw:commentRss><description>&lt;p&gt;Paul.&lt;/p&gt;
&lt;p&gt;Thanks for the response. I think I see what youre saying, but I dont know if it applies here. PHP arrays natively assign indexing without construction arguments (i.e. default sizing), so when I say&lt;/p&gt;
&lt;p&gt;$fieldArray = array(&amp;#39;Name&amp;#39;);&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve just created an arrray with one element indexed at position 0. So &lt;/p&gt;
&lt;p&gt;echo $fieldArray[0];&lt;/p&gt;
&lt;p&gt;would print out &amp;#39;Name&amp;#39;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve&amp;nbsp; worked with other less dynamic languages where going off the end of an array can be quite problematic, but PHP is pretty flexible with such things.&lt;/p&gt;
&lt;p&gt;Also, in addition I tried using PHPs associative array function with indexing manually forced in just to make sure I wasnt overlooking something.&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;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;#39;arrInsertFieldsArray&amp;#39; =&amp;gt; array( &amp;#39;0&amp;#39; =&amp;gt; &amp;#39;Name&amp;#39;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;#39;arrInsertValueArray&amp;#39; =&amp;gt; array( &amp;#39;0&amp;#39; =&amp;gt; &amp;#39;Frank the Tank&amp;#39;),&lt;/p&gt;
&lt;p&gt;Which is roughly equivalent to :&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;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;#39;arrInsertFieldsArray&amp;#39; =&amp;gt; array(&amp;#39;Name&amp;#39;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;#39;arrInsertValueArray&amp;#39; =&amp;gt; array(&amp;#39;Frank the Tank&amp;#39;),&lt;/p&gt;
&lt;p&gt;But I was just trying to experiment with your suggestion. But alas, I&amp;#39;m still seeing the same error. &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks for your time,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Paul&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: MethodAPIInsert error with input field array</title><link>http://forums.method.me/cs/forums/thread/1223.aspx</link><pubDate>Mon, 24 Aug 2009 16:37:41 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:1223</guid><dc:creator>Method_Paul</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/1223.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=1223</wfw:commentRss><description>&lt;p&gt;Paul - before I get the dev team to look into this, can you just verify one thing for me?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve seen this message before, and I think every time I&amp;#39;ve seen it, the reason was that the last index in the array was not used.&lt;/p&gt;
&lt;p&gt;For example, the array was a 0-based index, and was defined as myarray(10)&amp;nbsp; when there are 10 values you want to pass, instead of myarray(10-1) to account for the 0 based index.&amp;nbsp; In other words, if you are passing 10 values, myarray should be myarray(9).&lt;/p&gt;
&lt;p&gt;That&amp;#39;s my hunch.&amp;nbsp; If I&amp;#39;m wrong, let me know and we&amp;#39;ll dive deeper.&lt;/p&gt;
&lt;p&gt;And yes, I&amp;#39;m sure the PHP community would LOVE to get a couple samples up here. It would not be the first time someone has asked for it.&amp;nbsp;&amp;nbsp; :)&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;</description></item><item><title>Re: MethodAPIInsert error with input field array</title><link>http://forums.method.me/cs/forums/thread/1222.aspx</link><pubDate>Mon, 24 Aug 2009 16:24:20 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:1222</guid><dc:creator>paul</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/1222.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=1222</wfw:commentRss><description>&lt;p&gt;Paul,&lt;/p&gt;
&lt;p&gt;Thanks for your quick response. So far, I&amp;#39;m finding the API
pretty nice to work with, but I haven&amp;#39;t quite gotten my customer insert
test to work yet. Here&amp;#39;s a block of my code in PHP. Please note that I
noticed all of your code samples were in VB and ASP.NET, so once my project
is complete, I&amp;#39;d be glad to post my code so other PHP developers can
reuse some snippets.&lt;/p&gt;
&lt;p&gt;Does everything look in order?&lt;/p&gt;
&lt;p&gt;&amp;lt;?php &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//@TODO : Add in SSL encryption componenet, currently just communicating over unsecure HTTP&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //use the nusoap library&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; require_once(&amp;#39;lib/nusoap.php&amp;#39;); &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//define the SOAP Client and point to the SOAP Server &lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$client = new soapclient(&amp;#39;http://www.methodintegration.com/MethodAPI/service.asmx?wsdl&amp;#39;,true); &amp;nbsp;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$array = array( &amp;#39;strCompanyAccount&amp;#39; =&amp;gt; &amp;#39;MYCOMPANY&amp;#39;,&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;#39;strLogin&amp;#39; =&amp;gt; &amp;#39;MYNAME&amp;#39;,&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;#39;strPassword&amp;#39;&amp;nbsp; =&amp;gt; &amp;#39;MYPASSWORD&amp;#39;,&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;#39;strTable&amp;#39; =&amp;gt; &amp;#39;Customer&amp;#39;,&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;#39;arrInsertFieldsArray&amp;#39; =&amp;gt; array(&amp;#39;Name&amp;#39;),&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;#39;arrInsertValueArray&amp;#39; =&amp;gt; array(&amp;#39;Frank The Tank&amp;#39;),&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;#39;intResponseRecordID&amp;#39;&amp;nbsp; =&amp;gt; $id,&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ); &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;print_r( $client-&amp;gt;call(&amp;#39;MethodAPIInsert&amp;#39;, $array));&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;echo &amp;#39;Response code : &amp;#39;.$id;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//kill the client&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;unset($client);&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Framework for the call based upon this element from the WSDL&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;s:element minOccurs=&amp;quot;0&amp;quot; maxOccurs=&amp;quot;1&amp;quot; name=&amp;quot;strCompanyAccount&amp;quot; type=&amp;quot;s:string&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;s:element minOccurs=&amp;quot;0&amp;quot; maxOccurs=&amp;quot;1&amp;quot; name=&amp;quot;strLogin&amp;quot; type=&amp;quot;s:string&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;s:element minOccurs=&amp;quot;0&amp;quot; maxOccurs=&amp;quot;1&amp;quot; name=&amp;quot;strPassword&amp;quot; type=&amp;quot;s:string&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;s:element minOccurs=&amp;quot;0&amp;quot; maxOccurs=&amp;quot;1&amp;quot; name=&amp;quot;strTable&amp;quot; type=&amp;quot;s:string&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;s:element minOccurs=&amp;quot;0&amp;quot; maxOccurs=&amp;quot;1&amp;quot; name=&amp;quot;arrInsertFieldsArray&amp;quot; type=&amp;quot;tns:ArrayOfString&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;s:element minOccurs=&amp;quot;0&amp;quot; maxOccurs=&amp;quot;1&amp;quot; name=&amp;quot;arrInsertValueArray&amp;quot; type=&amp;quot;tns:ArrayOfString&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;s:element minOccurs=&amp;quot;0&amp;quot; maxOccurs=&amp;quot;1&amp;quot; name=&amp;quot;intResponseRecordID&amp;quot; type=&amp;quot;s:string&amp;quot;/&amp;gt;&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;?&amp;gt;&lt;/p&gt;
&lt;p&gt;When I run this test insert, I&amp;#39;m still getting this response:&lt;/p&gt;
&lt;p&gt;Array&lt;br /&gt;(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [MethodAPIInsertResult] =&amp;gt; A blank field name was entered in the arrInsertFieldArray. Please verify there are no empty items in the arrInsertFieldArray.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [intResponseRecordID] =&amp;gt; &lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks for your time!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: MethodAPIInsert error with input field array</title><link>http://forums.method.me/cs/forums/thread/1213.aspx</link><pubDate>Sat, 22 Aug 2009 01:39:44 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:1213</guid><dc:creator>Method_Paul</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/1213.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=1213</wfw:commentRss><description>&lt;p&gt;Paul - the typo appears to be in the response message, rather than the parameter, so the API docs are correct.&amp;nbsp; It is arrInsertFieldsArray, not arrInsertFieldArray.&amp;nbsp; I&amp;#39;ll forward your findings on - thank you.&lt;/p&gt;
&lt;p&gt;In terms of the Customer, yes, the only required field is Name.&amp;nbsp; You are absolutely correct.&amp;nbsp; Seems like you are getting the hang of it pretty quickly.&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll find the API is as simple as it seems.&amp;nbsp; Really, all you are doing is formatting SQL insert, update and query statements using the web service calls.&lt;/p&gt;
&lt;p&gt;Moving this thread to the API forum, since there is a separate forum for API questions.&lt;/p&gt;
&lt;p&gt;HTH&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>MethodAPIInsert error with input field array</title><link>http://forums.method.me/cs/forums/thread/1212.aspx</link><pubDate>Sat, 22 Aug 2009 00:55:28 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:1212</guid><dc:creator>paul</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/1212.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=1212</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m currently working on using the API to create some new customers and I&amp;#39;m getting a strange error message. It reads (PHP syntax):&lt;/p&gt;
&lt;p&gt;[MethodAPIInsertResult] =&amp;gt; A blank field name was entered in the arrInsertFieldArray. Please verify there are no empty items in the arrInsertFieldArray.&lt;/p&gt;
&lt;p&gt;In reading the API version 1.1 document it reads that there should be an array named &amp;#39;arrInsertFieldsArray&amp;#39; for passing in new data. I&amp;#39;m just wondering if the &amp;#39;s&amp;#39; after the word Field is a type-o in the API document or if the error message returned from the is wrong.&lt;/p&gt;
&lt;p&gt;Secondly, I want to make sure I&amp;#39;m reading the API response properly regarding what object type I&amp;#39;m trying to create. I called the API to see read up on the Customer object.&lt;/p&gt;
&lt;p&gt;I.e.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [MethodAPIFieldListResult] =&amp;gt; Success&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [xmlReturned] =&amp;gt; &amp;lt;MethodIntegration Table=&amp;#39;Customer&amp;#39;&amp;gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;And this was the only element that had a required tag set to true.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;lt;Record&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SupportsAdd&amp;gt;true&amp;lt;/SupportsAdd&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;SupportsEdit&amp;gt;true&amp;lt;/SupportsEdit&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;IsRequired&amp;gt;true&amp;lt;/IsRequired&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;FieldName&amp;gt;Name&amp;lt;/FieldName&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;MaxSize&amp;gt;41&amp;lt;/MaxSize&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DataType&amp;gt;Text&amp;lt;/DataType&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/Record&amp;gt;&lt;/p&gt;
&lt;p&gt;So can I conclude, that I can add a customer via the API supplying as little information as a name?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>