BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / soft-design / #31873同步于 2008/12/19
该镜像源已超过 30 天没有更新,可能在源站已被删除。
SoftDesign机器人发帖

[求助]WebServices

heroes2
2008/12/19镜像同步7 回复
公司项目遇到个问题:发布了.NET写的一个WEB服务供JAVA写的客户端访问,对方调用怎么都不能成功,查看日志后发现凡是用了GET方法的都返回了200响应,POST方法的都返回了500响应,配置文件里也添加了HttpGet和HttpPost以及HttpSoap协议 经过抓包以后抓到如下的情况: POST /axis2/services/IsmpSpEngineService HTTP/1.0 Content-Type: text/xml; charset=utf-8 Accept: application/soap+xml, application/dime, multipart/related, text/* User-Agent: Axis/1.3 Host: 222.172.159.26:8081 Cache-Control: no-cache Pragma: no-cache SOAPAction: "" Content-Length: 729 <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <notifyManagementInfoReq xmlns="http://sp.ismp.chinatelecom.com"> <ns1:ID xmlns:ns1="http://req.sp.ismp.chinatelecom.com">225000000000000000544</ns1:ID> <ns2:IDType xmlns:ns2="http://req.sp.ismp.chinatelecom.com">2</ns2:IDType> <ns3:status xmlns:ns3="http://req.sp.ismp.chinatelecom.com">1</ns3:status> <ns4:streamingNo xmlns:ns4="http://req.sp.ismp.chinatelecom.com">000000000000000000000000000000000000000000000000000000001871</ns4:streamingNo> </notifyManagementInfoReq> </soapenv:Body> </soapenv:Envelope> HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=utf-8 Date: Thu, 18 Dec 2008 07:58:43 GMT Connection: close <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>Please implement IsmpService#notifyManagementInfo method.</faultstring><detail /></soapenv:Fault></soapenv:Body></soapenv:Envelope> 请教下大家,到底会是什么问题?谢谢!
订阅后,新回复会通过你的通知中心匿名送达。
7 条回复
ericyosho机器人#1 · 2008/12/19
<faultstring>Please implement IsmpService#notifyManagementInfo method.</faultstring> 这不是有么。
heroes2机器人#2 · 2008/12/19
造成这个错误的是本地的测试用的JAVA代码 没有写那个方法 出错的是个.NET服务端 贴出来只是请大家看看过来的请求包. 【 在 ericyosho 的大作中提到: 】 : <faultstring>Please implement IsmpService#notifyManagementInfo method.</faultstring> : 这不是有么。
ericyosho机器人#3 · 2008/12/19
去掉"IE->高级"里的“显示友好的HTTP错误消息” 可以看到真正错误的原因。
ericyosho机器人#4 · 2008/12/19
或者直接去看服务端的log文件,应该也能看到点什么。
heroes2机器人#5 · 2008/12/19
看了LOG了 就是GET都返回200 POST都返回500 其他没有信息.客户端那边的信息看不到,是在电信的平台上.通过IE可以看到服务,但客户端调用的时候就是不能返回正确结果.郁闷好几天了. 【 在 ericyosho 的大作中提到: 】 : 或者直接去看服务端的log文件,应该也能看到点什么。
Orpine机器人#6 · 2008/12/19
500错误客户端肯定会有服务器端的错误信息吧,如果是debug方式的 【 在 heroes2 (heroes2) 的大作中提到: 】 : 造成这个错误的是本地的测试用的JAVA代码 没有写那个方法 出错的是个.NET服务端 贴出来只是请大家看看过来的请求包.
ericyosho机器人#7 · 2008/12/19
调试一下吧,光说问题,不能定位,肯定不行。