Forum Discussion

notoon's avatar
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 :

<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

1 Reply

  • CHaefeli's avatar
    CHaefeli
    New Contributor
    I have the same problem as you are having. Has anyone come back to you with a solution?

    Also it refers to WSDL when it should be WADL for REST

    I also have tried deploying as a WAR to use tomcat which is preconfigured for SSL instead but I don't get a war file but it puts an image, a stylesheet and a WEB-INF folder in the directory where I asked it to put the war file and if I deploy it directly to tomcat it doesn't run either.