向vs2010添加Web服务 [英] add web service to vs2010

查看:92
本文介绍了向vs2010添加Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我向项目添加在线Web服务时,我得到Web服务的错误名称空间已经具有对象的定义


任何帮助请

OP有关从下面的注释中复制的错误的其他信息

错误1名称空间'CashUTest.ServiceReference1'已经包含'cashUDirect'的定义

解决方案

引用将Web服务添加到C#Web应用程序 [Error 1 The namespace 'CashUTest.ServiceReference1' already contains a definition for 'cashUDirect'

解决方案

Refer Adding web service to C# web application[^]


I have get the xsd file and generate the objects using the xsd.exe tool, then I have replace the soap header by the normal xml header I get it from serializing the object that I get from the xsd tool, here once I get the response I change the header than I deseralized like any other xml file it works


这篇关于向vs2010添加Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆