🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.webservices.soap
Article #145

Is is a bug of c++builder 6? Or is only my fault?

#145
From: zhongqf
Date: Mon, 26 Dec 2005 10:39
62 lines
2282 bytes
Everybody, :*(


To use webservice provided by others, i import the wsdl into my
project, but i find if i drop off the network cable when the remote
function is calling, It will caused an exception but i can't catch it
by my try...catch... clause.


here is my code snippet.


In WebService.h/cpp ( Auto-generated by WSDL importer )


namespace ns_webservice{
    __interface
INTERFACE_UUID("{C6575F7C-3A54-CE1E-84CD-F8C547F48856}")
WebServicePortType : public IInvokable
    {
    public:
         virtual bool Service() = 0;
    };
    typedef DelphiInterface<WebServicePortType> _di_WebServicePortType;



    _di_WebServicePortType GetWebServicePortType(bool useWSDL=false,
AnsiString addr="");



};


In MyForm.cpp

...
CoInitialize(NULL);
_di_WebServicePortType service;
service= WebServicePortType();


try{
     service->Service();       // Drop off the network cable when
Service is calling.


}catch(ERemotableException &err){


     // CAN NOT CATCH HERE


}catch(Exception &err){
     // AND HERE
}catch(...){
     // ADD HERE
} 


Does anyone here can tell me why.................
Technical Details
Message-ID: <1135593542.504705.270960@f14g2000cwb.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11096a,9c6954290449e27c,start
X-Google-Attributes: gid11096a,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!f14g2000cwb.googlegroups.com!not-for-mail
From: zhongqf@gmail.com
Newsgroups: borland.public.cppbuilder.webservices.soap
Subject: Is is a bug of c++builder 6? Or is only my fault?
Date: 26 Dec 2005 02:39:02 -0800
Organization: http://groups.google.com
Lines: 63
Message-ID: <1135593542.504705.270960@f14g2000cwb.googlegroups.com>
NNTP-Posting-Host: 125.100.110.122
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1135593548 1748 127.0.0.1 (26 Dec 2005 10:39:08 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 26 Dec 2005 10:39:08 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Maxthon; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: f14g2000cwb.googlegroups.com; posting-host=125.100.110.122;
   posting-account=YjJxZg0AAAB94QPjqTcRujEQKGPWAFuB