Previous Thread

8/14/2006 12:27:01 AM    Init SOAPSerializer with InputStream from HttpConnector30
Hi 
 
I try to call a webservice from Ax using SOAPToolkit 3.0 (LowLevel). I 
 
translated the VB example code from the toolkit users guide. 
 
Here is what i tried: 
 
void doTranslationLL(str languageCode, str textToTranslate) 
 
{ 
 
com     lComSerializer; 
 
com     lComConnector; 
 
str     lstr; 
 
CIVOSHSoapConnector2Seriallizer     lclsConnector2Serializer; 
 
; 
 
lclsConnector2Serializer = new CIVOSHSoapConnector2Seriallizer(); 
 
lComConnector = new Com('MSSOAP.HttpConnector30'); 
 
lComConnector.Property('EndPointURL',"http://www.xmethods.net/sd/2001/BabelFishService.wsdl"); 
 
lComConnector.connect(); 
 
lComConnector.Property('SoapAction','babelFish'); 
 
lComConnector.BeginMessage(); 
 
lComSerializer = new Com('MSSOAP.SoapSerializer30'); 
 
lComSerializer.init(lComConnector.InputStream()); 
 
... 
 
The problem occurs in the last line. When running the code, a errormessage 
 
'0x80070057 (E_INVALIDARG)' occurs. Someone once descirbed a workaround for 
 
exactly this problem, but unfotunately just very rough. 
 
Does anyone know how to solve this problem? 
 
thanks in advance! 
 
pfm