call webservice
1. install soapsdk
2. write a webservice for test
public string Add(string ssLeft, string ssRight)
{
return ssLeft + " and " + ssRight;
}
3. call in ax
URL url;
xml xml;
COM WSCOM;
;
new InteropPermission(InteropKind::ComInterop).assert();
WSCOM = new COM("MSSOAP.SOAPClient30");
url = "http://localhost/webservicefortest/service.asmx?WSDL";
xml = WSCOM.mssoapinit(url);
xml = WSCOM.add("a","b");
info(xml);
posted on 2011-07-16 02:12 lingdanglfw 阅读(173) 评论(0) 编辑 收藏 举报