Grpc support for multiple proto files #622

Closed
opened 2025-12-29 08:31:21 +01:00 by adam · 5 comments
Owner

Originally created by @SushilMowade on GitHub (Aug 8, 2024).

Originally assigned to: @StefH on GitHub.

I have proto files

  1. ordres_services.proto
  2. orders_messages.proto
  3. orders_shared_messages.proto
  4. orders_enums.proto

orders_services.proto imports orders_messages.proto
orders_messages.proto imports orders_shared_messages and orders_enum.proto
also orders_messages.proto and orders_shared_shared.proto have multiple import of google protobufs e..g timestamp and more others.

also each proto file has package and namespace.

Does wiremock.net support such level of hiararchy. I always get Unimplemented exception.?

If i go with simple 2 files with no inner level import for other proto and goole probuff it works but not with complex hiarachy or more than 2 files.

Is wiremock.net fully compatible with grpc for .net.? Or are there any limitation for Grpc currently.

I am talking for .Net core.

Originally created by @SushilMowade on GitHub (Aug 8, 2024). Originally assigned to: @StefH on GitHub. I have proto files 1. ordres_services.proto 2. orders_messages.proto 3. orders_shared_messages.proto 4. orders_enums.proto orders_services.proto imports orders_messages.proto orders_messages.proto imports orders_shared_messages and orders_enum.proto also orders_messages.proto and orders_shared_shared.proto have multiple import of google protobufs e..g timestamp and more others. also each proto file has package and namespace. Does wiremock.net support such level of hiararchy. I always get Unimplemented exception.? If i go with simple 2 files with no inner level import for other proto and goole probuff it works but not with complex hiarachy or more than 2 files. Is wiremock.net fully compatible with grpc for .net.? Or are there any limitation for Grpc currently. I am talking for .Net core.
adam added the feature label 2025-12-29 08:31:21 +01:00
adam closed this issue 2025-12-29 08:31:22 +01:00
Author
Owner

@StefH commented on GitHub (Aug 8, 2024):

I don't think that multiple proto files are supported yet.

Did you try combining all files to 1 proto file?

@StefH commented on GitHub (Aug 8, 2024): I don't think that multiple proto files are supported yet. Did you try combining all files to 1 proto file?
Author
Owner

@StefH commented on GitHub (Aug 8, 2024):

https://github.com/WireMock-Net/WireMock.Net/issues/1144

@StefH commented on GitHub (Aug 8, 2024): https://github.com/WireMock-Net/WireMock.Net/issues/1144
Author
Owner

@SushilMowade commented on GitHub (Aug 9, 2024):

We can not combine protos in one single file.. As we have existing code with many protos. So you are sure multiple proto file not supported by wiremock.net.

Also i observed when Package and namespace both are present in proto even single proto file greet example gives exception Unimplemented

@SushilMowade commented on GitHub (Aug 9, 2024): We can not combine protos in one single file.. As we have existing code with many protos. So you are sure multiple proto file not supported by wiremock.net. Also i observed when Package and namespace both are present in proto even single proto file greet example gives exception Unimplemented
Author
Owner

@SushilMowade commented on GitHub (Aug 13, 2024):

Hi Stef, Yes it works after combining all protos in single file. Thanks

But when i pushed this changes to azure CI pipeline. I am getting error as

"Service start failed with error: Unable to configure https endpoint. No server certificate was specified and the default developer cert could not be found"

@SushilMowade commented on GitHub (Aug 13, 2024): Hi Stef, Yes it works after combining all protos in single file. Thanks But when i pushed this changes to azure CI pipeline. I am getting error as _**"Service start failed with error: Unable to configure https endpoint. No server certificate was specified and the default developer cert could not be found"**_
Author
Owner

@StefH commented on GitHub (Aug 13, 2024):

Are you using Azure Web App?

Maybe this link helps:
https://github.com/WireMock-Net/WireMock.Net/wiki/Settings#certificatesettings

Or checkout other chapters on the wiki.

@StefH commented on GitHub (Aug 13, 2024): Are you using Azure Web App? Maybe this link helps: https://github.com/WireMock-Net/WireMock.Net/wiki/Settings#certificatesettings Or checkout other chapters on the wiki.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#622