webService的简易介绍

1.webService :跨语言的调用数据。java项目可以调用c#的数据库数据。

2.webService服务端:显示客户端所要求的数据访问方法。

3.webService服务端:可以访问webService所暴露的方法。从而访问数据

4.webService 相关的网址分享:http://www.webxml.com.cn/zh_cn/index.aspx

webService的简单运用:

1.http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx?wsdl

2.用命令运行:wsimport -keep http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx?wsdl

将生成的文件放入所要运用的位置

3.根据http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx?wsdl调用

package com.zking.test;

import cn.com.webxml.MobileCodeWS;
import cn.com.webxml.MobileCodeWSSoap;

public class TestMob {
	public static void main(String[] args) {
		MobileCodeWS mobileCodeWS=new MobileCodeWS();
		MobileCodeWSSoap codeWSSoap=mobileCodeWS.getMobileCodeWSSoap();
		String str=codeWSSoap.getMobileCodeInfo("18873870231",null);
		System.out.println(str);
	}
}

报错:

http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx?wsdl对应的文件保存

哪行报错。删除哪行。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值