Click here to Skip to main content
15,895,740 members
Articles / Programming Languages / C# 4.0

JSON API

Rate me:
Please Sign up or sign in to vote.
4.90/5 (101 votes)
6 Dec 2011CPOL11 min read 315.5K   7.2K   243  
A simple look at how to share the JSON API to Web and Desktop.
<?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)


Written By
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

Comments and Discussions