Is this compatible with WireMock? #408

Closed
opened 2025-12-29 15:22:57 +01:00 by adam · 9 comments
Owner

Originally created by @bfrggit on GitHub (Feb 19, 2022).

Originally assigned to: @StefH on GitHub.

Is this compatible with WireMock (https://wiremock.org/)? Briefly, I just replaced my Docker Compose's ref to the latter's image to this image and it does not pick up the mapping files I mounted to container.

My team has a cluster that uses this (WireMock.Net), however my service is Java and was using WireMock (org) and its Java SDK. If this is not compatible, does this have a Java SDK?

Originally created by @bfrggit on GitHub (Feb 19, 2022). Originally assigned to: @StefH on GitHub. Is this compatible with WireMock (https://wiremock.org/)? Briefly, I just replaced my Docker Compose's ref to the latter's image to this image and it does not pick up the mapping files I mounted to container. My team has a cluster that uses this (WireMock.Net), however my service is Java and was using WireMock (org) and its Java SDK. If this is not compatible, does this have a Java SDK?
adam added the question label 2025-12-29 15:22:57 +01:00
adam closed this issue 2025-12-29 15:22:57 +01:00
Author
Owner

@StefH commented on GitHub (Feb 19, 2022):

Hello @bfrggit,

There is some limited support for the mapping from WireMock.org

See also these links:

However it could be that your mapping does not work yet.

Please post the full mapping file here.

@StefH commented on GitHub (Feb 19, 2022): Hello @bfrggit, There is some limited support for the mapping from WireMock.org See also these links: - https://github.com/WireMock-Net/WireMock.Net/wiki/WireMock.Org - #491 However it could be that your mapping does not work yet. Please post the full mapping file here.
Author
Owner

@bfrggit commented on GitHub (Feb 19, 2022):

@StefH The examples you show in the links look promising. However, before testing with the actual payload, we'd like to know if the following features are there or if WireMock.Net plans to stay consistent with WireMock.org --

  • Auto loading mapping stubs from filesystem and using JSON files as response body. Also, if the directory structure of these are consistent with that of WireMock.org.
  • Java SDK, or if it is compatible with the WireMock.org Java SDK, which means the APIs must be consistent.
  • Global response templating, so we can have template fields in the JSON file used for responses.
  • Multi-stubbing (e.g., general vs. case-specific).
@bfrggit commented on GitHub (Feb 19, 2022): @StefH The examples you show in the links look promising. However, before testing with the actual payload, we'd like to know if the following features are there or if WireMock.Net plans to stay consistent with WireMock.org -- - Auto loading mapping stubs from filesystem and using JSON files as response body. Also, if the directory structure of these are consistent with that of WireMock.org. - Java SDK, or if it is compatible with the WireMock.org Java SDK, which means the APIs must be consistent. - Global response templating, so we can have template fields in the JSON file used for responses. - Multi-stubbing (e.g., general vs. case-specific).
Author
Owner

@bfrggit commented on GitHub (Feb 19, 2022):

No longer urgent since we got a green light to also deploy WireMock.org in test cluster. However, if WireMock.Net is fully compatible (or is a super set of) WireMock.org it would still be great so we can save some effort hopefully.

@bfrggit commented on GitHub (Feb 19, 2022): No longer urgent since we got a green light to also deploy WireMock.org in test cluster. However, if WireMock.Net is fully compatible (or is a super set of) WireMock.org it would still be great so we can save some effort hopefully.
Author
Owner

@StefH commented on GitHub (Feb 20, 2022):

If you still have time, can you please provide a mapping which you use now for wiremock.org ?
So that I can check if this works and fix the code from wiremock.net to also support that mapping.

@StefH commented on GitHub (Feb 20, 2022): If you still have time, can you please provide a mapping which you use now for wiremock.org ? So that I can check if this works and fix the code from wiremock.net to also support that mapping.
Author
Owner

@bfrggit commented on GitHub (Feb 23, 2022):

@StefH The truth is that it may or may not be related to mapping itself... Could be just location of the files but I did not spend much time digging into it. I will quickly check it today.

@bfrggit commented on GitHub (Feb 23, 2022): @StefH The truth is that it may or may not be related to mapping itself... Could be just location of the files but I did not spend much time digging into it. I will quickly check it today.
Author
Owner

@bfrggit commented on GitHub (Feb 23, 2022):

@StefH However, we'd still like to know if the following features are supported or on the roadmap --

  • Auto loading mapping stubs from filesystem and using JSON files as response body. Also, if the directory structure of these are consistent with that of WireMock.org.
  • Java SDK, or if it is compatible with the WireMock.org Java SDK, which means the APIs must be consistent.
  • Global response templating, so we can have template fields in the JSON file used for responses.
  • Multi-stubbing (e.g., general vs. case-specific).

And also, is WireMock.Net supposed to stay consistent with WireMock.org?

@bfrggit commented on GitHub (Feb 23, 2022): @StefH However, we'd still like to know if the following features are supported or on the roadmap -- - Auto loading mapping stubs from filesystem and using JSON files as response body. Also, if the directory structure of these are consistent with that of WireMock.org. - Java SDK, or if it is compatible with the WireMock.org Java SDK, which means the APIs must be consistent. - Global response templating, so we can have template fields in the JSON file used for responses. - Multi-stubbing (e.g., general vs. case-specific). And also, is WireMock.Net supposed to stay consistent with WireMock.org?
Author
Owner

@bfrggit commented on GitHub (Feb 23, 2022):

First of all, according to https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching, the JSON payload seems to use UpperCamelCase for property naming but I think WireMock.org uses lowerCamelCase? https://wiremock.org/docs/api/ and the field name is uuid instead of Guid.

@bfrggit commented on GitHub (Feb 23, 2022): First of all, according to https://github.com/WireMock-Net/WireMock.Net/wiki/Request-Matching, the JSON payload seems to use UpperCamelCase for property naming but I think WireMock.org uses lowerCamelCase? https://wiremock.org/docs/api/ and the field name is `uuid` instead of `Guid`.
Author
Owner

@bfrggit commented on GitHub (Feb 23, 2022):

Well I tried today but could not figure out where I should put the mappings folder and __files folder in the container (Linux) to let it pick them up automatically. Will stop trying until I hear from you about the features above.

@bfrggit commented on GitHub (Feb 23, 2022): Well I tried today but could not figure out where I should put the `mappings` folder and `__files` folder in the container (Linux) to let it pick them up automatically. Will stop trying until I hear from you about the features above.
Author
Owner

@StefH commented on GitHub (Feb 26, 2022):

Should work / same

Not 100% compatible and no plans to keep it compatible because Java and C# are different

  • Java SDK, or if it is compatible with the WireMock.org Java SDK, which means the APIs must be consistent.

  • And also, is WireMock.Net supposed to stay consistent with WireMock.org?

  • Well I tried today but could not figure out where I should put the mappings folder and __files folder in the container (Linux) to let it pick them up automatically. Will stop trying until I hear from you about the features above.
    --> https://github.com/WireMock-Net/WireMock.Net-docker/wiki/Docker-Compose

I hope this answers your questions.

@StefH commented on GitHub (Feb 26, 2022): ## Should work / same - Auto loading mapping stubs from filesystem and using JSON files as response body. - Also, if the directory structure of these are consistent with that of WireMock.org. - Global response templating, so we can have template fields in the JSON file used for responses. --> https://github.com/WireMock-Net/WireMock.Net/wiki/Response-Templating - Multi-stubbing (e.g., general vs. case-specific). --> https://github.com/WireMock-Net/WireMock.Net/wiki/Scenarios-and-States - the JSON payload seems to use UpperCamelCase for property naming but I think WireMock.org uses lowerCamelCase? (I think the json deserialzier from .NET can handle both) ## Not 100% compatible and no plans to keep it compatible because Java and C# are different - Java SDK, or if it is compatible with the WireMock.org Java SDK, which means the APIs must be consistent. - And also, is WireMock.Net supposed to stay consistent with WireMock.org? - Well I tried today but could not figure out where I should put the mappings folder and __files folder in the container (Linux) to let it pick them up automatically. Will stop trying until I hear from you about the features above. --> https://github.com/WireMock-Net/WireMock.Net-docker/wiki/Docker-Compose I hope this answers your questions.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#408