Java客户端调用 web service , 如何获取返回的 ArrayList 本帖最后由 xiaohui_2010 于 2014-05-16 22:56:03 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 其实就是个数组,将数组转成list即可。 你可以直接用MyEclipse生成 一个webService客户端,他会自动处理这个返回值的,这种返回的数组形式会处理成List 我用 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)请问:这是怎么回事 . . . SOAPAction 定义的不对,你看你发布的webservice 是多少。 类似下面,看看你的 是多少 。 POST /WebServices/WeatherWS.asmx HTTP/1.1Host: www.webxml.com.cnContent-Type: text/xml; charset=utf-8Content-Length: lengthSOAPAction: "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> 根据WSDL自动生成调用代码啊,这样他返回什么就接收什么 关于jquery返回值问题?求高手解答 求救:有个jsperreport报表,有时会生成白板pdf。 三年工作经验,该读那些书,大家帮我推荐推荐 JAVA能实现对已有网站的操作么 session的问题 struts2 标签checkboxlist实现竖排 预定系统的数据库设计 有三个对于Struts的问题请教 急!!用Hibernate 开发系统中currentSession方法不好使 取不到session 万事具备,只差东风了......送分88,祝大家明年发,发,发 InputStream能不能分割成多个固定大小byte[] ORACLE数据库客户端连接不到,紧急
在 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)请问:这是怎么回事 . . .
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>