Forum Discussion

4sxs_Consulting's avatar
4sxs_Consulting
New Contributor
13 years ago

WebUI in the Soap answer

Hello,

I created a soapui project with a mock service. I generated an WAR file and deployed it on a tomcat server.
Endpoint is http://xx.xx.xx.xx:8080/mock1. I can succesfully with soapui send requests and get the answers too.

I created a second SoapUI-projekt with a second mock service (other WSDL file), generated the war file and deploy it on the tomcat server too.
Endpoint is http://xx.xx.xx.xx:8080/mock2.
When I send a request on this endpoint I received the webui HTML code as a response:

<html>
<head>
<title>soapUI MockServices Log for project xxxxxxxx</title>
</head>
<frameset rows="40%,40%,*">
<frame src="master"/>
<frame name="detail" src="detail"/>
<frame src="log"/>
</frameset>
</html>


Am I doing something wrong?

Thanks and regards,
Matthieu

3 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hello,

    Hm..I do not how you configured mock service. You can check correct path to it if you check web.xml in WEB-INF folder, look for :

    <servlet-mapping>
    <servlet-name>SoapUIMockServlet</servlet-name>
    <url-pattern><path goes here></url-pattern>
    </servlet-mapping>

    usually there stands '/*' that would mean that correct path would be made by service directory name in tomcat's webapp directory.

    So, if your war file is mock.war and url-pattern is /* url is :
    http://localhost:8080/mock

    if url pattern is /mock1/* than url is:
    http://localhost:8080/mock/mock1/

    Hope this helps,
    robert
    /SmartBear
    • Sobana's avatar
      Sobana
      Occasional Contributor

      @robert Even i am facing the same isue. I tried with the above solution however it still gives me the above mentioned response.

      • TanyaYatskovska's avatar
        TanyaYatskovska
        SmartBear Alumni (Retired)

        Hi Sobana,

         

        A lot of things have changed since 2011. Could you please create a new topic and describe the issue you face in details?