首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

WEB服务器为什么读不到参数解决办法

2012-01-22 
WEB服务器为什么读不到参数用C++写的一个客户端(SOAPToolkit3.0),向服务器发送了数据(用抓包工具抓到的):

WEB服务器为什么读不到参数
用C++写的一个客户端(SOAP   Toolkit   3.0),向服务器发送了数据(用抓包工具抓到的):
    <?xml   version= "1.0 "   encoding= "UTF-8 "   standalone= "no "   ?>  
-   <soap:Envelope   xmlns:SOAPSDK1= "http://www.w3.org/2001/XMLSchema "   xmlns:SOAPSDK2= "http://www.w3.org/2001/XMLSchema-instance "   xmlns:SOAPSDK3= "http://schemas.xmlsoap.org/soap/encoding/ "   xmlns:soap= "http://schemas.xmlsoap.org/soap/envelope/ ">
-   <soap:Body>
-   <SOAPSDK4:AddOrder   xmlns:SOAPSDK4= "http://tempuri.org/ ">
    <strName> aaaaa </strName>  
    </SOAPSDK4:AddOrder>
    </soap:Body>
    </soap:Envelope>
但服务器无法读到参数strName
服务器代码(.net   2003   C#):
[WebMethod]
public   string   AddOrder(string   strXml)
{
if(strXml   !=   " ")
return   "ok ";
else
return   "false ";
}
从网页上测试服务器是正确的.
客户端怎么会生成xmlns:SOAPSDK1,这些东西代码并没有加.

[解决办法]
gsoap用的比较多吧,没用过这个 soap toolkit
[解决办法]
没有碰到过

热点排行