VC调webService救助 本帖最后由 sndaxdrs 于 2010-04-11 16:08:49 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://download.csdn.net/source/2230015我的资源你去下来看看 不知道你的webservice调用怎么写的 我就是按这个文档写的 你参考一下 不行的话在研究 你那就是发送的数据错误你自己比较下你贴的xml 你看看成功和失败发送的xml一样不? 是有细微差别。比如 成功的 URL 属性是这样的 <areaId xsi:type="xsd:int">1</areaId>失败的是这样的: <areaId xsi:encodingStyle="xsd:int">1</areaId>但是这个地方我在程序 中没找到修改的地方。 还有就是我不知道是不是因为这样 送别导致的。还有 成功的 XML前三行是这样的 <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" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns0="urn:com-shanda-deposit-service-AllDepositService" xmlns:xsd1="http://com.shanda.deposit.service/AllDepositService.xsd"> <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <tns0:newDepositCard>失败的XML前三行是这样的 <xsi:Envelope xsi:encodingStyle="" xmlns:xsi="http://schemas.xmlsoap.org/soap/envelope/"><xsi:Body xsi:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <tns0:newDepositCard xsi:encodingStyle="">在程序中, 我导入的 dll文件是这样的#import "msxml4.dll" using namespace MSXML2; #import "C:\Program Files\Common Files\MSSoap\Binaries\MSSOAP1.dll" exclude("IStream", "ISequentialStream", "_LARGE_INTEGER", "_ULARGE_INTEGER", "tagSTATSTG", "_FILETIME")using namespace MSSOAPLib;希望明白人能帮我 分析一下。 问题到底出在哪里。 看我博客里OpenAPI系列的几篇分析文章 请问这是属于什么控件 "消息反射"的概念是Win32API就有的,还是MFC设计出来的? https如何保持连接状态? 如何将一个CString字符串作为另一个CString的Format函数里的格式化串 flash的activex控件问题 在Debug版本的下程序能用,但在在Rlease版本的下程序不能用? 请帮忙:使用select模型时遇到的问题... 如何让程序在新建时同时打开两个子窗口(MDI)? 屏幕取词 多线程下如何通过HDC句柄来实时显示图像 在View类中使用初始化列表初始化CFileDialog类不可行吗? VC图像处理
我的资源你去下来看看 不知道你的webservice调用怎么写的 我就是按这个文档写的 你参考一下 不行的话在研究
你那就是发送的数据错误
你自己比较下你贴的xml 你看看成功和失败发送的xml一样不?
<areaId xsi:type="xsd:int">1</areaId>
失败的是这样的:
<areaId xsi:encodingStyle="xsd:int">1</areaId>
但是这个地方我在程序 中没找到修改的地方。 还有就是我不知道是不是因为这样 送别导致的。
还有 成功的 XML前三行是这样的 <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" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns0="urn:com-shanda-deposit-service-AllDepositService" xmlns:xsd1="http://com.shanda.deposit.service/AllDepositService.xsd">
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<tns0:newDepositCard>失败的XML前三行是这样的
<xsi:Envelope xsi:encodingStyle="" xmlns:xsi="http://schemas.xmlsoap.org/soap/envelope/">
<xsi:Body xsi:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<tns0:newDepositCard xsi:encodingStyle="">在程序中, 我导入的 dll文件是这样的#import "msxml4.dll"
using namespace MSXML2; #import "C:\Program Files\Common Files\MSSoap\Binaries\MSSOAP1.dll" exclude("IStream", "ISequentialStream", "_LARGE_INTEGER", "_ULARGE_INTEGER", "tagSTATSTG", "_FILETIME")
using namespace MSSOAPLib;
希望明白人能帮我 分析一下。 问题到底出在哪里。