0

我已经使用 RAD Studio (C++ Builder) 创建了一个 WSDL 服务,并且使用 Microsoft Visual Studio 对其进行了很好的测试。现在我正在尝试将其用作 RAD 工作室(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->WSDLLLocation = addr;

或者

rio-> URL = 地址;

这是例外

Exception class $C0000005 with message 'c0000005 ACCESS_VIOLATION'

我正在这样调用服务

Soaphttpclient::THTTPRIO* riod;
bool useWSDL = True;
_di_IAndroidService service = NS_IAndroidService::GetIAndroidService(useWSDL,"",riod);

有人可以请教。

谢谢

4

0 回答 0