Load WCF app.config bindings in edge.js app

2020-02-07 06:04发布

问题:

I have a WCF client for soap service, generated via SvcUtil that I want to consume via edge.js

Is it possible to load an service model binding from an app.config using edge.js or will I have to construct the bindings in c#?

If I can, Where should the app.config live?

Thanks,

Gareth.

回答1:

When running C# code within Node.js app using Edge.js, the app config file is node.exe.config and should be located right next to the node.exe file.