Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unknow Error 0x800a1518

119 views
Skip to first unread message

Marco Hung

unread,
Apr 22, 2008, 3:29:47 AM4/22/08
to
Hi all,
 
I'm using Soap Tool Kit 3.0 to implement a client aplication (in VC6) to retrieve info. from a .NET webservices (in C#). The client sometimes return error "Unknow Error 0x800a1518". But, when I retry the same request, it work properly. Does anyone know the solutions?
 
Here's part of my code
  psmConnector.CreateInstance(__uuidof(HttpConnector30));
  psmConnector->Property["EndPointURL"] = _bstr_t("http://MyTesting/DoRequest.asmx");
  psmConnector->Connect();
  psmConnector->Property["SoapAction"] = bstrSoapAction;
  psmConnector->Property["EnableAutoProxy"] = VARIANT_TRUE;
  psmConnector->Property["ProxyServer"] = _bstr_t("<CURRENT_USER>");
  psmConnector->Property["Timeout"] = _variant_t( (long) 30000 ); // Set timeout to be 30s
 
  psmConnector->BeginMessage();
  psmSerializer.CreateInstance(__uuidof(SoapSerializer30));
  psmSerializer->Init(_variant_t((IUnknown *) psmConnector->InputStream));
  psmSerializer->StartEnvelope(_bstr_t(""), _bstr_t("STANDARD"), _bstr_t(""));
  psmSerializer->StartBody(_bstr_t("STANDARD"));
  psmSerializer->StartElement(_bstr_t(DoMyRequest), bstrNameSpace, _bstr_t("STANDARD"), _bstr_t("uri"));
   psmSerializer->StartElement(_bstr_t("strSession"), _bstr_t(""), _bstr_t("STANDARD"), _bstr_t("uri"));
   psmSerializer->WriteString(bsSessionID);
   psmSerializer->EndElement();
 
   psmSerializer->StartElement(_bstr_t("strUserID"), _bstr_t(""), _bstr_t("STANDARD"), _bstr_t("uri"));
   psmSerializer->WriteString(bsUserID);
   psmSerializer->EndElement();
 
   psmSerializer->StartElement(_bstr_t("iHandler"), _bstr_t(""), _bstr_t("STANDARD"), _bstr_t("uri"));
   psmSerializer->WriteString(_bstr_t(COMAPI::AfxMakeString(iHandler)));
   psmSerializer->EndElement();
 
   psmSerializer->StartElement(_bstr_t("iProcessID"), _bstr_t(""), _bstr_t("STANDARD"), _bstr_t("uri"));
   psmSerializer->WriteString(_bstr_t(COMAPI::AfxMakeString(iProcessID)));
   psmSerializer->EndElement();
 
   psmSerializer->StartElement(_bstr_t("strXMLRequest"), _bstr_t(""), _bstr_t("STANDARD"), _bstr_t("uri"));
   psmSerializer->WriteString(bsData);
   psmSerializer->EndElement();
 
  psmSerializer->EndElement();
  psmSerializer->EndBody();
  psmSerializer->EndEnvelope();
  hResult = psmSerializer->Finished();
 
  hResult = psmConnector->EndMessage();
 
  psmReader.CreateInstance(__uuidof(SoapReader30));
  psmReader->Load(_variant_t((IUnknown *) psmConnector->OutputStream), bstrNameSpace);
  *bsResult = _bstr_t(psmReader->Envelope->text).copy();
 
  psmConnector.Release();
  psmSerializer.Release();
  psmReader.Release();
 
Rgds,
Marco

Marco Hung

unread,
Apr 22, 2008, 4:03:19 AM4/22/08
to
The error code should be Unknow Error 0x800a151E

Marco Hung

unread,
Apr 22, 2008, 4:03:19 AM4/22/08
to
The error code should be Unknow Error 0x800a151E

Roger Wolter[MSFT]

unread,
May 25, 2008, 9:14:42 PM5/25/08
to
151E is an http connect error.  The list is here http://msdn.microsoft.com/en-us/library/ms995780.aspx 
 
I would strongly recommend against implementing new code with VS 6.0 and the Soap Toolkit.  Neither one of those technologies has been supported for many years so you're pretty much on your own if you have problems.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
0 new messages