Knowledge (XXG)

WCF Data Services

Source 📝

1067: 1077: 22: 1087: 375:
Once we are able to locate the WCF service, one should think about how to communicate with the service (protocol wise). The binding is what defines how the WCF service handles the communication. It could also define other communication parameters like message encoding, etc. This will solve the second
361:
Once we have the answer to these three questions, then creating and consuming the WCF service will be a lot easier for us. The WCF service has the concept of endpoints. A WCF service provides endpoints which client applications can use to communicate with the WCF service. The answer to these above
334:
Windows Communication Foundation (WCF) comes to the rescue when we find ourselves not able to achieve what we want to achieve using web services, i.e., other protocols support and even duplex communication. With WCF, we can define our service once and then configure it in such a way that it can be
343:
When we say that a WCF service can be used to communicate using different protocols and from different kinds of applications, we will need to understand how we can achieve this. If we want to use a WCF service from an application, then we have three major questions:
325:
are not supported, though they may be in the future. In addition, using other HTTP methods like PUT, POST or DELETE, the data can be updated as well. POST can be used to create new entities, PUT for updating an entity, and DELETE for deleting an entity.
368:
Like a webservice, a WCF service also provides a URI which can be used by clients to get to the WCF service. This URI is called as the Address of the WCF service. This will solve the first problem of "where to locate the WCF service?" for us.
385:
The URIs representing the data will contain the physical location of the service, as well as the service name. It will also need to specify an EDM Entity-Set or a specific entity instance, as in respectively
335:
used via HTTP, TCP, IPC, and even Message Queues. We can consume Web Services using server side scripts (ASP.NET), JavaScript Object Notations (JSON), and even REST (Representational State Transfer).
382:
Now the only question one is left with is about the functionalities that a WCF service provides. The contract is what defines the public data and interfaces that WCF service provides to the clients.
463:
keywords indicates paging support, in Data Services version 1 there is no method of determining the number of records available and thus impossible to determine how many pages there may be. The
305:. The data service, when accessed via the HTTP GET method with such a URI, will return the data. The web service can be configured to return the data in either plain 492: 1121: 362:
questions is what is known as the ABC of WCF services and in fact are the main components of a WCF service. So let's tackle each question one by one.
628: 819: 653: 991: 278: 105: 534: 43: 36: 851: 559: 224: 198: 86: 1009: 876: 831: 298: 58: 1080: 680: 314: 804: 65: 621: 513: 882: 870: 262: 158: 72: 32: 825: 1111: 814: 277:
on August 11, 2008. The name change from ADO.NET Data Services to WCF data Services was announced at the 2009
54: 999: 736: 725: 648: 614: 581: 971: 966: 930: 687: 1116: 836: 717: 787: 692: 846: 322: 747: 464: 274: 452:
http://dataserver/service.svc/MusicCollection?$ orderby=ReleaseDate&$ skip=100&$ top=50
409:
The URIs can also specify a traversal of a relationship in the Entity Data Model. For example,
79: 772: 179: 1090: 898: 760: 475:(to retrieve a page worth of entities and a total count without a separate round-trip....). 174: 1042: 1004: 702: 258: 586: 1026: 915: 675: 601: 261:
2007, and the first developer preview was made available on April 30, 2007. The first
1126: 1105: 1070: 888: 864: 841: 797: 707: 1021: 956: 782: 777: 270: 1016: 938: 792: 731: 591: 246: 21: 907: 124: 1047: 920: 809: 238: 129: 354:
How can a client access the service, i.e., protocols and message formats?
402:
set whereas the latter will list only for the entity which is indexed by
449:. Filtering and partition information can also be encoded in the URL as 1052: 977: 943: 767: 755: 290: 266: 254: 493:"Simplifying our n-tier development platform: making 3 things 1 thing" 358:
What is the functionality that a service is providing to the clients?
697: 596: 961: 269:
3.5 Extensions Preview. The final version was released as part of
187: 183: 669: 637: 310: 294: 610: 376:
problem of "how to communicate with the WCF service?" for us.
350:
Where is the WCF service located from a client's perspective?
318: 306: 302: 15: 249:
through which the services are exposed. It also includes the
582:
ADO.NET Data Services Framework (formerly "Project Astoria")
431:. Simple predicates can also be specified in the URI, like 434:
http://dataserver/service.svc/MusicCollection/ReleaseDate
253:
which lets Astoria Data Services be created from within
606: 471:
path segment (to return just a count of entities) and
412:
http://dataserver/service.svc/MusicCollection/Genre
245:. It is actually a combination of the runtime and a 1035: 990: 929: 906: 897: 746: 716: 662: 193: 173: 157: 135: 123: 597:ADO.NET Data Services (Project Astoria) Team Blog 602:Access Cloud Data with Astoria: ENT News Online 560:"Codename "Astoria": Data Services for the Web" 289:WCF Data Services exposes data, represented as 395:http://dataserver/service.svc/MusicCollection 389:http://dataserver/service.svc/MusicCollection 293:(EDM) objects, via web services accessed over 622: 495:. ADO.NET Data Services Team Blog. 2009-11-17 257:itself. The Astoria project was announced at 8: 118: 1076: 903: 629: 615: 607: 117: 437:will fetch the items that are indexed by 398:The former will list all entities in the 106:Learn how and when to remove this message 484: 317:. In the initial release, formats like 820:Extensible Application Markup Language 423:table) and retrieves all instances of 42:Please improve this article by adding 587:Using Microsoft ADO.NET Data Services 535:"What's New in WCF Data Services 5.0" 514:"ADO.NET Data Services CTP Released!" 7: 1086: 427:that are associated with the entity 297:. The data can be addressed using a 265:was made available as a part of the 14: 419:(in SQL parlance, joins with the 1122:ADO.NET Data Access technologies 1085: 1075: 1066: 1065: 852:Windows Communication Foundation 20: 877:Windows Presentation Foundation 832:Managed Extensibility Framework 592:ASP.NET 3.5 Extensions Preview 467:2.0 spec adds support for the 1: 44:secondary or tertiary sources 883:Windows Workflow Foundation 871:Windows Identity Foundation 415:traverses the relationship 1143: 1061: 952: 826:Language Integrated Query 644: 455:Although the presence of 237:) is a platform for what 169: 153: 815:Dynamic Language Runtime 654:Libraries and frameworks 339:Understanding the basics 737:Framework Class Library 726:Common Language Runtime 972:Native Image Generator 967:.NET Compiler Platform 688:.NET Compact Framework 141:; 16 years ago 31:relies excessively on 837:Microsoft Silverlight 251:Data Services Toolkit 231:ADO.NET Data Services 693:.NET Micro Framework 139:August 11, 2008 847:Parallel Extensions 120: 55:"WCF Data Services" 539:docs.Microsoft.com 275:.NET Framework 3.5 211:/wcf-data-services 207:/previous-versions 125:Original author(s) 1099: 1098: 986: 985: 858:WCF Data Services 291:Entity Data Model 221: 220: 180:Microsoft Windows 119:WCF Data Services 116: 115: 108: 90: 1134: 1089: 1088: 1079: 1078: 1069: 1068: 904: 761:Entity Framework 631: 624: 617: 608: 570: 568: 566: 550: 549: 547: 545: 530: 524: 523: 521: 520: 510: 504: 503: 501: 500: 489: 217: 214: 212: 210: 208: 206: 204: 202: 200: 175:Operating system 149: 147: 142: 121: 111: 104: 100: 97: 91: 89: 48: 24: 16: 1142: 1141: 1137: 1136: 1135: 1133: 1132: 1131: 1112:Data management 1102: 1101: 1100: 1095: 1057: 1043:.NET Foundation 1031: 982: 948: 925: 893: 742: 712: 681:Version history 663:Implementations 658: 640: 635: 578: 573: 564: 562: 558: 554: 553: 543: 541: 532: 531: 527: 518: 516: 512: 511: 507: 498: 496: 491: 490: 486: 481: 453: 435: 413: 396: 390: 332: 287: 197: 165: 145: 143: 140: 136:Initial release 112: 101: 95: 92: 49: 47: 41: 37:primary sources 25: 12: 11: 5: 1140: 1138: 1130: 1129: 1124: 1119: 1114: 1104: 1103: 1097: 1096: 1094: 1093: 1083: 1073: 1062: 1059: 1058: 1056: 1055: 1050: 1045: 1039: 1037: 1033: 1032: 1030: 1029: 1027:Xamarin Studio 1024: 1019: 1014: 1013: 1012: 1007: 996: 994: 988: 987: 984: 983: 981: 980: 975: 969: 964: 959: 953: 950: 949: 947: 946: 941: 935: 933: 927: 926: 924: 923: 918: 916:.NET Reflector 912: 910: 901: 895: 894: 892: 891: 886: 880: 874: 868: 862: 861: 860: 849: 844: 839: 834: 829: 823: 817: 812: 807: 802: 801: 800: 795: 790: 785: 780: 775: 765: 764: 763: 752: 750: 744: 743: 741: 740: 734: 729: 722: 720: 714: 713: 711: 710: 705: 700: 695: 690: 685: 684: 683: 676:.NET Framework 673: 666: 664: 660: 659: 657: 656: 651: 645: 642: 641: 636: 634: 633: 626: 619: 611: 605: 604: 599: 594: 589: 584: 577: 576:External links 574: 572: 571: 555: 552: 551: 533:Archiveddocs. 525: 505: 483: 482: 480: 477: 451: 441:and had their 433: 411: 394: 388: 331: 328: 286: 283: 219: 218: 213:/hh487257(v=vs 195: 191: 190: 177: 171: 170: 167: 166: 163: 161: 159:Stable release 155: 154: 151: 150: 137: 133: 132: 127: 114: 113: 28: 26: 19: 13: 10: 9: 6: 4: 3: 2: 1139: 1128: 1125: 1123: 1120: 1118: 1115: 1113: 1110: 1109: 1107: 1092: 1084: 1082: 1074: 1072: 1064: 1063: 1060: 1054: 1051: 1049: 1046: 1044: 1041: 1040: 1038: 1036:Organizations 1034: 1028: 1025: 1023: 1020: 1018: 1015: 1011: 1008: 1006: 1003: 1002: 1001: 1000:Visual Studio 998: 997: 995: 993: 989: 979: 976: 973: 970: 968: 965: 963: 960: 958: 955: 954: 951: 945: 944:SmartAssembly 942: 940: 937: 936: 934: 932: 928: 922: 919: 917: 914: 913: 911: 909: 905: 902: 900: 896: 890: 889:.NET Remoting 887: 884: 881: 878: 875: 872: 869: 866: 865:Windows Forms 863: 859: 856: 855: 853: 850: 848: 845: 843: 842:Microsoft XNA 840: 838: 835: 833: 830: 827: 824: 821: 818: 816: 813: 811: 808: 806: 803: 799: 796: 794: 791: 789: 786: 784: 781: 779: 776: 774: 771: 770: 769: 766: 762: 759: 758: 757: 754: 753: 751: 749: 745: 738: 735: 733: 730: 727: 724: 723: 721: 719: 715: 709: 708:XNA Framework 706: 704: 701: 699: 696: 694: 691: 689: 686: 682: 679: 678: 677: 674: 671: 668: 667: 665: 661: 655: 652: 650: 649:.NET strategy 647: 646: 643: 639: 632: 627: 625: 620: 618: 613: 612: 609: 603: 600: 598: 595: 593: 590: 588: 585: 583: 580: 579: 575: 561: 557: 556: 540: 536: 529: 526: 515: 509: 506: 494: 488: 485: 478: 476: 474: 473:$ inlineCount 470: 466: 462: 458: 450: 448: 444: 440: 432: 430: 426: 422: 418: 410: 407: 405: 401: 393: 387: 383: 381: 377: 374: 370: 367: 363: 359: 357: 353: 349: 345: 341: 340: 336: 329: 327: 324: 320: 316: 312: 308: 304: 300: 296: 292: 284: 282: 280: 276: 272: 268: 264: 260: 256: 252: 248: 244: 243:Data Services 240: 236: 232: 228: 227:Data Services 226: 216: 196: 192: 189: 185: 181: 178: 176: 172: 168: 162: 160: 156: 152: 138: 134: 131: 128: 126: 122: 110: 107: 99: 96:November 2010 88: 85: 81: 78: 74: 71: 67: 64: 60: 57: –  56: 52: 51:Find sources: 45: 39: 38: 34: 29:This article 27: 23: 18: 17: 1117:Web services 1022:SharpDevelop 957:CLR Profiler 857: 788:Dynamic Data 718:Architecture 563:. Retrieved 542:. Retrieved 538: 528: 517:. Retrieved 508: 497:. Retrieved 487: 472: 468: 460: 456: 454: 446: 442: 438: 436: 428: 424: 420: 416: 414: 408: 403: 399: 397: 391: 384: 379: 378: 372: 371: 365: 364: 360: 355: 351: 347: 346: 342: 338: 337: 333: 288: 271:Service Pack 250: 242: 234: 230: 223: 222: 102: 93: 83: 76: 69: 62: 50: 30: 1017:MonoDevelop 939:Dotfuscator 931:Obfuscators 908:Decompilers 732:COM Interop 330:Description 247:web service 233:, codename 1106:Categories 867:(WinForms) 748:Components 519:2007-11-12 499:2009-12-17 479:References 439:SomeArtist 404:SomeArtist 400:Collection 229:(formerly 201:.microsoft 146:2008-08-11 66:newspapers 33:references 1048:Microsoft 810:ClickOnce 773:Web Forms 565:April 30, 380:Contract: 273:1 of the 239:Microsoft 235:"Astoria" 164:5.6.0 130:Microsoft 1071:Category 805:Avalonia 544:March 9, 429:SomeSong 373:Binding: 366:Address: 285:Overview 1091:Commons 1053:Xamarin 1010:Express 978:XAMLPad 921:dotPeek 768:ASP.NET 756:ADO.NET 469:$ count 443:release 315:RDF+XML 267:ASP.NET 255:ASP.NET 209:/dotnet 194:Website 144: ( 80:scholar 974:(NGen) 854:(WCF) 828:(LINQ) 822:(XAML) 698:DotGNU 672:(Core) 301:-like 241:calls 205:/en-us 82:  75:  68:  61:  53:  1005:Blend 962:ILAsm 899:Tools 879:(WPF) 873:(WIF) 798:Razor 739:(FCL) 728:(CLR) 465:OData 425:Genre 421:Genre 417:Genre 215:.103) 188:macOS 184:Linux 87:JSTOR 73:books 1127:.NET 1081:List 992:IDEs 885:(WF) 783:Core 778:AJAX 703:Mono 670:.NET 638:.NET 567:2007 546:2019 459:and 457:skip 447:2006 323:ATOM 321:and 311:JSON 299:REST 295:HTTP 203:.com 199:docs 59:news 793:MVC 461:top 445:in 392:or 319:RSS 313:or 307:XML 303:URI 279:PDC 263:CTP 259:MIX 225:WCF 35:to 1108:: 537:. 406:. 356:3. 352:2. 348:1. 309:, 281:. 186:, 182:, 46:. 630:e 623:t 616:v 569:. 548:. 522:. 502:. 148:) 109:) 103:( 98:) 94:( 84:· 77:· 70:· 63:· 40:.

Index


references
primary sources
secondary or tertiary sources
"WCF Data Services"
news
newspapers
books
scholar
JSTOR
Learn how and when to remove this message
Original author(s)
Microsoft
Stable release
Operating system
Microsoft Windows
Linux
macOS
docs.microsoft.com/en-us/previous-versions/dotnet/wcf-data-services/hh487257(v=vs.103)
WCF
Microsoft
web service
ASP.NET
MIX
CTP
ASP.NET
Service Pack
.NET Framework 3.5
PDC
Entity Data Model

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.