privatevoidgetData(){
try{
/**
*开始取天气信息
*/
S
oapObjectfunGetWeatherInfo=newSoapObject("http://tempuri.org/","GetWeatherInfo");
funGetWeatherInfo.addProperty("CityID",AppConfig.cityCodeInWeatherWeb);
SoapSerializationEnvelopeenvelope=newSoapSerializationEnvelope(SoapEnvelope.VER12);
envelope.bodyOut=funGetWeatherInfo;
envelope.dotNet=true;
envelope.setOutputSoapObject(funGetWeatherInfo);
HttpTransportSEtransport=newHttpTransportSE(AppConfig.
webServiceUrlString);
transport.debug=true;
transport.call("http://tempuri.org/"+"GetWeatherInfo",envelope);
if(envelope.getResponse()!=null){
SoapObjectresult=(SoapObject)envelope.bodyIn;
Stringss=result.getProperty(0).toString();
weatherInfo=common.parseWebService(ss);
}
/**
*开始取预警信息
*/
SoapObjectfunGetWeatherWarning=newSoapObject("http://tempuri.org/","GetWeatherWarning");
funGetWeatherWarning.addProperty("CityID",AppConfig.cityCodeInWeatherWeb);
SoapSerializationEnvelopeenvelope_funGetWeatherWarning=newSoapSerializationEnvelope(SoapEnvelope.VER12);
envelope_funGetWeatherWarning.bodyOut=funGetWeatherWarning;
envelope_funGetWeatherWarning.dotNet=true;
envelope_funGetWeatherWarning.setOutputSoapObject(funGetWeatherWarning);
HttpTransportSEtransport_funGetWeatherWarning=newHttpTransportSE(AppConfig.webServiceUrlString);
transport_funGetWeatherWarning.debug=true;
transport_funGetWeatherWarning.call("http://tempuri.org/"+"GetWeatherWarning",envelope_funGetWeatherWarning);
if(envelope_funGetWeatherWarning.getResponse()!=null){
SoapObjectresult=(SoapObject)envelope_funGetWeatherWarning.bodyIn;
Stringss=result.getProperty(0).toString();
weatherWarning=common.parseWebService(ss);
}
}catch(Exceptione){
e.printStackTrace();
}
/**