高手来。.net收java的soap问题。

YSEE 2011-08-04 10:01:15
java端发送soap数据到.net webservice

现在的问题是 .net webservice 有 java发送来的 soap 包。但没解析成功。
给出劫的包。请高人给出 webservice 端接收的代码。

java soap包内容
POST /interface.asmx HTTP/1.1
Host: 111.111.111.111:1111
Connection: close
Content-Length: 616
SOAPAction: "http://www.xxxx.com/refreshUserOrder"
Accept: text/xml, multipart/related, text/html
Content-Type: text/xml;charset=utf-8

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://www.xxx.com"><soapenv:Header/><soapenv:Body><tem:refreshUserOrder><userOrder><serviceID>11831853</serviceID><commandID>10010</commandID><sequenceNo>20110804568052</sequenceNo><subMDN>123123123123</subMDN><USERNAME></USERNAME><PASSWORD></PASSWORD><STARTTIME>2011-08-0409:51:47</STARTTIME><VALIDTIME>2011-08-0409:51:47</VALIDTIME><FACTORY>1</FACTORY><PACKAGE>0</PACKAGE><PPFlag>1</PPFlag><OCS></OCS><ORDNO>20205951568052</ORDNO><RESERVED></RESERVED></userOrder></tem:refreshUserOrder></soapenv:Body></soapenv:Envelope>
HTTP/1.1 500 Internal Server Error
Connection: close
Date: Thu, 04 Aug 2011 01:53:55 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 4.0.30319
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Content-Length: 447

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Server did not recognize the value of HTTP Header SOAPAction: http://www.xxx.com/refreshUserOrder.</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope>
...全文
77 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
机器人 2011-08-05
  • 打赏
  • 举报
回复
你用个.net客户端调用下,拦截soap消息,比较下。看看谁又问题。
机器人 2011-08-05
  • 打赏
  • 举报
回复
在客户端装上fiddler, 用.net客户端运行一次,用java客户端运行一次。二次抓包比对。
YSEE 2011-08-05
  • 打赏
  • 举报
回复
获取不到参数怎么办?
threenewbee 2011-08-05
  • 打赏
  • 举报
回复
http://blog.csdn.net/w59879213/article/details/4031300
http://liyuandong.iteye.com/blog/567836
YSEE 2011-08-05
  • 打赏
  • 举报
回复
你方便给个qq?给你调试看看。
我调试总是找不到 soap message在那里。

12,165

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧