Delphi与WebService,怎么用?
没有接触过WebService,现在有个项目必须要用到
看着书做了一个最简单的asmx
<%@ WebService Language="C#" Class="Test" %>
using System;
using System.Web.Services;
public class Test {
[WebMethod]
public int Add(int a,int b)
{
return a + b;
}
}
怎么在Delphi里调用呢?为什么File->New->Other->WebService->WSDL Importer,输入http://localhost/test.asmx?sdl,我看别人就是说的这样做的啊,为什么会出错呢?错误信息是“missing <definition> node of namespace”,讨厌.net