# Web Service - Bing Translator

**URL:** <https://forum.inductiveautomation.com/t/web-service-bing-translator/10062>\
**Category:** Ignition\
**Created:** [May 27, 2015, 5:05pm UTC](https://forum.inductiveautomation.com/t/web-service-bing-translator/10062 "2015-05-27T17:05:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![phale](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@phale](https://forum.inductiveautomation.com/u/phale)\
**Post date:** [May 27, 2015, 5:05pm UTC](https://forum.inductiveautomation.com/t/web-service-bing-translator/10062/1 "2015-05-27T17:05:39Z")

</div>

Having trouble configuring my first web service.  
WSDL = [api.microsofttranslator.com/V2/soap.svc?wsdl](http://api.microsofttranslator.com/V2/soap.svc?wsdl)  
Port = BasicHttpBinding\_LanguageService  
Operation = Translate  
AppId = Valid / Registered ID  
Text = Hola  
from = es  
to = en  
contentType = I left blank  
category = I left blank

Script Below  
wsvar = system.ws.runWebService(‘Spanish To English’)  
var1 = wsvar.getChild(‘TranslateResult’).getValue()  
print var1

Which returns Null. Shows up as None in the Output window.

Arg… Help please.

---

<div class="post-metadata">

**Author:** ![phale](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@phale](https://forum.inductiveautomation.com/u/phale)\
**Post date:** [May 28, 2015, 9:50pm UTC](https://forum.inductiveautomation.com/t/web-service-bing-translator/10062/2 "2015-05-28T21:50:38Z")

</div>

Could I use this Python API? [http://pythonhosted.org/goslate/](http://pythonhosted.org/goslate/)

This is a Python API that allows free translation by using Google’s translate website.

---

<div class="post-metadata">

**Author:** ![jtx2](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jtx2](https://forum.inductiveautomation.com/u/jtx2)\
**Post date:** [August 3, 2015, 12:51pm UTC](https://forum.inductiveautomation.com/t/web-service-bing-translator/10062/3 "2015-08-03T12:51:18Z")

</div>

Have you been able to get the google translate to work? I’m guessing no since Google lists Python 2.6 as the minimum requirement. [https://developers.google.com/api-client-library/python/apis/translate/v2](https://developers.google.com/api-client-library/python/apis/translate/v2)

---

<div class="post-metadata">

**Author:** ![jtx2](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jtx2](https://forum.inductiveautomation.com/u/jtx2)\
**Post date:** [August 3, 2015, 1:53pm UTC](https://forum.inductiveautomation.com/t/web-service-bing-translator/10062/4 "2015-08-03T13:53:25Z")

</div>

I have been trying to find a third party translate library but keep running into null file pointer errors… This is possibly related, [https://inductiveautomation.com/forum/viewtopic.php?f=72&t=14102&p=51464&hilit=library#p51464](https://inductiveautomation.com/forum/viewtopic.php?f=72&t=14102&p=51464&hilit=library#p51464)  
Looks like I need to update a server to 7.7.5 and try some more…

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [August 3, 2015, 8:48pm UTC](https://forum.inductiveautomation.com/t/web-service-bing-translator/10062/5 "2015-08-03T20:48:57Z")

</div>

Heavily modified and stripped down Goslate. More like inspired by… 😉  
[google\_translate\_2015-08-03\_1634.proj](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/7fd48dcc23249a8e0383552f7a41a7197756c485.proj) (1.87 KB)

Usage: shared.google.translate(phrase, sourceLanguage, targetLanguage, [fullSet])

fullSet will return the full response from Translate. Useful if you need the romanized version of a result (example: translating from Japanese)

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/71ea410a23d975bf944b397e8ce5e2bad0221372.jpg)

---

<div class="post-metadata">

**Author:** ![jtx2](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jtx2](https://forum.inductiveautomation.com/u/jtx2)\
**Post date:** [August 3, 2015, 10:04pm UTC](https://forum.inductiveautomation.com/t/web-service-bing-translator/10062/6 "2015-08-03T22:04:56Z")

</div>

Jordan that works great. I was starting to work on this, and decided to check back and found your solution. Thanks

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [August 17, 2015, 10:51pm UTC](https://forum.inductiveautomation.com/t/web-service-bing-translator/10062/7 "2015-08-17T22:51:03Z")

</div>

@jtx2: Everything okay then? Was just coming back to revisit the thread when your entries disappeared.

Would have answered sooner but we’re on day 4 of no water at our house. Since all good crises have a name, I decided on “Well-mageddon”…

Things are back on track, though. Thinking I’ll have to rename it to “Hydropalooza”. 😆
