<?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: MethodAPISelect_XMLV2 where clause</title><link>http://forums.method.me/cs/forums/thread/11418.aspx</link><pubDate>Mon, 19 Mar 2012 12:41:46 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:11418</guid><dc:creator>Method_Paul</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/11418.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=11418</wfw:commentRss><description>&lt;p&gt;Thanks viret576 for sharing.&lt;/p&gt;
&lt;p&gt;To anyone else reading this, it does depend on what technology you are using whether you need to URL encode or not. &amp;nbsp;For example, if you are using .NET and adding a web reference, the URL encoding is automatically handled for you. &amp;nbsp; But if you are doing a raw HTTP Post (which the Method API supports), then you&amp;#39;d of course need to do URL encoding.&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;</description></item><item><title>Re: MethodAPISelect_XMLV2 where clause</title><link>http://forums.method.me/cs/forums/thread/11417.aspx</link><pubDate>Mon, 19 Mar 2012 08:30:47 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:11417</guid><dc:creator>Bob Stein</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/11417.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=11417</wfw:commentRss><description>&lt;p&gt;Good show.&amp;nbsp; And good clarification, Paul.&amp;nbsp; When using MethodAPI via POST, I pass the values on the right sides of &amp;#39;=&amp;#39; signs through the PHP function urlencode().&lt;/p&gt;
&lt;p&gt;Slightly off-topic, don&amp;#39;t forget to prefix quotes with slashes if comparing arbitrary strings.&amp;nbsp; I&amp;#39;m guessing that applies to .NET or any language.&lt;/p&gt;</description></item><item><title>Re: MethodAPISelect_XMLV2 where clause</title><link>http://forums.method.me/cs/forums/thread/11389.aspx</link><pubDate>Fri, 16 Mar 2012 17:48:44 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:11389</guid><dc:creator>viret56</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/11389.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=11389</wfw:commentRss><description>&lt;p&gt;Now I realize what is happening.&amp;nbsp; The &amp;#39;%&amp;#39; followed by numbers is being intrepreted as a URL encoded entity.&amp;nbsp; I need to URL encode the &amp;#39;%&amp;#39; with &amp;#39;%25&amp;#39;.&amp;nbsp; Now I am retreiving what I expected.&lt;/p&gt;</description></item><item><title>Re: MethodAPISelect_XMLV2 where clause</title><link>http://forums.method.me/cs/forums/thread/11388.aspx</link><pubDate>Fri, 16 Mar 2012 17:25:13 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:11388</guid><dc:creator>viret56</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/11388.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=11388</wfw:commentRss><description>&lt;p&gt;I think I have answered my own question.&amp;nbsp; When I hard code &amp;#39;%&amp;#39; into the where clause, I get no data.&amp;nbsp; If I include &amp;#39;%&amp;#39; as part of the search parameter typed into the form, I get data.&lt;/p&gt;
&lt;p&gt;I am not sure why there is a difference in the results, but at least I can move forward.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>MethodAPISelect_XMLV2 where clause</title><link>http://forums.method.me/cs/forums/thread/11387.aspx</link><pubDate>Fri, 16 Mar 2012 17:19:17 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:11387</guid><dc:creator>viret56</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/11387.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=11387</wfw:commentRss><description>&lt;p&gt;I am using PHP CURL to request data using MethodAPISelect_XMLV2.&amp;nbsp; I am making successful requests until I try using LIKE in the where clause.&amp;nbsp; For example, if I use&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strWhereClause=RefNumber = &amp;#39;123&amp;#39;&lt;/p&gt;
&lt;p&gt;data is retrieved.&lt;/p&gt;
&lt;p&gt;If, however, I use&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strWhereClause=RefNumber like &amp;#39;%123%&amp;#39;&lt;/p&gt;
&lt;p&gt;no data is retrieved (and no errors either).&lt;/p&gt;
&lt;p&gt;Is it possible to make MethodAPISelect_XMLV2 calls using LIKE in the where clause?&amp;nbsp; If so, why is the syntax I am using not working?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>