Reply
Member
Posts: 4
Registered: ‎12-24-2012
Accepted Solution

ARB - error code E00045

I keep getting the error: ErrorE00045The root node does not reference a valid XML namespace.  I am developing in Cold Fusion . I have read that this is most likely do the the "xmlns", that it may not even be needed, but I tried it without it and still got the error.  Perhaps it is my XML?

 

Here is my XML, is it correct?

<?xml version="1.0" encoding="utf-8"?>
<ARBCreateSubscriptionRequest xmlns="https://api.authorize.net/xml/v1/schema/AnetApiSchema.xsd">
<merchantAuthentication>
<name>#x_login#</name>
<transactionKey>#x_tran_key#</transactionKey>
</merchantAuthentication>
<subscription>
<name>CarBIDium.com Auction Listing</name>
<paymentSchedule>
<interval>
<length>1</length>
<unit>months</unit>
</interval>
<startDate>#dateformat(startdate, "yyyy-mm-dd")#</startDate>
<totalOccurrences>9999</totalOccurrences>
</paymentSchedule>
<amount>#x_amount#</amount>
<payment>
<creditCard>
<cardNumber>#x_card_num#</cardNumber>
<expirationDate>#x_exp_date#</expirationDate>
<cardcode>#trim(x_card_code)#</cardcode>
</creditCard>
</payment>
<billTo>
<firstName>#x_first_name#</firstName>
<lastName>#x_last_name#</lastName>
<address>#x_address#</address>
<city>#x_city#</city>
<state>#x_state#</state>
<zip>#x_zip#</zip>
</billTo>
</subscription>

 

Thanks!

 

Brett/

Brett Cohen
Kingpin
http://www.carbidium.com

Accepted Solutions
Solution
Accepted by topic author carbidium80
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: ARB - error code E00045

I just try it. And don't know why, but it only work if it is

AnetApi/xml/v1/schema/AnetApiSchema.xsd

and E00045 when

https://api.authorize.net/xml/v1/schema/AnetApiSchema.xsd

View solution in original post


All Replies
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: ARB - error code E00045

Did you miss the

</ARBCreateSubscriptionRequest>

at the end?

Member
Posts: 4
Registered: ‎12-24-2012

Re: ARB - error code E00045

Good eyes Raynor, but just a copy and paste mistake on my part. 

Brett Cohen
Kingpin
http://www.carbidium.com
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: ARB - error code E00045

In the example they have

<ARBCreateSubscriptionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">

 

Member
Posts: 4
Registered: ‎12-24-2012

Re: ARB - error code E00045

Good eyes again, but with just using that portion of the URL it does not connect at all to their server.  The full URL has to be implemented.  It is bad documentation in their example on their part as the XML Schema in the rest of the documentation has the full URL.

Brett Cohen
Kingpin
http://www.carbidium.com
Solution
Accepted by topic author carbidium80
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: ARB - error code E00045

I just try it. And don't know why, but it only work if it is

AnetApi/xml/v1/schema/AnetApiSchema.xsd

and E00045 when

https://api.authorize.net/xml/v1/schema/AnetApiSchema.xsd

Member
Posts: 4
Registered: ‎12-24-2012

Re: ARB - error code E00045

Thank you Raynor! That did it. 

Brett Cohen
Kingpin
http://www.carbidium.com