js写的soap可调用webserver的方法却不能把参数传过去

[WebService(Namespace   =   "http://adventureworksSystem.com/")]
[WebServiceBinding(ConformsTo   =   WsiProfiles.BasicProfile1_1)]
public   class   Service   :   System.Web.Services.WebService
{
        public   Service   ()   {

                //如果使用设计的组件,请取消注释以下行  
                //InitializeComponent();  
        }
        [WebMethod]
        public   string   GetProducts(string   MaxAmount)
        {
                return   MaxAmount   +   "abcd";
        }        
}
这是webserver 数据挖掘研究院


<?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>
        <GetProducts   xmlns="http://adventureworksSystem.com/">
            <MaxAmount> gggg </MaxAmount>
        </GetProducts>
    </soap:Body>
</soap:Envelope>
这是发送部分

<?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>
<GetProductsResponse   xmlns="http://adventureworksSystem.com/">
<GetProductsResult> abcd </GetProductsResult>
</GetProductsResponse>
</soap:Body>
</soap:Envelope>
这是接收到的部分
小弟刚学,请大牛指点,谢谢

post过去之后,soap接口返回什么,先确定是发送格式问题,还是接收的问题

可以试试把发送的XML换成SOAP   1.2的格式

返回的就是
<?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>   数据挖掘交友
<GetProductsResponse       xmlns="http://adventureworksSystem.com/">  
<GetProductsResult>   abcd   </GetProductsResult>  
</GetProductsResponse>  
</soap:Body>  
</soap:Envelope>
如果返回的是下面这个就对了
<?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>  
<GetProductsResponse       xmlns="http://adventureworksSystem.com/">  
<GetProductsResult>   ggggabcd   </GetProductsResult>  


</GetProductsResponse>  
</soap:Body>  
</soap:Envelope>
所以因该是接收的问题吧

Create By Any-Extract(WL-AE)

[数据挖掘专家] [数据挖掘研究院] [数据挖掘论坛] [数据挖掘实验室]
上一篇:webservices 基本问题
下一篇:xsl 转换 xml 的问题,向大家请教
最新评论共有 0 位网友发表了评论 , 查看所有评论
发表评论( 不能超过250字,需审核,请自觉遵守互联网相关政策法规。 )
匿名?
数据挖掘网站导航 数据挖掘论坛导航
  • 数据挖掘工具
  • 数据挖掘论坛
  • DataCruncher - Cognos
  • MineSet - MathSoft
  • Intelligent Miner - GainSmarts
  • Sqlserver - SAS - Clementine
  • CART - Weka - WizSoft
  • NeuroShell - ModelQuest
  • data mining tools - Darwin
  • 数据挖掘交友
  • 数据挖掘博客
  • 数据挖掘工具
  • 数据挖掘资源
  • 数据挖掘技术算法
  • 数据挖掘相关期刊、会议
  • 研究院联盟合作专区
  • 数据挖掘基础与相关技术
  • 数据挖掘厂商与就业
  • 数据挖掘研究者乐园
  • 知名厂商数据挖掘工具资料
  • 国内数据挖掘实验室
  • Foreign Data Mining Lab
  • 热点关注
  • W3C概述
  • ASP+soap调用web service的问题,高手帮忙
  • 什么是语义网?
  • RSS History
  • 求助,PHP讀取XML文件
  • xml+xsl+js实现一个有横向列的导航菜单?
  • XML基础之 DataSet加载XML数据文件
  • 如何在xml中保存图片,以二进制流的形式保存
  • XML & 数据融合
  • Final Component of the Complete Meta Dat
  • 论坛最新话题
  • Foundations of Statistical Natural Langu
  • Game Theory meet Data Mining: A Recent P
  • System Building: How does it help or hin
  • 数据挖掘与Clementine培训
  • 新手报到
  • 求 SASEM 客户流失预测分析
  • 数据挖掘工程师/搜索研究院—北京——无线
  • 数据挖掘入门介绍(如何着手数据挖掘)
  • Information Overload Survey Results
  • The INEX 2005 Workshop on Element Retrie
  • 相关资讯
  • What's Still Wrong with SQL Native XML I
  • Final Component of the Complete Meta Dat
  • What's Still Wrong with SQL Native XML I
  • XML及其技术指南
  • 保存.NET应用程序设置
  • 在.NET Framework中轻松处理XML数据(4
  • 将改变我们生活的这些XML应用之一
  • XML、Web服务和.NET框架
  • flash中通过XMLSocket监控生产系统(2
  • 将改变我们生活的这些XML应用之二
  • 数据挖掘实验室资料
  • 数据挖掘博客地址
  • 数据挖掘实验室网站地址
  • Prepare for Medicare audits by using dat
  • 注册成为SAS用户与爱好者俱乐部会员
  • 水南梅
  • 明日烟
  • 新人报道
  • 下载
  • 厦门服务器托管,450元/月—0592-5177319 高
  • 买空间送域名--0592-5177319 高静