For security reasons DTD is prohibited in this XML document RRS feed

  • Question

  • User-1471881183 posted

    im following https://developer.realexpayments.com/#!/ecommerce/card-storage/api link to call their API (just copy paste their code into my project and changed the merchant id, account id, secret) then, i did pass all the mandatory fields but, after 

    var response = paymentMethod.Create();

    line im receiving exception as 

    {"For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method."}
    i spoke with their support, they said its problem in my side but, i dont know what i have to change? experts please help me
    Monday, August 5, 2019 11:05 AM


  • User-1471881183 posted

    issue identified, from below i did pass wrong service url

    ServicesContainer.ConfigureService(new GatewayConfig
            MerchantId = "MerchantId",
            AccountId = "internet",
            SharedSecret = "secret",
            ServiceUrl = "https://api.sandbox.realexpayments.com/epage-remote.cgi"
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, August 5, 2019 11:22 AM