<?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: Serious confirmed bug in dotnet sdk (code replicates bug) in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Serious-confirmed-bug-in-dotnet-sdk-code-replicates-bug/m-p/14320#M8434</link>
    <description>&lt;P&gt;Hi krc,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the heads up. I'm sending your post on to the C# developers so that they can have a look and see what needs to be done here. Appreciate the feedback!&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>Fri, 08 Jul 2011 22:55:13 GMT</pubDate>
    <dc:creator>Michelle</dc:creator>
    <dc:date>2011-07-08T22:55:13Z</dc:date>
    <item>
      <title>Serious confirmed bug in dotnet sdk (code replicates bug)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Serious-confirmed-bug-in-dotnet-sdk-code-replicates-bug/m-p/14240#M8399</link>
      <description>&lt;P&gt;Using anet_dotnet_sdk-1.5.0? in C# VS 2008 Pro,&lt;/P&gt;&lt;P&gt;all sources loaded into solutionusing the Transaction Details API&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Modified the QuickStart SampleReporting application as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;var gate = new ReportingGateway("myid", "mykey", ServiceMode.Live);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;DateTime to = DateTime.Today; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;DateTime from = DateTime.Today.AddDays(-7); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;var transactions = gate.GetTransactionList(from, to);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;foreach (var trans in transactions) { &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;var detail = gate.GetTransactionDetails(trans.TransactionID);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;etc﻿&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What you will find is that no descriptions or line items are returned.&lt;/P&gt;&lt;P&gt;Drilling down into the code, it's not easy to get at the raw XML response,&lt;/P&gt;&lt;P&gt;which is how your APOI docs are presented.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand, the following Python code does return the raw XML&lt;/P&gt;&lt;P&gt;which contains descriptions and line items.&lt;/P&gt;&lt;P&gt;I compared transaction details, trans_id by trans_id in both systems.&lt;/P&gt;&lt;P&gt;(sorry about the indentation, the original indentation apparently can't be replicated here)﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; for transaction_id in transaction_id_list:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;request_xml = \&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;"""&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;lt;getTransactionDetailsRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;merchantAuthentication&amp;gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;name&amp;gt;""" + myAPILogin + """&amp;lt;/name&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;transactionKey&amp;gt;""" + myTransactionKey + """&amp;lt;/transactionKey&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/merchantAuthentication&amp;gt;&amp;nbsp; &amp;nbsp; &amp;lt;transId&amp;gt;""" + str(transaction_id) + """&amp;lt;/transId&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;lt;/getTransactionDetailsRequest&amp;gt;"""&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;request = urllib2.Request(&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Authorize_Request_URL, request_xml,&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {'Content-Type': 'text/xml'}&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;response = urllib2.urlopen(request)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; except urllib2.URLError, err:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print(err.reason)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;response_etree_root = objectify.parse(response).getroot()&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (not (response_etree_root.messages.resultCode == 'Ok')):&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;errmsg = "\n".join(list(response_etree_root.messages.message.itertext()))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; # raise an error w/ errmsg&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print ETree.tostring(response_etree_root, pretty_print=True)﻿&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw where a poster asked what's the sense in having an SDK that doesn't work,&lt;/P&gt;&lt;P&gt;and the response was probably correct...essentially pilot error.&lt;/P&gt;&lt;P&gt;But I think it would be fair to pose the same question with regard to the bug documented&lt;/P&gt;&lt;P&gt;above. What's the sense in publishing an SDK with such a serious bug?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2011 14:17:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Serious-confirmed-bug-in-dotnet-sdk-code-replicates-bug/m-p/14240#M8399</guid>
      <dc:creator>krc</dc:creator>
      <dc:date>2011-07-07T14:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Serious confirmed bug in dotnet sdk (code replicates bug)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Serious-confirmed-bug-in-dotnet-sdk-code-replicates-bug/m-p/14320#M8434</link>
      <description>&lt;P&gt;Hi krc,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the heads up. I'm sending your post on to the C# developers so that they can have a look and see what needs to be done here. Appreciate the feedback!&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>Fri, 08 Jul 2011 22:55:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Serious-confirmed-bug-in-dotnet-sdk-code-replicates-bug/m-p/14320#M8434</guid>
      <dc:creator>Michelle</dc:creator>
      <dc:date>2011-07-08T22:55:13Z</dc:date>
    </item>
  </channel>
</rss>

