现在的位置: 首页 > 综合 > 正文

C# 调用JAVA WebService

2012年12月31日 ⁄ 综合 ⁄ 共 315字 ⁄ 字号 评论关闭

假如你的连接是 

http://192.168.1.31:8080/webapi/services/StudentService

在你的项目右添加服务引用

http://192.168.1.31:8080/webapi/services/StudentService?WSDL

ServiceReference1.StudentServicePortTypeClient client = new ServiceReference1.StudentServicePortTypeClient();
MessageBox.Show(client.getJsonDataByName("xiaoming"));

Student是JAVA中的类

OK 测试通过

抱歉!评论已关闭.