Forum Discussion

2 Replies

  • I was able to create mock service in REST.

    But getting following error when run the request


    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <soapenv:Fault>
    <faultcode>Server</faultcode>
    <faultstring>com.eviware.soapui.impl.wsdl.mock.DispatchException: java.io.FileNotFoundException: D:\SoapUI\SoapUI Project\MyProject\docroot (Access is denied)</faultstring>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>


    I have put the test.txt file in docroot folder

    Raw Request Header

    GET http://localhost:8080/Rest-Sample/rest/HelloExample HTTP/1.1
    Accept-Encoding: gzip,deflate
    Content-Type: text/plain
    Host: localhost:8080
    Connection: Keep-Alive
    User-Agent: Apache-HttpClient/4.1.1 (java 1.5)



    Raw Response Header

    HTTP/1.1 500 Internal Server Error
    Content-Type: text/html; charset=iso-8859-1
    Transfer-Encoding: chunked
    Server: Jetty(6.1.26)


    What could be the reason

    Cheers
  • I rectified the error.

    The reason was I haven't define the header as Accept - text/plain