Click here to Skip to main content
13,550,585 members
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Downloads

Stats

187.8K views
6.2K downloads
234 bookmarked
Posted 10 Oct 2011
Licenced CPOL

JSON API

, 6 Dec 2011
A simple look at how to share the JSON API to Web and Desktop.
MVC_JSON
Common
bin
Debug
Common.dll
Common.pdb
obj
Debug
Common.dll
Common.pdb
DesignTimeResolveAssemblyReferencesInput.cache
TempPE
Properties
ConsoleApplication1
bin
Debug
Common.dll
Common.pdb
ConsoleApplication1.exe
ConsoleApplication1.pdb
ConsoleApplication1.vshost.exe
ConsoleApplication1.vshost.exe.manifest
obj
x86
Debug
ConsoleApplication1.exe
ConsoleApplication1.pdb
DesignTimeResolveAssemblyReferencesInput.cache
ResolveAssemblyReference.cache
TempPE
Properties
MvcApplication1.suo
packages
HttpClient.0.5.0
lib
JsonValue.0.5.0
JsonValue.0.5.0.nupkg
lib
40
Microsoft.Json.dll
Microsoft.Server.Common.dll
RestfulWebSite
App_Data
bin
Common.dll
Common.pdb
Microsoft.Json.dll
Microsoft.Server.Common.dll
RestfulWebSite.dll
RestfulWebSite.pdb
Content
themes
base
images
ui-bg_flat_0_aaaaaa_40x100.png
ui-bg_flat_75_ffffff_40x100.png
ui-bg_glass_55_fbf9ee_1x400.png
ui-bg_glass_65_ffffff_1x400.png
ui-bg_glass_75_dadada_1x400.png
ui-bg_glass_75_e6e6e6_1x400.png
ui-bg_glass_95_fef1ec_1x400.png
ui-bg_highlight-soft_75_cccccc_1x100.png
ui-icons_222222_256x240.png
ui-icons_2e83ff_256x240.png
ui-icons_454545_256x240.png
ui-icons_888888_256x240.png
ui-icons_cd0a0a_256x240.png
Controllers
Filter
Global.asax
ModelBinders
obj
Debug
DesignTimeResolveAssemblyReferencesInput.cache
ResolveAssemblyReference.cache
RestfulWebSite.dll
RestfulWebSite.pdb
TempPE
Properties
RestfulWebSite.csproj.user
Scripts
Views
Home
Shared
WEB_WCF
Lib
WCF Web API Preview 4
Microsoft.ApplicationServer.Common.dll
Microsoft.ApplicationServer.Http.dll
Microsoft.ApplicationServer.HttpEnhancements.dll
Microsoft.ApplicationServer.HttpEnhancements.Tests.dll
Microsoft.ApplicationServer.Serialization.dll
Microsoft.ApplicationServer.ServiceModel.dll
Microsoft.Net.Http.dll
Microsoft.QueryComposition.dll
Microsoft.Runtime.Serialization.Json.dll
Microsoft.ServiceModel.Web.jQuery.dll
Models
bin
Debug
Models.dll
Release
obj
Debug
Models.dll
TempPE
Properties
RestFul_Test
bin
Debug
Microsoft.ApplicationServer.Common.dll
Microsoft.ApplicationServer.Http.dll
Microsoft.ApplicationServer.Serialization.dll
Microsoft.ApplicationServer.ServiceModel.dll
Microsoft.Net.Http.dll
Microsoft.QueryComposition.dll
Microsoft.Runtime.Serialization.Json.dll
Microsoft.ServiceModel.Web.jQuery.dll
Models.dll
RestFul_Test.exe
RestFul_Test.vshost.exe
Release
obj
x86
Debug
RestFul_Test.exe
TempPE
Properties
RESTFul_WCF
App_Data
bin
EF_TEST.exe
Microsoft.ApplicationServer.Common.dll
Microsoft.ApplicationServer.Http.dll
Microsoft.ApplicationServer.HttpEnhancements.dll
Microsoft.ApplicationServer.Serialization.dll
Microsoft.ApplicationServer.ServiceModel.dll
Microsoft.Net.Http.dll
Microsoft.QueryComposition.dll
Microsoft.Runtime.Serialization.Json.dll
Microsoft.ServiceModel.Web.jQuery.dll
Models.dll
RESTFul_WCF.dll
Global.asax
obj
Debug
RESTFul_WCF.dll
TempPE
Properties
RESTFul_WCF.csproj.user
<?xml version="1.0"?>
<doc>
    <assembly>
        <name>Microsoft.ApplicationServer.ServiceModel</name>
    </assembly>
    <members>
        <member name="M:Microsoft.ApplicationServer.ServiceModel.SR.InnerListenerFactoryNotSet(System.Object)">
            <summary>Gets localized string like: The inner listener factory of {0} must be set before this operation.</summary>
            <param name="param0">Parameter 0 for string: The inner listener factory of {0} must be set before this operation.</param>
        </member>
        <member name="M:Microsoft.ApplicationServer.ServiceModel.SR.InvalidWsdlExtensionTypeInConfig(System.Object)">
            <summary>Gets localized string like: The type {0} registered as a WSDL extension does not implement IWsdlImportExtension.</summary>
            <param name="param0">Parameter 0 for string: The type {0} registered as a WSDL extension does not implement IWsdlImportExtension.</param>
        </member>
        <member name="M:Microsoft.ApplicationServer.ServiceModel.SR.WsdlExtensionTypeRequiresDefaultConstructor(System.Object)">
            <summary>Gets localized string like: The type {0} registered as a WSDL extension does not have a public default constructor. WSDL extensions must have a public default constructor.</summary>
            <param name="param0">Parameter 0 for string: The type {0} registered as a WSDL extension does not have a public default constructor. WSDL extensions must have a public default constructor.</param>
        </member>
        <member name="M:Microsoft.ApplicationServer.ServiceModel.SR.SFxConfigContractNotFound(System.Object)">
            <summary>Gets localized string like: Could not find default endpoint element that references contract '{0}' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.</summary>
            <param name="param0">Parameter 0 for string: Could not find default endpoint element that references contract '{0}' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.</param>
        </member>
        <member name="M:Microsoft.ApplicationServer.ServiceModel.SR.SFxConfigChannelConfigurationNotFound(System.Object,System.Object)">
            <summary>Gets localized string like: Could not find endpoint element with name '{0}' and contract '{1}' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.</summary>
            <param name="param0">Parameter 0 for string: Could not find endpoint element with name '{0}' and contract '{1}' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.</param>
            <param name="param1">Parameter 1 for string: Could not find endpoint element with name '{0}' and contract '{1}' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.</param>
        </member>
        <member name="M:Microsoft.ApplicationServer.ServiceModel.SR.ConfigSectionNotFound(System.Object)">
            <summary>Gets localized string like: The '{0}' configuration section cannot be created. The machine.config file is missing information. Verify that this configuration section is properly registered and that you have correctly spelled the section name. For Windows Communication Foundation sections, run ServiceModelReg.exe -i to fix this error.</summary>
            <param name="param0">Parameter 0 for string: The '{0}' configuration section cannot be created. The machine.config file is missing information. Verify that this configuration section is properly registered and that you have correctly spelled the section name. For Windows Communication Foundation sections, run ServiceModelReg.exe -i to fix this error.</param>
        </member>
        <member name="M:Microsoft.ApplicationServer.ServiceModel.SR.ConfigEndpointExtensionNotFound(System.Object)">
            <summary>Gets localized string like: Configuration endpoint extension '{0}' could not be found. Verify that this endpoint extension is properly registered in system.serviceModel/extensions/endpointExtensions and that it is spelled correctly.</summary>
            <param name="param0">Parameter 0 for string: Configuration endpoint extension '{0}' could not be found. Verify that this endpoint extension is properly registered in system.serviceModel/extensions/endpointExtensions and that it is spelled correctly.</param>
        </member>
        <member name="M:Microsoft.ApplicationServer.ServiceModel.SR.InvalidPolicyExtensionTypeInConfig(System.Object)">
            <summary>Gets localized string like: The type {0} registered as a policy extension does not implement IPolicyImportExtension</summary>
            <param name="param0">Parameter 0 for string: The type {0} registered as a policy extension does not implement IPolicyImportExtension</param>
        </member>
        <member name="M:Microsoft.ApplicationServer.ServiceModel.SR.UTTDuplicate(System.Object,System.Object)">
            <summary>Gets localized string like: UriTemplateTable (with allowDuplicateEquivalentUriTemplates = false) does not support both '{0}' and '{1}', since they are equivalent. Call MakeReadOnly with allowDuplicateEquivalentUriTemplates = true to use both of these UriTemplates in the same table. See the documentation for UriTemplateTable for more detail.</summary>
            <param name="param0">Parameter 0 for string: UriTemplateTable (with allowDuplicateEquivalentUriTemplates = false) does not support both '{0}' and '{1}', since they are equivalent. Call MakeReadOnly with allowDuplicateEquivalentUriTemplates = true to use both of these UriTemplates in the same table. See the documentation for UriTemplateTable for more detail.</param>
            <param name="param1">Parameter 1 for string: UriTemplateTable (with allowDuplicateEquivalentUriTemplates = false) does not support both '{0}' and '{1}', since they are equivalent. Call MakeReadOnly with allowDuplicateEquivalentUriTemplates = true to use both of these UriTemplates in the same table. See the documentation for UriTemplateTable for more detail.</param>
        </member>
        <member name="M:Microsoft.ApplicationServer.ServiceModel.SR.MultipleWebAttributes(System.Object,System.Object,System.Object,System.Object)">
            <summary>Gets localized string like: Operation '{0}' in contract '{1}' has both '{2}' and '{3}'; only one can be present.</summary>
            <param name="param0">Parameter 0 for string: Operation '{0}' in contract '{1}' has both '{2}' and '{3}'; only one can be present.</param>
            <param name="param1">Parameter 1 for string: Operation '{0}' in contract '{1}' has both '{2}' and '{3}'; only one can be present.</param>
            <param name="param2">Parameter 2 for string: Operation '{0}' in contract '{1}' has both '{2}' and '{3}'; only one can be present.</param>
            <param name="param3">Parameter 3 for string: Operation '{0}' in contract '{1}' has both '{2}' and '{3}'; only one can be present.</param>
        </member>
        <member name="M:Microsoft.ApplicationServer.ServiceModel.SR.ConfigDuplicateKeyAtSameScope(System.Object,System.Object)">
            <summary>Gets localized string like: A child element named '{0}' with same key already exists at the same configuration scope. Collection elements must be unique within the same configuration scope (e.g. the same application.config file). Duplicate key value:  '{1}'.</summary>
            <param name="param0">Parameter 0 for string: A child element named '{0}' with same key already exists at the same configuration scope. Collection elements must be unique within the same configuration scope (e.g. the same application.config file). Duplicate key value:  '{1}'.</param>
            <param name="param1">Parameter 1 for string: A child element named '{0}' with same key already exists at the same configuration scope. Collection elements must be unique within the same configuration scope (e.g. the same application.config file). Duplicate key value:  '{1}'.</param>
        </member>
        <member name="M:Microsoft.ApplicationServer.ServiceModel.SR.ConfigKeyNotFoundInElementCollection(System.Object)">
            <summary>Gets localized string like: No elements matching the key '{0}' were found in the configuration element collection.</summary>
            <param name="param0">Parameter 0 for string: No elements matching the key '{0}' were found in the configuration element collection.</param>
        </member>
        <member name="M:Microsoft.ApplicationServer.ServiceModel.SR.ConfigKeysDoNotMatch(System.Object,System.Object)">
            <summary>Gets localized string like: The key does not match the indexer key. When setting the value of a specific index, the key of the desired value must match the index at which it is being set. Key on element (expected value): {0}. Key provided to indexer: {1}.</summary>
            <param name="param0">Parameter 0 for string: The key does not match the indexer key. When setting the value of a specific index, the key of the desired value must match the index at which it is being set. Key on element (expected value): {0}. Key provided to indexer: {1}.</param>
            <param name="param1">Parameter 1 for string: The key does not match the indexer key. When setting the value of a specific index, the key of the desired value must match the index at which it is being set. Key on element (expected value): {0}. Key provided to indexer: {1}.</param>
        </member>
        <member name="M:Microsoft.ApplicationServer.ServiceModel.SR.ConfigInvalidStartValue(System.Object,System.Object)">
            <summary>Gets localized string like: Start must be between 0 and {0}. Value passed in is {1}.</summary>
            <param name="param0">Parameter 0 for string: Start must be between 0 and {0}. Value passed in is {1}.</param>
            <param name="param1">Parameter 1 for string: Start must be between 0 and {0}. Value passed in is {1}.</param>
        </member>
        <member name="M:Microsoft.ApplicationServer.ServiceModel.SR.ConfigElementKeyNull(System.Object)">
            <summary>Gets localized string like: The '{0}' configuration element key cannot be null.</summary>
            <param name="param0">Parameter 0 for string: The '{0}' configuration element key cannot be null.</param>
        </member>
        <member name="M:Microsoft.ApplicationServer.ServiceModel.SR.ConfigElementKeysNull(System.Object)">
            <summary>Gets localized string like: At least one of the configuration element keys '{0}' must not be null.</summary>
            <param name="param0">Parameter 0 for string: At least one of the configuration element keys '{0}' must not be null.</param>
        </member>
        <member name="M:Microsoft.ApplicationServer.ServiceModel.SR.UTInvalidFormatSegmentOrQueryPart(System.Object)">
            <summary>Gets localized string like: UriTemplate does not support '{0}' as a valid format for a segment or a query part.</summary>
            <param name="param0">Parameter 0 for string: UriTemplate does not support '{0}' as a valid format for a segment or a query part.</param>
        </member>
        <member name="P:Microsoft.ApplicationServer.ServiceModel.SR.CertificateUnsupportedForHttpTransportCredentialOnly">
            <summary>Gets localized string like: Certificate-based client authentication is not supported in TransportCredentialOnly security mode. Select the Transport security mode.</summary>
        </member>
        <member name="P:Microsoft.ApplicationServer.ServiceModel.SR.UnableToLoadCertificateIdentity">
            <summary>Gets localized string like: Cannot load the X.509 certificate identity specified in the configuration</summary>
        </member>
        <member name="P:Microsoft.ApplicationServer.ServiceModel.SR.ConfigEndpointTypeCannotBeNullOrEmpty">
            <summary>Gets localized string like: The endpoint specified cannot be null or an empty string.  Please specify a valid endpoint.  Valid endpoint values can be found in the system.serviceModel/extensions/endpointExtensions collection.</summary>
        </member>
    </members>
</doc>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Sacha Barber
Software Developer (Senior)
United Kingdom United Kingdom
I currently hold the following qualifications (amongst others, I also studied Music Technology and Electronics, for my sins)

- MSc (Passed with distinctions), in Information Technology for E-Commerce
- BSc Hons (1st class) in Computer Science & Artificial Intelligence

Both of these at Sussex University UK.

Award(s)

I am lucky enough to have won a few awards for Zany Crazy code articles over the years

  • Microsoft C# MVP 2016
  • Codeproject MVP 2016
  • Microsoft C# MVP 2015
  • Codeproject MVP 2015
  • Microsoft C# MVP 2014
  • Codeproject MVP 2014
  • Microsoft C# MVP 2013
  • Codeproject MVP 2013
  • Microsoft C# MVP 2012
  • Codeproject MVP 2012
  • Microsoft C# MVP 2011
  • Codeproject MVP 2011
  • Microsoft C# MVP 2010
  • Codeproject MVP 2010
  • Microsoft C# MVP 2009
  • Codeproject MVP 2009
  • Microsoft C# MVP 2008
  • Codeproject MVP 2008
  • And numerous codeproject awards which you can see over at my blog

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.180515.1 | Last Updated 6 Dec 2011
Article Copyright 2011 by Sacha Barber
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid