[maliming] said: hi
Currently, you need to generate them manually if your API has changed.
Thanks.
ok Thanks.
[maliming] said: Great
Hi Maliming, Every time I make changes to the KSVR service, I have to run the command abp generate-proxy --type csharp --module ksvr --url http://localhost:44303 --without-contracts to regenerate the Client Proxies. Is there any way to generate them automatically whenever changes are made, or is it mandatory to run the command manually?
[maliming] said: hi
Please zip your static proxy files and
appsettings.jsonofWebGatewayto liming.ma@volosoft.comThanks.
I found the cause. Thank you. :D
[maliming] said: : )
:v I mistakenly thought the Module Name was the name of the .cs file. :((
[maliming] said: hi
abp generate-proxy --type csharp --module ksvr --url http://localhost:44303 --without-contractsAfter that, run the
WebCMS.Web: http://localhost:44325/and checkabp/serviceproxyscriptendpoint
ok nice ! Thank you very much
[maliming] said: hi
: Module name: webCMSwebModule is invalid
You can check all modules at
http://localhost:44303/api/abp/api-definitionThen generate a proxy again
abp generate-proxy --type csharp --module NewModuleName --url http://localhost:44303 --without-contractsThanks
this is data in http://localhost:44303/api/abp/api-definition

Please help me write the correct command.
[maliming] said: hi
You can run the
abp generate-proxycommand in your web project(localhost:44325)
abp generate-proxy --type csharp --module YourWebCMSKSVRModuleName --url https://YourWebCMSKSVRModuleName-website-url --without-contractsThanks.
help me please!
[maliming] said: hi
You can run the
abp generate-proxycommand in your web project(localhost:44325)
abp generate-proxy --type csharp --module YourWebCMSKSVRModuleName --url https://YourWebCMSKSVRModuleName-website-url --without-contractsThanks.
I tried it, but it didn’t work.
Url WebCMS.Web: http://localhost:44325/ Url WebCMS.KSVR (microservice) : http://localhost:44303/
[maliming] said: hi
Have you created the static proxy files?
See https://abp.io/docs/latest/guides/add-module-to-microservice#using-the-static-proxy https://abp.io/docs/latest/framework/api-development/static-csharp-clients#code-generation
I can’t find the HttpApiClientModule.
My ABP version is the latest one, and its structure does not contain any of the files described in the documentation.
