자바 스크립트에서 SOAP 클라이언트를 만들었습니다. 문제는 Chrome에서만 작동한다는 것입니다.SOAP 클라이언트는 Google 크롬에서만 작동합니다.
코드 :
OPTIONS http://mydomain.com/Service1.asmx 403 (Forbidden)
당신이 날 도와주세요 수 : 콘솔에서
$("#send").click(function (event) {
var wsUrl = "http://myip:8084/Service1.asmx";
var soapRequest =
'<?xml version="1.0" encoding="utf-8"?> \
<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> \
<GetVozilo xmlns="http://mydomain.com/apps"> \
<vin>' + $("#vin").val() + '</vin> \
</GetVozilo> \
</soap:Body> \
</soap:Envelope>';
console.log(soapRequest);
$.ajax({
type: "post",
url: wsUrl,
contentType: "text/xml",
dataType: "xml",
data: soapRequest,
success: processSuccess,
error: processError
});
});
나는이 오류가?