读书人

Delphi7调用.net的webservice 传进去的

发布时间: 2012-03-09 16:54:57 作者: rapoo

Delphi7调用.net的webservice 传进去的参数为空
/// <summary> /// 快速通道 webservice接口 /// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
public class FastChannelServices : System.Web.Services.WebService
{ [WebMethod]
[SoapDocumentMethod(Action = "",RequestNamespace ="http://soapServer.FastChannel.fsti.com")]

public string FastChannelInterface(string requestData)

上面是.net部分

http://125.77.107.174:8090/FastChannelServices.asmx?wsdl
这个是访问的地址
请大家帮忙

[解决办法]
把wsdl文件导入delphi就可以了
但delphi7对跨语言的webservice支持的不是很好
[解决办法]
建议使用 RemObject 这一套控件,网上有非常详细的介绍,支持 .net 及 delphi ,非常非常强大。 delphi 本身对 WebService 的支持是最基本及最简单的,如果想做商业化应用,学习 RemObject 是最快的途径。

读书人网 >.NET

热点推荐