0

I have a xml file, Please refer this link: XML

Username: admin

Password: admin

I am using Ajax jquery with Json to connect and get data from this url xml.

What the code working ? it's work when click a button (OnClientClick). It's call a fuction from ajax to code behind in c#.

function Getdata() {
  $.ajax({
    crossDomain: true,
    type: "POST",
    contentType: "application/json; charset=utf-8",
    async: false,
    url: "http://huysoi.com/data.xml",
    username: 'admin',
    password: 'admin',
    data: '',
    dataType: "jsonp",
    success: // i need to help here
    // if it's success, i want to get all data in this url XML as TEXT
    // It's mean, all data will be in TEXT
    // If yes, i can download this Text file to my PC
    // That is my idea.
 });
}

I'll try so hard to show you my idea, sorry if my question is unclear.

HaveNoDisplayName
  • 8,291
  • 106
  • 37
  • 47
huy cao
  • 28
  • 8
  • I believe this can help you http://stackoverflow.com/questions/124269/simplest-soap-example – Manwal May 27 '15 at 08:38
  • May be this can help you http://stackoverflow.com/questions/15552375/receive-xml-response-from-cross-domain-ajax-request-with-jquery – Nikunj Ratanpara May 27 '15 at 08:54

0 Answers0