cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

ARBCreateSubscription fails: E00045 - The root node does not reference a valid XML namespace.

We using recommended .net library (https://github.com/AuthorizeNet/sdk-dotnet) version 1.8.1. In the sandbox everything works fine. But as soon as we switch to real account we get this error in response. I check simalar threads. There was such issue with wrong xmlns. I have xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd" as it was suggested in those threads.

 

Below is the sample request we send. Nay ideas what wrong with it? 

<?xml version="1.0" encoding="utf-16"?>
<ARBCreateSubscriptionRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<subscription>
<name>PREMIUM-SITE-1</name>
<paymentSchedule>
<interval>
<length>1</length>
<unit>months</unit>
</interval>
</paymentSchedule>
<amount>49.99</amount>
<payment>
<creditCard>
<cardNumber>6011000000000012</cardNumber>
<expirationDate>2015-12</expirationDate>
<cardCode>123</cardCode>
</creditCard>
</payment>
<billTo xsi:type="customerAddressType">
<firstName>Jacob</firstName>
<lastName>Khailo</lastName>
<company />
<address>30636 Old US 20</address>
<city>Elkhart </city>
<state>IN</state>
<zip>46514</zip>
<country />
<phoneNumber>574-575-5874</phoneNumber>
<faxNumber />
</billTo>
</subscription>
</ARBCreateSubscriptionRequest><?xml version="1.0" encoding="utf-16"?>
<ARBCreateSubscriptionRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<subscription>
<name>PREMIUM-SITE-1</name>
<paymentSchedule>
<interval>
<length>1</length>
<unit>months</unit>
</interval>
</paymentSchedule>
<amount>49.99</amount>
<payment>
<creditCard>
<cardNumber>6011000000000012</cardNumber>
<expirationDate>2015-12</expirationDate>
<cardCode>123</cardCode>
</creditCard>
</payment>
<billTo xsi:type="customerAddressType">
<firstName>John</firstName>
<lastName>Down</lastName>
<company />
<address>1 Main St</address>
<city>Elkhart </city>
<state>IN</state>
<zip>46514</zip>
<country />
<phoneNumber>800-555-5555</phoneNumber>
<faxNumber />
</billTo>
</subscription>
</ARBCreateSubscriptionRequest>

 

Thank you,

Alex

afioletov
Member
1 ACCEPTED SOLUTION

Accepted Solutions

Look at the "try it" sample on ARBCreateSubscriptionRequest

in here

http://developer.authorize.net/api/reference/

View solution in original post

RaynorC1emen7
Expert
4 REPLIES 4

Look at the "try it" sample on ARBCreateSubscriptionRequest

in here

http://developer.authorize.net/api/reference/

RaynorC1emen7
Expert

Thank you!

 

I found what was wrong..

 

@afioletov wrote:

Thank you!

 

I found what was wrong..


Care to explain what was wrong?  I am getting the same error.

I ran into the same error message using 1.8.9. When setting up a subscription I used the "customerAddressType" object when assigning to "ARBSubscriptionType.billTo" when I should have been using the "nameAndAddressType".