Java 天气预报WebService
发布日期:2021-05-10 01:14:57 浏览次数:9 分类:精选文章

本文共 1374 字,大约阅读时间需要 4 分钟。

���������������������������Java������������������������

���������������������������������������������������������������������WebService���������������������������

������������Ksoap2 ������������������������������HTTP���������������������������WebService������������������

  • ���������������������http://WebXml.com.cn/
  • ���������������http://www.webxml.com.cn/WebServices/WeatherWS.asmx

���������������������������

  • ������������������
    • ���������������������getWeather
    • ������������������������������������������������
      soapObject.addProperty("theCityCode", 3643);
  • 2.backend���������������

    ������HttpTransportSE ���������������������SoapSerializationEnvelope ���������������������������
    ���������������������DotNet������������������.NET���WebService���������

    3.���������������

    • ���������������������������
      if (envelope.getResponse() != null) {      SoapObject result = (SoapObject) envelope.bodyIn;      SoapObject detail = (SoapObject) result.getProperty(methodName + "Result");      System.out.println(detail.toString());  }
    • ������������������������������������������

    4.err Handle���

    ������������������������������������������������������������������������������

    ������������������������������

    • ������getWeather���������������������������������������������������������������������

    ���������������������������������������������������������������������������Service���������������������

    上一篇:maven打包发布
    下一篇:MyBatis框架测试 Srping+mybatis+maven

    发表评论

    最新留言

    哈哈,博客排版真的漂亮呢~
    [***.90.31.176]2025年04月18日 10时36分11秒