Keane_India_Lim
14 years agoNew Contributor
There are currently 1 running soapUI MockServices
Hi,
We created a Mock service to test our application...
When we perform a GET then the Mock service works fine but if we perform a POST then we get this error
We have a ajax request like this
When we perform a POST then we get error like
for alert(xhr.status);-----------> 200
for alert(thrownError);----------> Error: Invalid XML:<html><body><p>There are currently 1 running soapUI MockServices</p><ul><li><a href="/sample?WSDL">MockService 1</a></li></ul></p></body></html>
What is the problem?
We created a Mock service to test our application...
When we perform a GET then the Mock service works fine but if we perform a POST then we get this error
<html><body><p>There are currently 1 running soapUI MockServices</p><ul><li><a href="/sample?WSDL">MockService 1</a></li></ul></p></body></html>
We have a ajax request like this
$
.ajax({
cache : false,
type : 'POST',//While GET working
async: false,
url : "http://192.168.1.198:9051/something.xml" + "?time=" + Date.now(),
data : {
key : "value"
},
dataType : "xml",
success : function(xml) {
},
error : function(xhr, ajaxOptions, thrownError) {
alert(xhr.status);
alert(thrownError);
}
});
When we perform a POST then we get error like
for alert(xhr.status);-----------> 200
for alert(thrownError);----------> Error: Invalid XML:<html><body><p>There are currently 1 running soapUI MockServices</p><ul><li><a href="/sample?WSDL">MockService 1</a></li></ul></p></body></html>
What is the problem?