Send a custom header of soap envelope using jQuery Ajax

后端 未结 2 1675
独厮守ぢ
独厮守ぢ 2021-01-14 06:54

I am trying to call an asmx service using jQuery Ajax.

POST /YderWS.asmx HTTP/1.1
Host: localhost
Content-Type: text/         


        
2条回答
  •  南笙
    南笙 (楼主)
    2021-01-14 07:23

    Seems like you missed to add these:

    contentType: 'text/xml; charset=utf-8',
    dataType: 'xml'
    

    After adding these 2 lines it works fine for me debugging it with Selenium.

提交回复
热议问题