我使用RAD Studio(C ++ Builder)创建了一个WSDL服务,它使用Microsoft Visual Studio进行了很好的测试。现在我正在尝试将其用作RAD studio(C ++)中的应用程序。
static const char* defWSDL= "http://localhost:8080/wsdl/IAndroidService";
static const char* defURL = "http://localhost:8080/soap/IAndroidService";
static const char* defSvc = "IAndroidServiceservice";
static const char* defPrt = "IAndroidServicePort";
if (addr=="")
addr = useWSDL ? defWSDL : defURL;
Soaphttpclient::THTTPRIO* rio = HTTPRIO ? HTTPRIO : new Soaphttpclient::THTTPRIO(0);
if (useWSDL) {
rio->WSDLLocation = addr;
rio->Service = defSvc;
rio->Port = defPrt;
} else {
rio->URL = addr;
}
无论我做什么,我都会得到例外 rio-> WSDLLocation = addr;
或
rio->网址=地址;
这是例外
Exception class $C0000005 with message 'c0000005 ACCESS_VIOLATION'
我正在调用这样的服务
Soaphttpclient::THTTPRIO* riod;
bool useWSDL = True;
_di_IAndroidService service = NS_IAndroidService::GetIAndroidService(useWSDL,"",riod);
有人可以提供建议吗。
谢谢