From 871099e41d20f60120fa9409eeb4ab840c1fc1c8 Mon Sep 17 00:00:00 2001 From: Jim DeFabia Date: Tue, 25 Jul 2017 15:48:22 -0400 Subject: [PATCH] HPCC-17995 Document ESDL version and default_client_version attributes Signed-off-by: Jim DeFabia --- docs/DynamicESDL/DESDL-Mods/ESDLversion.xml | 40 +++++++++++++++++++++ docs/DynamicESDL/ESDL_LangRef_Includer.xml | 4 ++- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 docs/DynamicESDL/DESDL-Mods/ESDLversion.xml diff --git a/docs/DynamicESDL/DESDL-Mods/ESDLversion.xml b/docs/DynamicESDL/DESDL-Mods/ESDLversion.xml new file mode 100644 index 00000000000..05a0539e017 --- /dev/null +++ b/docs/DynamicESDL/DESDL-Mods/ESDLversion.xml @@ -0,0 +1,40 @@ + + + + <emphasis role="bold">version <indexterm> + <primary>version</primary> + </indexterm>and default_client_version</emphasis> + + + default_client_version + The version and default_client_version attributes (valid only for an + ESPService) allow you to specify the version to use when a version is not + explicitly specified in the request. + + The default_client_version is used + for API requests in SOAP format if the client doesn't specify the version. + The version is used for requests coming + from a web browser without a version decoration in the URL. + + These attributes provide better API backward compatibility while + allowing API developers to see the latest interface using a browser. + + If default_client_version is higher + than version, the service uses default_client_version for all requests that don't + specify a version. + + Even though defaults can be specified for a service, you should still + encourage API developers to specify a version in requests to ensure + compatibility between their application and the service. + + Example: + + ESPservice [version("0.02"), default_client_version("0.01")] EsdlExample +{ + ESPmethod EchoPersonInfo(EchoPersonInfoRequest, EchoPersonInfoResponse); + ESPmethod RoxieEchoPersonInfo(RoxieEchoPersonInfoRequest, RoxieEchoPersonInfoResponse); +}; + diff --git a/docs/DynamicESDL/ESDL_LangRef_Includer.xml b/docs/DynamicESDL/ESDL_LangRef_Includer.xml index a597393cb64..5ad3ef45f3f 100644 --- a/docs/DynamicESDL/ESDL_LangRef_Includer.xml +++ b/docs/DynamicESDL/ESDL_LangRef_Includer.xml @@ -245,7 +245,9 @@ - +