Javascript-форум (https://javascript.ru/forum/)
-   Общие вопросы Javascript (https://javascript.ru/forum/misc/)
-   -   Помогите с XML API POST (https://javascript.ru/forum/misc/74565-pomogite-s-xml-api-post.html)

drip 21.07.2018 13:59

Помогите с XML API POST
 
Всем привет нужна помощь!
Вот есть api https://www.plati.market/partners/?show=xml&f=3
пытаюсь сделать xml запрос но ничего не выходит.
$.ajax({
    url: "http://plati.io/xml/goods_info.asp",
    data: "<digiseller.request> <guid_agent></guid_agent> <lang>ru-RU</lang> <id_good></id_good> </digiseller.request>", 
    type: 'POST',
    contentType: "text/xml",
    dataType: "text",
    success : parse,
    error : function (xhr, ajaxOptions, thrownError){  
        console.log(xhr.status);          
        console.log(thrownError);
    } 
});

На это получаю просто белую страницу!
Желательно что бы он только выводил price_goods\wmr цена в WMR в том месте где будет стоять этот код! Могу отблагодарить $!


Часовой пояс GMT +3, время: 21:15.