Y
yj_119
Unregistered / Unconfirmed
GUEST, unregistred user!
用c#写了个最简单的webservice,如下
[WebMethod]
public string HelloWorld() {
return "Hello World";
}
[WebMethod]
public bool Login(string UserName, string PassWord) {
if (UserName == "sw" && PassWord == "sw"
{
return true;
}
else
{
return false;
}
}
在delphi7中导入后,通过HTTPRIO1调用,如下:
procedure TForm1.Button1Click(Sender: TObject);
var
ff : webservicesoap;
s : widestring;
begin
ff := HTTPRIO1 as webServiceSoap;
s := ff.HelloWorld;//报错
showmessage((HTTPRIO1 as WebServiceSoap).HelloWorld);//报错
if (HTTPRIO1 as WebServiceSoap).login(edit1.Text,edit2.Text) then
showmessage('ok')
else
showmessage('dddd');
end;
请问大家是和原因?谢谢
[WebMethod]
public string HelloWorld() {
return "Hello World";
}
[WebMethod]
public bool Login(string UserName, string PassWord) {
if (UserName == "sw" && PassWord == "sw"
{
return true;
}
else
{
return false;
}
}
在delphi7中导入后,通过HTTPRIO1调用,如下:
procedure TForm1.Button1Click(Sender: TObject);
var
ff : webservicesoap;
s : widestring;
begin
ff := HTTPRIO1 as webServiceSoap;
s := ff.HelloWorld;//报错
showmessage((HTTPRIO1 as WebServiceSoap).HelloWorld);//报错
if (HTTPRIO1 as WebServiceSoap).login(edit1.Text,edit2.Text) then
showmessage('ok')
else
showmessage('dddd');
end;
请问大家是和原因?谢谢