<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can't read the status from ARBGetSubscriptionStatusRequest in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Cann-t-read-the-status-from-ARBGetSubscriptionStatusRequest/m-p/13332#M7994</link>
    <description>&lt;P&gt;Hey guys, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SDK needs to be updated to look for "Status" not "status." I've sent this on to our developers. Thanks for the heads up!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;
&lt;P&gt;Developer Community Manager&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2011 20:39:08 GMT</pubDate>
    <dc:creator>Michelle</dc:creator>
    <dc:date>2011-06-02T20:39:08Z</dc:date>
    <item>
      <title>Cann't read the status from ARBGetSubscriptionStatusRequest</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Cann-t-read-the-status-from-ARBGetSubscriptionStatusRequest/m-p/13188#M7933</link>
      <description>&lt;P&gt;Hi. guys.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I download the ARB simple code on C# and modified it to fit my asp.net website.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only problem is I cann't get the subscription status.&amp;nbsp; the program always return a "active" status even the subcription is canceled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess the problem is cause by the code marked by red.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cann't use " string&amp;nbsp;SubStatus = theResponse.Status;" as ARB simple code to get the status. theResponse only has status option, there isn't a "Status".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I modify the code to" string SubStatus = theResponse.status.ToString();" and then, subStatus always show "active".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to figure out where is problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using MySql.Data.MySqlClient;
using System.Xml;
using System.Xml.Serialization;
using System.Net;
using System.Text;
using System.IO;
&lt;FONT color="#ff0000"&gt;using AuthorizeNet;
using AuthorizeNet.Helpers;
using AuthorizeNet.APICore;&lt;/FONT&gt;


private static bool GetStatusSubscription()
    {
        bool bResult = true;

        //Console.WriteLine("\r\nGet subscription status");

        // This is the API interface object
        ARBGetSubscriptionStatusRequest statusSubscriptionRequest = new ARBGetSubscriptionStatusRequest();

        // Populate the subscription request with test data
        PopulateSubscription(statusSubscriptionRequest);

        // The response type will normally be ARBGetSubscriptionStatusRequest.
        // However, in the case of an error such as an XML parsing error, the response
        //   type will be ErrorResponse.

        object response = null;
        XmlDocument xmldoc = null;
        bResult = PostRequest(statusSubscriptionRequest, out xmldoc);

        if (bResult) bResult = ProcessXmlResponse(xmldoc, out response);

        if (bResult) ProcessResponse(response);
        
       &lt;FONT color="#ff0000"&gt; ARBGetSubscriptionStatusResponse theResponse = (ARBGetSubscriptionStatusResponse)response;

        SubStatus = theResponse.status.ToString();

&lt;/FONT&gt;        if (!bResult)
        {
            int x = 90;//Console.WriteLine("An unexpected error occurred processing this request.");
        }

        return bResult;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2011 23:21:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Cann-t-read-the-status-from-ARBGetSubscriptionStatusRequest/m-p/13188#M7933</guid>
      <dc:creator>dovefay</dc:creator>
      <dc:date>2011-05-26T23:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can't read the status from ARBGetSubscriptionStatusRequest</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Cann-t-read-the-status-from-ARBGetSubscriptionStatusRequest/m-p/13194#M7936</link>
      <description>&lt;P&gt;I was having the same problem, but I was using PHP and not C#. What fixed my solution was that I was looking for the status as well, but "status" is case sensitive. Instead of "status" it should be "Status". That worked for me.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2011 00:00:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Cann-t-read-the-status-from-ARBGetSubscriptionStatusRequest/m-p/13194#M7936</guid>
      <dc:creator>three3</dc:creator>
      <dc:date>2011-05-27T00:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can't read the status from ARBGetSubscriptionStatusRequest</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Cann-t-read-the-status-from-ARBGetSubscriptionStatusRequest/m-p/13196#M7937</link>
      <description>&lt;P&gt;No.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In C#, function "status" will come out automatic. I can't set to "Status" manually, it will generate a compile error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ARBSubscriptionStatusEnum ST = theResponse.status;&amp;nbsp; it should be "theResponse.Status", but it isn't on the way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder it is a bug from"&amp;nbsp;using&amp;nbsp;AuthorizeNet.APICore".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2011 00:41:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Cann-t-read-the-status-from-ARBGetSubscriptionStatusRequest/m-p/13196#M7937</guid>
      <dc:creator>dovefay</dc:creator>
      <dc:date>2011-05-27T00:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can't read the status from ARBGetSubscriptionStatusRequest</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Cann-t-read-the-status-from-ARBGetSubscriptionStatusRequest/m-p/13332#M7994</link>
      <description>&lt;P&gt;Hey guys, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SDK needs to be updated to look for "Status" not "status." I've sent this on to our developers. Thanks for the heads up!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;
&lt;P&gt;Developer Community Manager&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2011 20:39:08 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Cann-t-read-the-status-from-ARBGetSubscriptionStatusRequest/m-p/13332#M7994</guid>
      <dc:creator>Michelle</dc:creator>
      <dc:date>2011-06-02T20:39:08Z</dc:date>
    </item>
  </channel>
</rss>

