RS First Dynamics NAV Blog


...from NAV 3.60 to NAV 2013
Archivio Posts
Anno 2015

Anno 2014

Anno 2013

Anno 2012

Anno 2011

Anno 2010

Anno 2009

Anno 2008

Anno 2007

What is the difference between a Web Reference and a Service Reference?

NAV 2013 (and 2009) Web Services:  "What is the difference" between a "Web Reference" and a "Service Reference"  ?

a nice post link from Freddy Blog ....

 

In short, the "Web Reference" is a .net 2.0 compatible Web Service reference, the "Service Reference" is a .net 3.5 "WCF based Service Reference".

> Add Web Reference is a wrapper over wsdl.exe and can be used to create proxies for .NET 1.1 or 2.0 clients. Of course this means when you are pointing to a WCF service you have to be pointing to an endpoint that uses basicHttpBinding; 

> Add Service Reference is a wrapper over svcutil.exe and also creates clients proxies. These proxies, however, can only be consumed by .NET 3.5 clients.

 

How to Add Web Services

Select Add Service Reference

image

Click Advanced

image

Click Add Web Reference

image

Type in the URL and specify the namespace for the SystemService Web Reference

image

and for the Customer Page Web Reference

image

When adding a Web Reference, Visual Studio will create a config file in which it stores stuff like the URL for the Reference. In my samples I will set the URL in code and due to this, the config file is not needed.

 

from Freddy Blog

http://blogs.msdn.com/b/freddyk/archive/2010/01/20/connecting-to-nav-web-services-from-c-using-web-reference.aspx

Categoria: Dynamics NAV 2013
martedì, 12 feb 2013 Ore. 09.44

Messaggi collegati


Statistiche
  • Views Home Page: 416.015
  • Views Posts: 844.663
  • Views Gallerie: 0
  • n° Posts: 345
  • n° Commenti: 0
Copyright © 2002-2007 - Blogs 2.0
dotNetHell.it | Home Page Blogs
ASP.NET 2.0 Windows 2003