0
아무도 도와 줄 수 있습니까? 내 웹 서비스에서 오류가 발생했습니다.웹 서버에 접속했을 때 500 내부 서버 오류가 발생했습니다.
500 내부 서버 오류
and
304
이 나에게 XML 데이터를 반환합니다 Modified`하지 않습니다. 요청한 데이터의 본문을 가져올 수 없습니다.
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");
});
도메인 간 요청처럼 보입니다. 이런 경우에'jsonp'를 사용해야 할 수도 있습니다. –
오류 500이 서버 쪽에서 왔고 JavaScript 코드로 아무 것도 할 수 없습니다. –
글쎄, 웹 서비스에 충돌했다면 어떻게 될까? – KooiInc