سؤال

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