![]() |
#1 |
Участник
|
If you haven’t already read part 1 you should do so here, before continuing to read this post.
In part 1 I showed how a service reference plus two lines of code: var client = new Proxy1.ProxyClassClient("NetTcpRelayBinding_IProxyClass"); Console.WriteLine(client.GetCustomerName("10000")); could extract data from my locally installed NAV from anywhere in the world. Let’s start by explaining what this does. The first line instantiates a WCF client class with a parameter pointing to a config section, which is used to describe bindings etc. for the communication. A closer look at the config file reveals 3 endpoints defined by the service: <client> <endpoint address="sb://navdemo.servicebus.windows.net/Proxy1/" binding="netTcpRelayBinding" bindingConfiguration="NetTcpRelayBinding_IProxyClass" contract="Proxy1.IProxyClass" name="NetTcpRelayBinding_IProxyClass" /> <endpoint address="
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|