Bing Translator Web Service
Bing Translator Web Service / All Operations Resource Group / /V2/Soap.svc/Detect (Method)
In This Topic
    Method/V2/Soap.svc/Detect
    In This Topic
    Description
    Use the Detect Method to identify the language of a selected piece of text.
    Request (LanguageService_Detect_InputMessage)

    The request body is of type Detect.

    Request Body Parameters

    NameDescriptionData Type
     xml:string
     xml:string
    text Element appId Element Sequence Detect Element

    Overview

    Sequence
    appId optional xs:string
    A string containing "Bearer" + " " + access token.
    text optional xs:string
    A string representing the text to split into sentences. The size of the text must not exceed 10000 characters.
    Response (LanguageService_Detect_OutputMessage)

    The response body is of type DetectResponse.

    A string containing a two-character Language code for the given text.

    Response Body Parameters

    NameDescriptionData Type
     xml:string
    DetectResult Element Sequence DetectResponse Element

    Overview

    Sequence
    DetectResult optional xs:string
    See Also