質問

I am using Microsoft Dynamics NAV 2009 as I am building a C# program as the integration. Currently Im defining all my web service references inside my C# code.

I wanted to know whether I can call the web service references from a text file since I will be using different URLs with different domains. Currently Im running on localhost.

役に立ちましたか?

解決

If you want to avoid the hard-coded URLs that were created when you set the reference to the web service - you certainly can. Your web service proxy has a Url property that you could populate with an alternative web service URL, e.g. one read from a text or config file, prior to the actual web service call.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top