Menu

Mock service Endpoint changes

Anonymous
2016-05-26
2016-06-01
  • Anonymous

    Anonymous - 2016-05-26

    Currently I am using the mockservice for testing the SOAP . Could you please share tips or any idea to change the Endpoint URI . In current system it shows the https//x.x.x.x:8080/webservicemocker-1.0.1/mock/perfmonservice/service/PerfmonPort. I would like to avoid the webservicemocker-1.0.1/mock/ instead I need https//x.x.x.x:8080/perfmonservice/service/PerfmonPort

    Please help me to sort the issue.

    Thanks in Advance !!!

     
  • Sripathi Acharya

    Since the mocker is servlet based you cannot control the complete URL. But to achieve what you are expecting you can follow below steps.

    1. Change the war file name to "perfmonservice" from "webservicemocker-1.0.1"
    2. Edit the web.xml and change url-pattern under servlet-mapping to "/service/*" from "/mock/*"
    3. Finally when creating the mock service name the service as "PerfmonPort"
     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.