0

誰でも私を助けることができますか?Web サービスでエラーが発生しています。

500 内部サーバー エラーand304 変更されていません`

これにより、XML データが返されます。要求されたデータの本文を取得できません。

 var soapMessage ='<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body>    <HelloWorld xmlns="http://5.79.57.16:8095/" />  </soap:Body> </soap:Envelope>' ;

$j.ajax({
        url: 'http://www.lsbo.co.uk:8095/Service1.asmx/HelloWorld',
        type: "POST",
        data: soapMessage,
        dataType: "xml",
        contentType: "text/xml; charset=utf-8",
        statusCode: {
            200: function () {
                if (304 == jqxhr.status)
                    alert("not modified"); // does not fire
            }
        },
        error: function (responseData) {
            alert("Error:  " + jQuery.parseXML(responseData));
        },
    }).done(function (data) {
        alert("Hye Successfull");
    });
4

1 に答える 1