CHaefeli
11 years agoNew Contributor
SoapUI REST Mock Service with SSL
Hi
When I configure SSL support for Mock REST services and I try going to the HTTPS URL for a service that is working perfectly as normal HTTP I get the following html response:
The URL being called is:
https://localhost:8449/testrest/people
There are a number of problems with this, firstly the href is clearly wrong it should point to the context path for the service but that could be my fault, however it also refers to a WSDL and not a WADL file and secondly I don't get the same response as if I go to the unsecured URL, e.g. this response:
The URL being called is:
http://localhost:8089/testrest/people
I saw in the following post that someone else is having the same problem: viewtopic.php?f=13&t=25047
I have also tried deploying as a WAR to use tomcat which I have preconfigured for SSL however I don't get a war file, instead it puts an image, a stylesheet and a WEB-INF folder in the directory where I asked it to put the war file as though I had auto deployed, which I have not. If I deploy it directly to tomcat on the other hand I only get empty responses whatever I call.
If you could please give me some assistance with this it would be much appreciated.
When I configure SSL support for Mock REST services and I try going to the HTTPS URL for a service that is working perfectly as normal HTTP I get the following html response:
<html>
<body>
<p>There are currently 1 running SoapUI MockServices</p>
<ul>
<li><a href="/?WSDL">RESTTestMock</a></li>
</ul>
</p>
</body>
</html>
The URL being called is:
https://localhost:8449/testrest/people
There are a number of problems with this, firstly the href is clearly wrong it should point to the context path for the service but that could be my fault, however it also refers to a WSDL and not a WADL file and secondly I don't get the same response as if I go to the unsecured URL, e.g. this response:
[
{
"addresses": {
"address": [
{
"town": "Zurich"
},
{
"town": "Chiasso"
}
]
},
"id": 2,
"name": "Joe",
"surname": "Bloggs",
"testNamedProp": ""
},
{
"addresses": "",
"id": 1,
"name": "John",
"surname": "Doe",
"testNamedProp": {
"testkey": "testvalue"
}
}
]
The URL being called is:
http://localhost:8089/testrest/people
I saw in the following post that someone else is having the same problem: viewtopic.php?f=13&t=25047
I have also tried deploying as a WAR to use tomcat which I have preconfigured for SSL however I don't get a war file, instead it puts an image, a stylesheet and a WEB-INF folder in the directory where I asked it to put the war file as though I had auto deployed, which I have not. If I deploy it directly to tomcat on the other hand I only get empty responses whatever I call.
If you could please give me some assistance with this it would be much appreciated.