delphi 如何调用java
如题
[解决办法]
调用java什么啊
[解决办法]
ShellExecute 调用应用程序
另外就是调用java webservice了
[解决办法]
ShellExecute 第四个参数就是命令行参数,每个参数用空格分开,首先你的程序得支持命令行参数
[解决办法]
- Delphi(Pascal) code
uses comobj;varurl:string;xmlHttp:Olevariant;responseText:Widestring;beginurl:='http://..............';//在这里传递参数xmlHttp:=CreateOleObject('Msxml2.XMLHTTP');xmlHttp.open('POST',url,false);xmlHttp.send(............);responseText:=xmlHttp.responseText;if xmlHttp.status='200' then....................else .......................;
[解决办法]
其中responseText就是你的java web程序response的内容,你解析一下就可以了
[解决办法]
[解决办法]