You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've had a "Malformed XML" response from Moneris while using the ResAddToken class and API call. Turns out, the cause of the error was because the "note" I sent to the API contained a "&" character, which should be escaped in XML by &
Since the Moneris API deals with the XML, not me, it should do the necessary escaping.
For all I know, the API could send JSON or any proprietary format that is escaped differently. The user shouldn't have to know the underlying transmission mechanism to use the API DLL.
varresAddToken=newResAddToken(tempToken,CryptType);resAddToken.SetNote(note);// I shouldn't have to espace & into & the SetNote() call should do it
...
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
I've had a "Malformed XML" response from Moneris while using the
ResAddToken
class and API call. Turns out, the cause of the error was because the "note" I sent to the API contained a "&" character, which should be escaped in XML by&
Since the Moneris API deals with the XML, not me, it should do the necessary escaping.
For all I know, the API could send JSON or any proprietary format that is escaped differently. The user shouldn't have to know the underlying transmission mechanism to use the API DLL.
Thanks.
The text was updated successfully, but these errors were encountered: