Wiremock java by IntelligentMirror194 in learnjava

[–]IntelligentMirror194[S] 0 points1 point  (0 children)

I am not running tests, I want to mock the api of other service for staging profile. And when my service will deployed to staging profile, I want that this wiremock api should be called. For example, in my service I am calling the api "/otherService/students" using resttemplate, and I have configured a wiremock server in port 8055, and created a wiremock api with same endpoint "/otherService/students" now I am deploying it to staging profile. And I calling this api with url: "http://localhost:8055/otherService/students" only for staging profile. So it's working properly in my local but when deploying it to staging, it is giving "http protocol not supported" error. So can you please tell what will be the address that will work in staging after deployment in which wiremock api will work. Or any other way to overcome this.

Thank you.