为了账号安全,请及时绑定邮箱和手机立即绑定

webService http://www.w3.org/XML/1998/namespace:lang' has already 问题

webService http://www.w3.org/XML/1998/namespace:lang' has already 问题

森林海 2018-12-06 12:27:01
The global attribute 'http://www.w3.org/XML/1998/namespace:lang' has already been declared.     我想这个问题在做webservice时肯定有朋友遇见过吧,你们是怎么出来的,搜了很多外国的帖子,大概也试了一下,还是不行,在这里求教高手了。   因为访问没有数据,我登录webservice服务器,查看错误日志,具体如下: [2013-01-08 15:30:08]    ErrorPage:====================================== [2013-01-08 15:30:10]    Error Time: 1/8/2013 3:30:10 PM [2013-01-08 15:30:10]    Error Url: http://ades-admin.go.com.hk/WebService/DataSetWebService.asmx [2013-01-08 15:30:10]    Error Message: The global attribute 'http://www.w3.org/XML/1998/namespace:lang' has already been declared. [2013-01-08 15:30:12]       at System.Xml.Schema.XmlSchemaSet.InternalValidationCallback(Object sender, ValidationEventArgs e)   at System.Xml.Schema.BaseProcessor.SendValidationEvent(XmlSchemaException e, XmlSeverityType severity)   at System.Xml.Schema.BaseProcessor.AddToTable(XmlSchemaObjectTable table, XmlQualifiedName qname, XmlSchemaObject item)   at System.Xml.Schema.Compiler.Prepare(XmlSchema schema, Boolean cleanup)   at System.Xml.Schema.XmlSchemaSet.Compile()   at System.Xml.Serialization.XmlSchemas.Compile(ValidationEventHandler handler, Boolean fullCompile)   at System.Web.Services.Description.SchemaCompiler.Compile(XmlSchemas schemas)   at System.Web.Services.Description.WebServicesInteroperability.AnalyzeDescription(ServiceDescriptionCollection descriptions, BasicProfileViolationCollection violations)   at System.Web.Services.Description.WebServicesInteroperability.CheckConformance(WsiProfiles claims, ServiceDescriptionCollection descriptions, BasicProfileViolationCollection violations)   at ASP.defaultwsdlhelpgenerator_aspx.Page_Load(Object sender, EventArgs e) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\DefaultWsdlHelpGenerator.aspx:line 1439   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)   at System.Web.UI.Control.OnLoad(EventArgs e)   at System.Web.UI.Control.LoadRecursive()   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
查看完整描述

2 回答

?
回首忆惘然

TA贡献1847条经验 获得超11个赞

正常的新建service不行吗?
查看完整回答
反对 回复 2018-12-09
?
叮当猫咪

TA贡献1776条经验 获得超12个赞

自己解决了,这个问题实质不是影响数据出来的关键因素, 是因为我连接了21个数据库中一个连接失败影响的。
查看完整回答
反对 回复 2018-12-09
  • 2 回答
  • 0 关注
  • 447 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号