在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
Delphi动态调用Java的WebService —— 基于“Axis2发布WebService例子(HelloWorld)” uses ComObj;
var WsObject: Variant; reslt:String; name:String; begin try //WsObject:=Unassigned; try WsObject := CreateOleObject('MSOSOAP.SoapClient30'); except WsObject := CreateOleObject('MSSOAP.SoapClient30'); end; try WsObject.mssoapinit('http://localhost:8080/HelloWorld/services/HelloWorld?wsdl'); ShowMessage('存储服务连接成功!'); finally end; except on E: Exception do ShowMessage('存储服务连接失败!!错误信息:' + E.Message); end; name:='gan'; reslt:=WsObject.gethelloWorld(name); ShowMessage(reslt);
end. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论