Export (0) Print
Expand All

SOAP

To start using the SOAP API for the Microsoft Translator service you will first need to ensure you are using a project that is configured to use, at least, the .NET 3.5 Framework.

Once your project is set up you will need to add a service reference for the Microsoft Translator SOAP interface to your project. To do this, right-click on the project and select 'Add Service Reference'.

Enter the URL http://api.microsofttranslator.com/V2/Soap.svc into the Address field and click Go. A Soap service should appear in the left menu. Set the namespace property to TranslatorService and click OK to add the client proxy classes to the project.

You will now be able to create an instance of the TranslatorService in your code and call the various methods available.

Public Methods

Name Description

Microsoft.Translator.AddTranslation Method

Adds a translation to the translation memory.

Microsoft.Translator.AddTranslationArray Method

Adds an array of translations to the translation memory.

Microsoft.Translator.BreakSentences Method

Returns an array of sentence lengths for each sentence of the given text.

Microsoft.Translator.Detect Method

Detects the language of a selection of text.

Microsoft.Translator.DetectArray Method

Detects the language of an array of strings.

Microsoft.Translator.GetLanguageNames Method

Obtains a list of the languages supported by the Translator Service.

Microsoft.Translator.GetLanguagesForSpeak Method

Obtains a list of the language codes supported by the Translator Service for speech synthesis.

Microsoft.Translator.GetLanguagesForTranslate Method

Obtains a list of the language codes supported by the Translator Service.

Microsoft.Translator.GetTranslations Method

Returns an array of alternative translations of the given text.

Microsoft.Translator.GetTranslationsArray Method

Returns an array of alternative translations of the passed array of text.

Microsoft.Translator.Speak Method

Returns a string with a URL to a wave stream of the passed in text in desired language.

Microsoft.Translator.Translate Method

Converts a text string from one language to another.

Microsoft.Translator.TranslateArray Method

Translates an array of texts into another language.

Show:
© 2014 Microsoft