本帖最后由 xiaohui_2010 于 2014-05-16 22:56:03 编辑

解决方案 »

  1.   

    其实就是个数组,将数组转成list即可。
      

  2.   

    你可以直接用MyEclipse生成 一个webService客户端,他会自动处理这个返回值的,这种返回的数组形式会处理成List
      

  3.   

    我用 jdk 的 wsimport 生成的客户端后 , 测试时 , 出现了以下 异常:    Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: System.Web.Services.Protocols.SoapException: 服务器未能识别 HTTP 头 SOAPAction 的值: http://tempuri.org/CertBind。     (说明:CertBind 为服务方提供的操作)
       在 System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
       在 System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
       在 System.Web.Services.Protocols.SoapServerProtocol.Initialize()
       在 System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)请问:这是怎么回事 . . .
      

  4.   

    SOAPAction  定义的不对,你看你发布的webservice  是多少。
      

  5.   

    类似下面,看看你的 是多少 。 
    POST /WebServices/WeatherWS.asmx HTTP/1.1
    Host: www.webxml.com.cn
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "http://WebXml.com.cn/getRegionCountry"<?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <getRegionCountry xmlns="http://WebXml.com.cn/" />
      </soap:Body>
    </soap:Envelope>
      

  6.   

    根据WSDL自动生成调用代码啊,这样他返回什么就接收什么