Re: WSDK synchronous proxying (was Re: SOAP problem with array encoding)

Martin Honnen <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization Liberty Development
Message-ID <[email protected]>

Hiran Chaudhuri wrote:

> "Martin Honnen" <[email protected]> wrote
> 
>>var webServiceProxyFactory = new WebServiceProxyFactory();
>>webServiceProxyFactory.createProxyAsync(
>>   'http://www.xmethods.net/sd/2001/BabelFishService.wsdl',
>>   'BabelFishPort',
>>   '',
>>   false,
>>   { onLoad: function (webServiceProxy) {
>>       var translation = webServiceProxy.BabelFish('en_pt', 'Do you have 
>>the key?');
>>       alert('typeof translation: ' + (typeof translation) + '; 
>>translation: ' + translation);

>>I get an alert showing the return value of the web service method call 
>>(e.g. webServiceProxy.BabelFish(...)) as a string but the string is empty.
> 

> The only thing I can imagine is that the return value does not have the type "String". It might be an object that is converted to the empty string when we try to display it. Therefore it might be possible there is a special way to get the translation from that return value. The problem: How do you find out?

My code sample checks the type of the return value and it is string, 
only the string is empty.



-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.