简体   繁体   English

C#axis2客户端

[英]C# axis2 client

我是c#language.i的新手。我看到你把c#客户端应用程序写到了axis2 web service.i也想知道我如何为axis2应用程序编写C#客户端

I believe that Axis exposes WSDL in the normal way, so you should be able to use "Add Web Reference" from Visual Studio, point it at the relevant Axis WSDL URL , and use the autogenerated client proxy. 我相信Axis以正常方式公开WSDL,因此您应该能够使用Visual Studio中的“添加Web引用”,将其指向相关的Axis WSDL URL ,并使用自动生成的客户端代理。

I seem to remember there are some subtleties around using null vs empty arrays , but mostly it works fine - or did when I last tried several years ago, anyway. 我似乎记得使用null和空数组有一些微妙之处,但大多数情况下它工作正常 - 或者在我几年前的最后一次尝试时也是如此。

For any new web service development, I suggest you use WCF instead of the old-style ASMX web services framework that you would get from using "Add Web Reference". 对于任何新的Web服务开发,我建议您使用WCF而不是使用“添加Web引用”获得的旧式ASMX Web服务框架。 Use "Add Service Reference" instead. 请改用“添加服务引用”。 ASMX is next to obsolete, in the sense that only critical security fixes are expected. 从某种意义上说,ASMX已经过时了,预计只会有重要的安全修复程序。

Many AXIS2 services are configured with WS-Security enabled, and WCF is the only practical way to handle those. 许多AXIS2服务都配置了启用WS-Security,而WCF是处理这些服务的唯一实用方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM