I did, and it is not working
is it possible that you help me on a meeting?
Let me know when you fix this problem please to delete my own implementation
Solved
Check list about errors
Thanks so much for your help
Hi,
Open the ServiceBHttpClientModule class and change AddHttpClientProxies to AddStaticHttpClientProxies
You can search for
AddHttpClientProxiesglobally and replace it withAddStaticHttpClientProxiesin the MicroserviceB solution.
Hi,
I am still facing a problem, is it possible to set a meeting to show you so you could help me find the error?
Hi,
It looks like you are using the
Dynamic proxy.The
Dynamic proxy systemneeds to get the API defines from the gateway.You can consider using the
Static proxy.
- Run the
abp generate-proxy -t csharp -m TheModuleNameOfServiceB -u TheURLOfServiceBon theServiceB.HttpApi.Clientproject directory- Open the
ServiceBHttpClientModuleclass and changeAddHttpClientProxiestoAddStaticHttpClientProxiesNow it should be working.
If you don't know the
TheModuleNameOfServiceB, you can access theTheURLOfServiceB:/api/abp/api-definitionendpoint to check it.
Hi,
It still load with dynamic proxy
you should modify the function
mapEnumToOptions(CustomDataType);
on microservices to get the localization of service
It did not work, since i am on microservice template I have to use the prefix of the owner
const label: string = this.localizationService.instant('MyService::Enum:' + enumTypeName + '.' + element.key);
abp generate-proxy -t ng -m identity -u https://localhost:44388 --target identity-service --api-name Identity abp generate-proxy -t ng -m identityServer -u https://localhost:44388 --target identity-service --api-name Identity abp generate-proxy -t ng -m abp -u https://localhost:44388 --target identity-service --api-name Identity abp generate-proxy -t ng -m accountAdmin -u https://localhost:44388 --target identity-service --api-name Identity
hello,
looks like the solution I was looking is https://docs.abp.io/en/commercial/latest/startup-templates/microservice/synchronous-interservice-communication
I am going to treat the user as an object out of the microservice, I do not want to go over http request because i am inside the same server, but it makes sense, because I could split the microservices into many servers later
yes, microservice template, it is on first message