<?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: createCustomerProfileRequest fails when including all of merchantCustomerId, email, and descript in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/createCustomerProfileRequest-fails-when-including-all-of/m-p/16192#M9156</link>
    <description>&lt;P&gt;Thanks, that issue was manifesting itself pretty subtly for me, and of course I didn't notice that line in the docs. I was using a Python dict, which is unordered, &amp;nbsp;to store those values before building the XML. So of course, it always worked when only one value was provided, and had a 50/50 chance of working when two values were provided (though in my initial testing it worked every time...).&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2011 14:47:32 GMT</pubDate>
    <dc:creator>clawlor</dc:creator>
    <dc:date>2011-08-16T14:47:32Z</dc:date>
    <item>
      <title>createCustomerProfileRequest fails when including all of merchantCustomerId, email, and description</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/createCustomerProfileRequest-fails-when-including-all-of/m-p/16184#M9152</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the CIM API, and having some trouble with the optional fields under the profile node of the createCustomerProfileRequest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sending the following (name and transactionKey obfuscated here):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;createCustomerProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;merchantAuthentication&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;lt;name&amp;gt;NNNNNNNN&amp;lt;/name&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;lt;transactionKey&amp;gt;MMMMMMMMMMMMMMM&amp;lt;/transactionKey&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;/merchantAuthentication&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;lt;profile&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;description&amp;gt;Just some guy&amp;lt;/description&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;merchantCustomerId&amp;gt;999&amp;lt;/merchantCustomerId&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; &amp;lt;email&amp;gt;someone@somewhere&amp;lt;/email&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;lt;/profile&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;/createCustomerProfileRequest&amp;gt;﻿&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which fails with&lt;/P&gt;&lt;P&gt;E00003﻿&lt;/P&gt;&lt;P&gt;The element 'profile' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'merchantCustomerId' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'email, paymentProfiles, shipToList' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oddly though, I only get this error when I include the 'description' field. If I just include 'merchantCustomerId', or 'merchantCustomerId' and 'email', I get success. It also works just fine if I include 'email' and 'description', but not 'merchantCustomerId'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It only fails when I include all three elements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the documentation (CIM XML Guide, last revision 5/24/2011, page 21-22), one or more of 'merchantCustomerId', 'email', and 'description' is required under 'profile'. I don't understand why it should fail if I include all three. The error message seems to indicate a bug in the XSD file (or elsewhere), since 'merchantCustomerId' is obviously allowed under 'profile'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Python 2.6.6 to communicate with the API. More specifically, I'm using a custom version of django-authorizenet (&lt;A href="https://github.com/chrislawlor/django-authorizenet" target="_blank"&gt;https://github.com/chrislawlor/django-authorizenet&lt;/A&gt;﻿), in which I'm attempting to add support for the 'email' and 'description' fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2011 13:41:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/createCustomerProfileRequest-fails-when-including-all-of/m-p/16184#M9152</guid>
      <dc:creator>clawlor</dc:creator>
      <dc:date>2011-08-16T13:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: createCustomerProfileRequest fails when including all of merchantCustomerId, email, and descript</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/createCustomerProfileRequest-fails-when-including-all-of/m-p/16186#M9153</link>
      <description>&lt;P&gt;Their sequence matter with CIM XML(bottom of page 19).&lt;/P&gt;&lt;P&gt;"All elements are case sensitive and must be submitted in the order listed here﻿."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should be in the order of&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;merchantCustomerId&lt;/FONT&gt;﻿&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;description&lt;/FONT&gt;﻿&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;email&lt;/FONT&gt;﻿&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2011 13:52:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/createCustomerProfileRequest-fails-when-including-all-of/m-p/16186#M9153</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2011-08-16T13:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: createCustomerProfileRequest fails when including all of merchantCustomerId, email, and descript</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/createCustomerProfileRequest-fails-when-including-all-of/m-p/16192#M9156</link>
      <description>&lt;P&gt;Thanks, that issue was manifesting itself pretty subtly for me, and of course I didn't notice that line in the docs. I was using a Python dict, which is unordered, &amp;nbsp;to store those values before building the XML. So of course, it always worked when only one value was provided, and had a 50/50 chance of working when two values were provided (though in my initial testing it worked every time...).&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2011 14:47:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/createCustomerProfileRequest-fails-when-including-all-of/m-p/16192#M9156</guid>
      <dc:creator>clawlor</dc:creator>
      <dc:date>2011-08-16T14:47:32Z</dc:date>
    </item>
  </channel>
</rss>

