11 years ago
SoapUI REST Mock Service with SSL
Hello,
I'm having an issue with SoapUI 5.0.0. while trying to Mock a RESTFul service using SSL. Everything works fine if I don't use SSL at all.
In SoapUI preferences :
- I have enabled Mock SSL on port 8443 with the same keystores for Mock KeyStore and TrustStore.
In the mock service editor :
- path : /resource
- port : 8080
- host : localhost
In the mock action editor :
- method : GET
- resource path : /config
What I'm doing then is creating new REST service from URI with the following parameters :
- method : GET
- endpoint : https://localhost:8443/resource
- resource : /config
When I start the mock and call the request i get the following response generated by SoapUI instead of my mock content :
Thanks
I'm having an issue with SoapUI 5.0.0. while trying to Mock a RESTFul service using SSL. Everything works fine if I don't use SSL at all.
In SoapUI preferences :
- I have enabled Mock SSL on port 8443 with the same keystores for Mock KeyStore and TrustStore.
In the mock service editor :
- path : /resource
- port : 8080
- host : localhost
In the mock action editor :
- method : GET
- resource path : /config
What I'm doing then is creating new REST service from URI with the following parameters :
- method : GET
- endpoint : https://localhost:8443/resource
- resource : /config
When I start the mock and call the request i get the following response generated by SoapUI instead of my mock content :
<html>
<head>
<meta content="HTML Tidy for Java (vers. 26 sept. 2004), see http://www.w3.org" name="generator"/>
<title/>
</head>
<body>
<p>There are currently 1 running SoapUI MockServices</p>
<ul>
<li>
<a href="/resource?WSDL">Mock</a>
</li>
</ul>
<br/>
<br/>
</body>
</html>
Thanks