来自 WCF 问题的 WSDL [英] WSDL from WCF Issue

查看:33
本文介绍了来自 WCF 问题的 WSDL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 NeoLoad 生成和执行 SOAP 请求,并且在提供 WSDL 时,它似乎不喜欢它们所指的导入.

我想我需要扁平化 WCF 服务生成的 WSDL.

我可以使用任何技术将其展平吗?

我一直在阅读:

http://blogs.msdn.com/dotnetinterop/archive/2008/09/23/flatten-your-wsdl-with-this-custom-servicehost-for-wcf.aspx

http://blogs.thinktecture.com/cweyer/archive/2007/05/10/414840.aspx

这是我应该尝试的东西吗?

解决方案

是的,有些客户对 Microsoft 实施 WSDL 和 XSD 的(符合标准的)方式有问题.

您提到的这两篇文章是很好的起点 - 它们展示了如何让 WCF 服务呈现扁平化的 WSDL(其中包含 XSD).

Codeplex 上的 WCF Extras 也是如此,除此之外,它还做了一些其他事情(最显着的是将 XML 注释从 C# 或 VB.NET 代码导出到 WSDL).强烈推荐.

I'm trying to use NeoLoad to generate and execute SOAP requests and upon supplying the WSDL, it doesn't seem to like the imports that they are referring to.

I'm thinking I would need to flatten the WSDL generated by the WCF service.

Are there any techniques I could use to flatten it?

I've been reading:

http://blogs.msdn.com/dotnetinterop/archive/2008/09/23/flatten-your-wsdl-with-this-custom-servicehost-for-wcf.aspx

http://blogs.thinktecture.com/cweyer/archive/2007/05/10/414840.aspx

Would this be something I should be trying out?

解决方案

Yes, some clients have trouble with the (standards-compliant) way that Microsoft has implemented the WSDL and XSD.

Those two articles you mention are great starting points - they show how you can get your WCF service to render out a flattened WSDL (which includes the XSD inside it).

The same goes for WCF Extras on Codeplex, which also does a few more things in addition (most notably exporting the XML comments from your C# or VB.NET code into the WSDL). Highly recommended.

这篇关于来自 WCF 问题的 WSDL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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