有关vc实现soap客户端的问题 本帖最后由 jimcold 于 2012-02-03 14:10:11 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 下面是目标的xml结构:POST /Services/UserService.asmx HTTP/1.1Host: interface.edu24ol.comContent-Type: text/xml; charset=utf-8Content-Length: lengthSOAPAction: "http://www.edu24ol.com/UserLogin"<?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> <UserLogin xmlns="http://www.edu24ol.com/"> <accountId>string</accountId> <password>string</password> <accountType>string</accountType> <encRet>string</encRet> </UserLogin> </soap:Body></soap:Envelope>问题是我的程序连接是成功了,也收到目标的返回信息,不过返回的消息提示是目标方定义的信息有误代码,目标方也给出参数有误的可能原因1,传递的参数有空值2,加密字符串有错误,解密后跟accountid不对应我对web的东西不是太熟悉,请哪位大侠帮忙看看,感激不尽 肯定是数据填充的问题了,应该是加密那块,服务器需要的是unicode形式的,不过我加密的是单字节字符串,该怎么改呢 WSAEventSelect 为什么要给监听套接字注册 FD_CLOSE 事件 求助,UDP通信接收延时问题 vector<CPoint>传给LPPOINT参数报错 如何在我定义的窗口内加文本? 调用对话框时出现“试图执行系统不支持的操作” 请问这个程序的错误是什么意思 求图像浏览程序源代码 mfc dll向mfc主程序传递结构体 利用HOOK抓取对话框内容的问题 紧急求助:关于菜单的 mfc 动态修改对话框背景问题 IWebBrowser2设置安全级别
POST /Services/UserService.asmx HTTP/1.1
Host: interface.edu24ol.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.edu24ol.com/UserLogin"<?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>
<UserLogin xmlns="http://www.edu24ol.com/">
<accountId>string</accountId>
<password>string</password>
<accountType>string</accountType>
<encRet>string</encRet>
</UserLogin>
</soap:Body>
</soap:Envelope>
问题是我的程序连接是成功了,也收到目标的返回信息,不过返回的消息提示是目标方定义的信息有误代码,目标方也给出参数有误的可能原因
1,传递的参数有空值
2,加密字符串有错误,解密后跟accountid不对应
我对web的东西不是太熟悉,请哪位大侠帮忙看看,感激不尽