C# 调用JAVA WebService

假如你的连接是 

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 测试通过

posted on 2012-09-21 11:12  freexiaoyu  阅读(10515)  评论(2编辑  收藏  举报