假如你的連接是
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 測試通過
