Bing Translator Web Service
Bing Translator Web Service / All Operations Resource Group / /V2/Soap.svc/Translate (Method)
In This Topic
    Method/V2/Soap.svc/Translate
    In This Topic
    Description
    Translates a text string from one language to another.
    Request (LanguageService_Translate_InputMessage)

    The request body is of type Translate.

    Request Body Parameters

    NameDescriptionData Type
     xml:string
     xml:string
     xml:string
     xml:string
     xml:string
     xml:string
     xml:string
    reservedFlags Element category Element contentType Element to Element from Element text Element appId Element Sequence Translate 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.
    from optional xs:string
    A string containing the language code of the source language. Must be a valid culture name.
    to optional xs:string
    A string containing the language code of the target language. Must be a valid culture name.
    contentType optional xs:string
    The format of the text being translated. The supported formats are "text/plain" and "text/html". Any HTML needs to be well-formed.
    category optional xs:string
    A string containing the category (domain) of the translation. Defaults to "general".
    reservedFlags optional xs:string
    Response (LanguageService_Translate_OutputMessage)

    The response body is of type TranslateResponse.

    Response Body Parameters

    NameDescriptionData Type
     xml:string
    TranslateResult Element Sequence TranslateResponse Element

    Overview

    Sequence
    TranslateResult optional xs:string
    See Also