Reply
Member
Posts: 6
Registered: ‎07-09-2018
Accepted Solution

XML Formatting

Hi everyone,

 

I'm currently working on implementing the new Authorize.Net API in a legacy system, and have to manually generate the XML to be posted to the API.  When looking at the API reference, the request XML starts with <createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">

 

My question is whether or not the tag <?xml version="1.0" encoding="utf-8"?> is required.  I'm sending the data in a variable and not a file, so I'm not sure what the best practice is here as I'm still decently new to API work.  Thanks in advance for the help.

 

Best,

Jonathan Rasmussen.


Accepted Solutions
Highlighted
Solution
Accepted by topic author jrasmussen
‎07-12-2018 10:24 AM
Authorize.Net Expert
Posts: 44
Registered: ‎11-29-2017

Re: XML Formatting

You can get away with skipping it with Authorize.Net. But, its a good practice to send it.

View solution in original post


All Replies
Highlighted
Solution
Accepted by topic author jrasmussen
‎07-12-2018 10:24 AM
Authorize.Net Expert
Posts: 44
Registered: ‎11-29-2017

Re: XML Formatting

You can get away with skipping it with Authorize.Net. But, its a good practice to send it.

Member
Posts: 6
Registered: ‎07-09-2018

Re: XML Formatting

Thanks for letting me know.  I really appreciate it.