<?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 E_WC_20 The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:name' element is invalid in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-E-WC-20-The-AnetApi-xml-v1-schema-AnetApiSchema-xsd-name/m-p/64040#M38037</link>
    <description>&lt;P&gt;I am trying to create a JavaScript call using the instructions following the API documentation at&amp;nbsp;&lt;A href="https://developer.authorize.net/api/reference/features/acceptjs.html#Integrating_the_JavaScript_Library_into_Your_Page" target="_blank"&gt;https://developer.authorize.net/api/reference/features/acceptjs.html#Integrating_the_JavaScript_Library_into_Your_Page&lt;/A&gt;. I created sandbox account and obtained my public client key from&amp;nbsp;&lt;SPAN&gt;Account &amp;gt; Settings &amp;gt; Security Settings &amp;gt; General Security Settings &amp;gt; Manage Public Client Key.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My POST body from the Accept.dispatchData() method is:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;{  
   "securePaymentContainerRequest":{  
      "merchantAuthentication":{  
         "name":"2b427vXXXX",
         "clientKey":"79kvzcqrqRN6AHycs2D937d5GSp33Baaw9J8NB6U882H6Z49nADkXXXXXXXXXXXX"
      },
      "data":{  
         "type":"TOKEN",
         "id":"83c30d4d-b45c-5372-84e3-863e2a2255d8",
         "token":{  
            "cardNumber":"4111111111111111",
            "expirationDate":"0222"
         }
      }
   }
}&lt;/PRE&gt;&lt;P&gt;However I get the error E_WC_20&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:name' element is invalid - The value &amp;amp;#39;9f22aLcpsP43kK43ykPWSEsGEUh8n7TXhZEVZz55a8S47J9xZ26EXXXXXXXXXXXX&amp;amp;#39; is invalid according to its datatype 'String' - The actual length is greater than the MaxLength value."&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I know the credentials are correct because when I send that body to&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://apitest.authorize.net/xml/v1/request.api" target="_blank"&gt;https://apitest.authorize.net/xml/v1/request.api&lt;/A&gt; using Postman I get a success message.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am not using the correct key or not sending the clientKey correctly? authData.clientKey wants a 36 character string, but my public client key is 64.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 06 Aug 2018 16:23:07 GMT</pubDate>
    <dc:creator>mchaffins7</dc:creator>
    <dc:date>2018-08-06T16:23:07Z</dc:date>
    <item>
      <title>Error E_WC_20 The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:name' element is invalid</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-E-WC-20-The-AnetApi-xml-v1-schema-AnetApiSchema-xsd-name/m-p/64040#M38037</link>
      <description>&lt;P&gt;I am trying to create a JavaScript call using the instructions following the API documentation at&amp;nbsp;&lt;A href="https://developer.authorize.net/api/reference/features/acceptjs.html#Integrating_the_JavaScript_Library_into_Your_Page" target="_blank"&gt;https://developer.authorize.net/api/reference/features/acceptjs.html#Integrating_the_JavaScript_Library_into_Your_Page&lt;/A&gt;. I created sandbox account and obtained my public client key from&amp;nbsp;&lt;SPAN&gt;Account &amp;gt; Settings &amp;gt; Security Settings &amp;gt; General Security Settings &amp;gt; Manage Public Client Key.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My POST body from the Accept.dispatchData() method is:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;{  
   "securePaymentContainerRequest":{  
      "merchantAuthentication":{  
         "name":"2b427vXXXX",
         "clientKey":"79kvzcqrqRN6AHycs2D937d5GSp33Baaw9J8NB6U882H6Z49nADkXXXXXXXXXXXX"
      },
      "data":{  
         "type":"TOKEN",
         "id":"83c30d4d-b45c-5372-84e3-863e2a2255d8",
         "token":{  
            "cardNumber":"4111111111111111",
            "expirationDate":"0222"
         }
      }
   }
}&lt;/PRE&gt;&lt;P&gt;However I get the error E_WC_20&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:name' element is invalid - The value &amp;amp;#39;9f22aLcpsP43kK43ykPWSEsGEUh8n7TXhZEVZz55a8S47J9xZ26EXXXXXXXXXXXX&amp;amp;#39; is invalid according to its datatype 'String' - The actual length is greater than the MaxLength value."&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I know the credentials are correct because when I send that body to&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://apitest.authorize.net/xml/v1/request.api" target="_blank"&gt;https://apitest.authorize.net/xml/v1/request.api&lt;/A&gt; using Postman I get a success message.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am not using the correct key or not sending the clientKey correctly? authData.clientKey wants a 36 character string, but my public client key is 64.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Aug 2018 16:23:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Error-E-WC-20-The-AnetApi-xml-v1-schema-AnetApiSchema-xsd-name/m-p/64040#M38037</guid>
      <dc:creator>mchaffins7</dc:creator>
      <dc:date>2018-08-06T16:23:07Z</dc:date>
    </item>
  </channel>
</rss>

