I have a WCF service that runs on say http://localhost:8072/MyWCFService and need to setup a wiremock stub for a integration test. I have the following code as an initial attempt:
var server = WireMockServer.Start();
server
.Given(
Request.Create().WithPath("http://localhost:8072/").UsingPost()
)
.RespondWith(
Response.Create()
.WithStatusCode(200)
.WithHeader("Content-Type", "text/xml")
.WithBody("Hello world!")
);
But this fails (the calling code just times out). Is Wiremock able to mock WCF SOAP calls ? If so, what setup is needed ? I'm guessing it's more complicated than my above naive attempt.