Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top