Share via


SOAP

[This is preliminary documentation and is subject to change.]

Contains the functionality to translate text using SOAP calls.

To access the methods below, add a service reference to: https://api.microsofttranslator.com/V1/SOAP.svc.

This can be done by following these steps:

1. Using an .NET Framework 3.5 project in Visual Studio (for example, Web Application or WPF Application), right click on the project node and select 'Add Service Reference'.

2. In the Add Service Reference window, enter https://api.microsofttranslator.com/V1/SOAP.svc into the Address field and click Go.

3. In the Namespace field enter TranslatorService (this is the namespace used in the example code).

4. Click OK.

Dd576292.clear(en-us,MSDN.10).gif Public Methods

Name Description

Detect Method

Queries the Translator Service to identify the language of a selected piece of text.

GetLanguageNames Method

Obtains a list of languages available for translation, localized into a desired language.

GetLanguages Method

Obtains a list of language codes available for translation.

Translate Method

Converts a text string from one language to another.