WCF发布WebService可以只生成一份wsdl吗? 不要import其他schema

canmeng 2011-10-31 03:11:57
问题描述:
我用WCF发布一个WebService,自动生成的wsdl引用了其他几个schema,如下所示
<xsd:schema targetNamespace="http://tempuri.org/Imports">
<xsd:import schemaLocation="http://localhost:8080/Service?xsd=xsd0" namespace="http://tempuri.org/"/>
<xsd:import schemaLocation="http://localhost:8080/Service?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
<xsd:import schemaLocation="http://localhost:8080/Service?xsd=xsd2" namespace="http://schemas.datacontract.org/2004/07


现在想要只生成一份wsdl文件,schema的内容都在wsdl里面定义,不要单独import另外的schema,请问可以办到吗? 应该在哪里设置?

Any help will be appreciated!
...全文
254 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
canmeng 2011-11-24
  • 打赏
  • 举报
回复
不知道是哪位同学使用我的账号发布的这个问题,麻烦告知我一声。
canmeng 2011-11-01
  • 打赏
  • 举报
回复
Up,期待高手答复。。

110,571

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧