<?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 Error trying to build a CIM profile and payment profile in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-trying-to-build-a-CIM-profile-and-payment-profile/m-p/46749#M23632</link>
    <description>&lt;P&gt;I'm using Authorize.net's jar (provided by maven pom.xml file) and trying to make an API call to create a customer profile with a customer payment profile for a given credit card.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not directly creating the XML, I am making library calls to the JAR and then calling postTransaction. &amp;nbsp;LIke so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CustomerProfile profile = CustomerProfile.createCustomerProfile();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;profile.addShipToAddress(getShippingInfo(request));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;profile.setMerchantCustomerId(myCustomerId);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;profile.setEmail(&lt;/SPAN&gt;&lt;SPAN&gt;myEmail&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;profile.setDescription(&lt;/SPAN&gt;&lt;SPAN&gt;nameOnCard&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the XML that is produced:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;BR /&gt;&amp;lt;createCustomerProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&lt;BR /&gt;&amp;lt;merchantAuthentication&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;xxxxxxxx&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;transactionKey&amp;gt;xxxxxxxxxxxxxxxxxxxxxxx&amp;lt;/transactionKey&amp;gt;&lt;BR /&gt;&amp;lt;/merchantAuthentication&amp;gt;&lt;BR /&gt;&amp;lt;refId&amp;gt;REFID:1409590251804&amp;lt;/refId&amp;gt;&lt;BR /&gt;&amp;lt;profile&amp;gt;&lt;BR /&gt;&amp;lt;merchantCustomerId&amp;gt;&amp;lt;/merchantCustomerId&amp;gt;&lt;BR /&gt;&amp;lt;description&amp;gt;Honus Wagner profile&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;lt;email&amp;gt;honus@wagner.com&amp;lt;/email&amp;gt;&lt;BR /&gt;&amp;lt;paymentProfiles&amp;gt;&lt;BR /&gt;&amp;lt;customerType&amp;gt;individual&amp;lt;/customerType&amp;gt;&lt;BR /&gt;&amp;lt;billTo&amp;gt;&lt;BR /&gt;&amp;lt;firstName&amp;gt;Honus&amp;lt;/firstName&amp;gt;&lt;BR /&gt;&amp;lt;lastName&amp;gt;Wagner&amp;lt;/lastName&amp;gt;&lt;BR /&gt;&amp;lt;company&amp;gt;&amp;lt;/company&amp;gt;&lt;BR /&gt;&amp;lt;address&amp;gt;111 Main Street&amp;lt;/address&amp;gt;&lt;BR /&gt;&amp;lt;city&amp;gt;Detroit&amp;lt;/city&amp;gt;&lt;BR /&gt;&amp;lt;state&amp;gt;MN&amp;lt;/state&amp;gt;&lt;BR /&gt;&amp;lt;zip&amp;gt;44444&amp;lt;/zip&amp;gt;&lt;BR /&gt;&amp;lt;country&amp;gt;US&amp;lt;/country&amp;gt;&lt;BR /&gt;&amp;lt;phoneNumber&amp;gt;5555555555&amp;lt;/phoneNumber&amp;gt;&lt;BR /&gt;&amp;lt;faxNumber&amp;gt;&amp;lt;/faxNumber&amp;gt;&lt;BR /&gt;&amp;lt;/billTo&amp;gt;&lt;BR /&gt;&amp;lt;payment&amp;gt;&lt;BR /&gt;&amp;lt;creditCard&amp;gt;&lt;BR /&gt;&amp;lt;cardNumber&amp;gt;4007000000027&amp;lt;/cardNumber&amp;gt;&lt;BR /&gt;&amp;lt;expirationDate&amp;gt;0015-12&amp;lt;/expirationDate&amp;gt;&lt;BR /&gt;&amp;lt;cardCode&amp;gt;111&amp;lt;/cardCode&amp;gt;&lt;BR /&gt;&amp;lt;/creditCard&amp;gt;&lt;BR /&gt;&amp;lt;/payment&amp;gt;&lt;BR /&gt;&amp;lt;/paymentProfiles&amp;gt;&lt;BR /&gt;&amp;lt;/profile&amp;gt;&lt;BR /&gt;&amp;lt;shipTo&amp;gt;&lt;BR /&gt;&amp;lt;firstName&amp;gt;Honus&amp;lt;/firstName&amp;gt;&lt;BR /&gt;&amp;lt;lastName&amp;gt;Wagner&amp;lt;/lastName&amp;gt;&lt;BR /&gt;&amp;lt;company&amp;gt;&amp;lt;/company&amp;gt;&lt;BR /&gt;&amp;lt;address&amp;gt;111 Main Street&amp;lt;/address&amp;gt;&lt;BR /&gt;&amp;lt;city&amp;gt;Detroit&amp;lt;/city&amp;gt;&lt;BR /&gt;&amp;lt;state&amp;gt;MI&amp;lt;/state&amp;gt;&lt;BR /&gt;&amp;lt;zip&amp;gt;44444&amp;lt;/zip&amp;gt;&lt;BR /&gt;&amp;lt;country&amp;gt;US&amp;lt;/country&amp;gt;&lt;BR /&gt;&amp;lt;phoneNumber&amp;gt;5555555555&amp;lt;/phoneNumber&amp;gt;&lt;BR /&gt;&amp;lt;faxNumber&amp;gt;&amp;lt;/faxNumber&amp;gt;&lt;BR /&gt;&amp;lt;/shipTo&amp;gt;&lt;BR /&gt;&amp;lt;validationMode&amp;gt;liveMode&amp;lt;/validationMode&amp;gt;&lt;BR /&gt;&amp;lt;/createCustomerProfileRequest&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is the error I get:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;E00003:The element 'createCustomerProfileRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'shipTo' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'validationMode' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This error sounds like there isn't supposed to be a "shipTo" element but if that's true then why is there a CustomerProfile#addShipToAddress() method?&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>
    <pubDate>Mon, 01 Sep 2014 17:06:31 GMT</pubDate>
    <dc:creator>wavebiddev</dc:creator>
    <dc:date>2014-09-01T17:06:31Z</dc:date>
    <item>
      <title>Error trying to build a CIM profile and payment profile</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-trying-to-build-a-CIM-profile-and-payment-profile/m-p/46749#M23632</link>
      <description>&lt;P&gt;I'm using Authorize.net's jar (provided by maven pom.xml file) and trying to make an API call to create a customer profile with a customer payment profile for a given credit card.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not directly creating the XML, I am making library calls to the JAR and then calling postTransaction. &amp;nbsp;LIke so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CustomerProfile profile = CustomerProfile.createCustomerProfile();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;profile.addShipToAddress(getShippingInfo(request));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;profile.setMerchantCustomerId(myCustomerId);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;profile.setEmail(&lt;/SPAN&gt;&lt;SPAN&gt;myEmail&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;profile.setDescription(&lt;/SPAN&gt;&lt;SPAN&gt;nameOnCard&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the XML that is produced:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;BR /&gt;&amp;lt;createCustomerProfileRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;&lt;BR /&gt;&amp;lt;merchantAuthentication&amp;gt;&lt;BR /&gt;&amp;lt;name&amp;gt;xxxxxxxx&amp;lt;/name&amp;gt;&lt;BR /&gt;&amp;lt;transactionKey&amp;gt;xxxxxxxxxxxxxxxxxxxxxxx&amp;lt;/transactionKey&amp;gt;&lt;BR /&gt;&amp;lt;/merchantAuthentication&amp;gt;&lt;BR /&gt;&amp;lt;refId&amp;gt;REFID:1409590251804&amp;lt;/refId&amp;gt;&lt;BR /&gt;&amp;lt;profile&amp;gt;&lt;BR /&gt;&amp;lt;merchantCustomerId&amp;gt;&amp;lt;/merchantCustomerId&amp;gt;&lt;BR /&gt;&amp;lt;description&amp;gt;Honus Wagner profile&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;lt;email&amp;gt;honus@wagner.com&amp;lt;/email&amp;gt;&lt;BR /&gt;&amp;lt;paymentProfiles&amp;gt;&lt;BR /&gt;&amp;lt;customerType&amp;gt;individual&amp;lt;/customerType&amp;gt;&lt;BR /&gt;&amp;lt;billTo&amp;gt;&lt;BR /&gt;&amp;lt;firstName&amp;gt;Honus&amp;lt;/firstName&amp;gt;&lt;BR /&gt;&amp;lt;lastName&amp;gt;Wagner&amp;lt;/lastName&amp;gt;&lt;BR /&gt;&amp;lt;company&amp;gt;&amp;lt;/company&amp;gt;&lt;BR /&gt;&amp;lt;address&amp;gt;111 Main Street&amp;lt;/address&amp;gt;&lt;BR /&gt;&amp;lt;city&amp;gt;Detroit&amp;lt;/city&amp;gt;&lt;BR /&gt;&amp;lt;state&amp;gt;MN&amp;lt;/state&amp;gt;&lt;BR /&gt;&amp;lt;zip&amp;gt;44444&amp;lt;/zip&amp;gt;&lt;BR /&gt;&amp;lt;country&amp;gt;US&amp;lt;/country&amp;gt;&lt;BR /&gt;&amp;lt;phoneNumber&amp;gt;5555555555&amp;lt;/phoneNumber&amp;gt;&lt;BR /&gt;&amp;lt;faxNumber&amp;gt;&amp;lt;/faxNumber&amp;gt;&lt;BR /&gt;&amp;lt;/billTo&amp;gt;&lt;BR /&gt;&amp;lt;payment&amp;gt;&lt;BR /&gt;&amp;lt;creditCard&amp;gt;&lt;BR /&gt;&amp;lt;cardNumber&amp;gt;4007000000027&amp;lt;/cardNumber&amp;gt;&lt;BR /&gt;&amp;lt;expirationDate&amp;gt;0015-12&amp;lt;/expirationDate&amp;gt;&lt;BR /&gt;&amp;lt;cardCode&amp;gt;111&amp;lt;/cardCode&amp;gt;&lt;BR /&gt;&amp;lt;/creditCard&amp;gt;&lt;BR /&gt;&amp;lt;/payment&amp;gt;&lt;BR /&gt;&amp;lt;/paymentProfiles&amp;gt;&lt;BR /&gt;&amp;lt;/profile&amp;gt;&lt;BR /&gt;&amp;lt;shipTo&amp;gt;&lt;BR /&gt;&amp;lt;firstName&amp;gt;Honus&amp;lt;/firstName&amp;gt;&lt;BR /&gt;&amp;lt;lastName&amp;gt;Wagner&amp;lt;/lastName&amp;gt;&lt;BR /&gt;&amp;lt;company&amp;gt;&amp;lt;/company&amp;gt;&lt;BR /&gt;&amp;lt;address&amp;gt;111 Main Street&amp;lt;/address&amp;gt;&lt;BR /&gt;&amp;lt;city&amp;gt;Detroit&amp;lt;/city&amp;gt;&lt;BR /&gt;&amp;lt;state&amp;gt;MI&amp;lt;/state&amp;gt;&lt;BR /&gt;&amp;lt;zip&amp;gt;44444&amp;lt;/zip&amp;gt;&lt;BR /&gt;&amp;lt;country&amp;gt;US&amp;lt;/country&amp;gt;&lt;BR /&gt;&amp;lt;phoneNumber&amp;gt;5555555555&amp;lt;/phoneNumber&amp;gt;&lt;BR /&gt;&amp;lt;faxNumber&amp;gt;&amp;lt;/faxNumber&amp;gt;&lt;BR /&gt;&amp;lt;/shipTo&amp;gt;&lt;BR /&gt;&amp;lt;validationMode&amp;gt;liveMode&amp;lt;/validationMode&amp;gt;&lt;BR /&gt;&amp;lt;/createCustomerProfileRequest&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is the error I get:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;E00003:The element 'createCustomerProfileRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'shipTo' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'validationMode' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This error sounds like there isn't supposed to be a "shipTo" element but if that's true then why is there a CustomerProfile#addShipToAddress() method?&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>
      <pubDate>Mon, 01 Sep 2014 17:06:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-trying-to-build-a-CIM-profile-and-payment-profile/m-p/46749#M23632</guid>
      <dc:creator>wavebiddev</dc:creator>
      <dc:date>2014-09-01T17:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error trying to build a CIM profile and payment profile</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-trying-to-build-a-CIM-profile-and-payment-profile/m-p/46751#M23633</link>
      <description>&lt;P&gt;look like a bug&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AuthorizeNet/sdk-java/blob/e9a71e7c1271c8e7858471a41523a894ecfec2d7/src/main/java/net/authorize/cim/Transaction.java" target="_blank"&gt;https://github.com/AuthorizeNet/sdk-java/blob/e9a71e7c1271c8e7858471a41523a894ecfec2d7/src/main/java/net/authorize/cim/Transaction.java&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in &lt;SPAN&gt;private&lt;/SPAN&gt; &lt;SPAN&gt;void&lt;/SPAN&gt; &lt;SPAN&gt;addCustomerProfile&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;BasicXmlDocument&lt;/SPAN&gt; &lt;SPAN&gt;document&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;addAddress&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;document&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt; &lt;SPAN&gt;AuthNetField&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ELEMENT_SHIP_TO&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getFieldName&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt; &lt;SPAN&gt;this&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;customerProfile&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getShipToAddress&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt; &lt;SPAN&gt;document&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;getDocumentElement&lt;/SPAN&gt;&lt;SPAN&gt;());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;should be using the &lt;SPAN&gt;ShipToAddressList&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;as documentated in the xml doc &lt;A href="http://developer.authorize.net/api/cim/" target="_blank"&gt;http://developer.authorize.net/api/cim/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2014 17:44:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-trying-to-build-a-CIM-profile-and-payment-profile/m-p/46751#M23633</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-09-01T17:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error trying to build a CIM profile and payment profile</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-trying-to-build-a-CIM-profile-and-payment-profile/m-p/46753#M23634</link>
      <description>&lt;P&gt;Thank you for looking at this, I do appreciate it...I'm not 100% sure what you're saying. &amp;nbsp;Is there something you're saying I need to change or are you saying this is a bug in the Authorize.net jar file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2014 19:26:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-trying-to-build-a-CIM-profile-and-payment-profile/m-p/46753#M23634</guid>
      <dc:creator>wavebiddev</dc:creator>
      <dc:date>2014-09-01T19:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error trying to build a CIM profile and payment profile</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-trying-to-build-a-CIM-profile-and-payment-profile/m-p/46755#M23635</link>
      <description>&lt;P&gt;bug in the authorize.net jar file&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2014 20:29:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-trying-to-build-a-CIM-profile-and-payment-profile/m-p/46755#M23635</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-09-01T20:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error trying to build a CIM profile and payment profile</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-trying-to-build-a-CIM-profile-and-payment-profile/m-p/46757#M23636</link>
      <description>&lt;P&gt;For now - and to just keep moving forward - I just didn't add any shipTo addresses. &amp;nbsp;That seems to have got me past this hurdle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Sep 2014 03:23:05 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-trying-to-build-a-CIM-profile-and-payment-profile/m-p/46757#M23636</guid>
      <dc:creator>wavebiddev</dc:creator>
      <dc:date>2014-09-02T03:23:05Z</dc:date>
    </item>
  </channel>
</rss>

