Thread View: borland.public.cppbuilder.webservices.soap
1 messages
1 total messages
Started by zhongqf
Mon, 26 Dec 2005 10:39
Is is a bug of c++builder 6? Or is only my fault?
Author: zhongqf
Date: Mon, 26 Dec 2005 10:39
Date: Mon, 26 Dec 2005 10:39
62 lines
2282 bytes
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.................
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads