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 |
|---|---|
|
Adds a translation to the translation memory. | |
|
Adds an array of translations to the translation memory. | |
|
Returns an array of sentence lengths for each sentence of the given text. | |
|
Detects the language of a selection of text. | |
|
Detects the language of an array of strings. | |
|
Obtains a list of the languages supported by the Translator Service. | |
|
Obtains a list of the language codes supported by the Translator Service for speech synthesis. | |
|
Obtains a list of the language codes supported by the Translator Service. | |
|
Returns an array of alternative translations of the given text. | |
|
Returns an array of alternative translations of the passed array of text. | |
|
Returns a string with a URL to a wave stream of the passed in text in desired language. | |
|
Converts a text string from one language to another. | |
|
Translates an array of texts into another language. |