문제

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