文件名称:Android调用Webservice
文件大小:1.77MB
文件格式:RAR
更新时间:2018-08-19 05:54:28
Webservice
Webservice System.out.println("××1××进入getWeather方法"); SoapObject soapObject = new SoapObject(nameSpaceWeather, methodWeather); ///这边1960是江苏如皋的地区码,这个也是通过这个webservice的方法查的 soapObject.addProperty("theCityCode", "1960"); ///免费用户userid为空 soapObject.addProperty("userId", ""); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope( SoapEnvelope.VER11); envelope.bodyOut = soapObject; envelope.dotNet = true; envelope.setOutputSoapObject(soapObject); HttpTransportSE httpTransportSE = new HttpTransportSE(urlWeather); System.out.println("××2××基本服务设置完毕,下面开始调用服务");
【文件预览】:
Android调用Webservice
----更多源码打包下载.url(108B)
----本源码使用帮助.txt(1KB)
----Webservice0517()
--------bin()
--------更多源码打包下载.url(108B)
--------res()
--------proguard-project.txt(781B)
--------ic_launcher-web.png(50KB)
--------本源码使用帮助.txt(1KB)
--------assets()
--------gen()
--------src()
--------.project(850B)
--------.classpath(608B)
--------project.properties(563B)
--------AndroidManifest.xml(957B)
--------libs()