Java调用DotNet WebService为什么那么难?

本文详细介绍了如何在Java环境下使用Eclipse和Axis1.4库调用DotNet 2005开发的WebService。从服务器端创建WebService到客户端Java代码实现调用,包括关键参数设置和常见问题解决,如SOAPActionURI和接口参数的正确指定。
摘要由CSDN通过智能技术生成

前几日研究Java调用DotNet WebService,找了好多资料竟然没有好用的.将2日的艰辛拿出来分享,希望对朋友们有帮助。

 

.Net开发环境: VS DotNet 2005

Java开发环境:Eclipse3.1+JDK1.6+Axis1.4+mail.jar+ activation.jar

第一部分 服务器端.Net WebService开发

 

文件-〉新建-〉网站,选择Asp.net Web服务,建立WebService服务

using System;

using System.Web;

using System.Web.Services;

using System.Web.Services.Protocols;

 

[WebService(Namespace = "http://www.my.com/Rpc")]

[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]

public class Service : System.Web.Services.WebService

{

    public Service () {

 

评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值