0
저는 C#으로 작성한 간단한 웹 서비스를 가지고 있습니다. 2 개의 숫자 만 받아서 합계를줍니다. 브라우저에서 이것을 테스트 할 때 완벽하게 작동하지만, 이것을 가져 오면 SOAPUI로 서비스하고 나에게 다음과 같은 오류 제공을 테스트하려고 : 문서는 http://www.w3.org/2003/05/soap-envelope @ 봉투되지 않습니다 : : 오류 :SOAPUI - 문서가 봉투가 아닙니다.
라인 -1 문서 요소 불일치이 무엇입니까 http://www.w3.org/1999/xhtml
@ HTML을 얻었다 왼쪽 창 (Request)에 나타납니다.
<?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>
<Add xmlns="http://tempuri.org/">
<x>1</x>
<y>1</y>
</Add>
</soap:Body>
</soap:Envelope>
이 오른쪽 창 (대응)에 표시되는 내용입니다 :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>IIS7</title>
<style type="text/css">
<!--body {
color:#000000;
background-color:#B3B3B3;
margin:0;
}
#container {
margin-left:auto;
margin-right:auto;
text-align:center;
}
a img {
border:none;
}-->
</style>
</head>
<body>
<div id="container">
<a href="http://go.microsoft.com/fwlink/?linkid=66138&clcid=0x409">
<img src="welcome.png" alt="IIS7" width="571" height="411"/>
</a>
</div>
</body>
</html>
서비스가 html 응답을 반환하는 것처럼 보입니다. 정확한 엔드 포인트를 가지고 있습니까? –
브라우저에서 어떻게 테스트 했습니까? –