问题标签 [wsdl]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
6 回答
35284 浏览

.net - wsdl.exe 错误:无法从命名空间“...”导入绑定“...”

在我创建的 WSDL 上运行 wsdl.exe 时,出现此错误:

错误:无法从命名空间“SomeNS”导入绑定“SomeBinding”。

  • 无法导入操作“someOperation”。
  • 这些成员可能无法派生。

我正在使用文档文字样式,据我所知,我正在遵守所有规则。

总而言之,我有一个有效的 WSDL,但该工具不喜欢它。

我正在寻找的是是否有人对 wsdl.exe 工具有很多经验并且知道一些我不知道的秘密问题。

0 投票
3 回答
6842 浏览

c# - C# 的 WSDL 生成器

有谁知道为用 C# 编写的服务合同生成 WSDL 的好工具(即使用 WCF 标记为“[OperationContract]”的一组方法)?我发现的所有工具都以相反的方式工作:从 WSDL 创建代码存根。我不想手动插入 WSDL 文件。我找到了用于 php 和 J2EE 的工具,但没有找到 C#。谢谢!

0 投票
9 回答
110791 浏览

.net - WSDL.exe 的位置

我最近听说过 WSDL.Exe,但我不知道在哪里可以找到这个程序。有谁知道我在哪里可以找到或下载它?

0 投票
4 回答
663 浏览

.net - Adding .net Webservice references

I'm getting near completely different objects from the same WSDL file when I try to Add a Web Reference depending if I am using Express or Pro version of the vs2008 .NET IDE.

1) Why is this happening? I'd expect the WSDL's to act the same across platforms--clearly they are not! 2) How do I determine what tool/wizard the IDE is calling when I select "Add Service Reference".

Details: The VB.NET Express version is adding objects that are desired and expected. I'd like to use the IDE to add the service (not muck with wsdl.exe or svcutil.exe).

I'm using vs2008 Pro v9.0.30729.1 on Windows Server 2003. Express version 9.0.21022.8 RTM on XP.The respective Reference.vb shows the same header "This code was generated by a tool. Runtime Version:2.0.50727.3053".

The wizard UI's to add the service WSDL are visually different between the two IDEs.

Express has Strict On and Pro has Strict Off. The general IDE Strict settings seem to have no control over this.

Java/Eclipse are having no issues with these WSDLs.

0 投票
6 回答
11155 浏览

php - 在 PHP 中验证对 WSDL 的传入 SOAP 请求

的内置PHP扩展SOAP不会验证传入SOAP请求中的所有内容XML SchemaWSDL. 它确实会检查基本实体的存在,但是当你有一些复杂的东西比如simpleType限制时,扩展几乎会忽略它们的存在。

验证包含在中的SOAP请求的最佳方法是什么?XML SchemaWSDL

0 投票
2 回答
2105 浏览

python - 在 jython 中提供/使用 Web 服务的最简单方法是什么?

我有一个需要提供/使用 Web 服务的 Tomcat 应用程序。由于与 Python 中的可能相比,Java Web 服务是一场噩梦(xml、代码生成等),因此我想从您使用 jython 而不是 java 来提供/使用 Web 服务的经验中学习。

到目前为止,我所做的涉及使http://pywebsvcs.sourceforge.net/适应Jython。我仍然收到错误(命名空间、类型等),尽管其中一些对于最简单的服务是成功的。

0 投票
11 回答
132664 浏览

c# - 如何在不重新编译的情况下在 .NET 中动态切换 Web 服务地址?

我有引用 Web 服务的代码,我希望该 Web 服务的地址是动态的(从数据库、配置文件等读取),以便轻松更改。它的一个主要用途是部署到机器名称和 IP 地址不同的多个环境中。Web 服务签名在所有部署中都是相同的,只是位于其他位置。

也许我刚刚被 Visual Studio“添加 Web 引用”向导宠坏了——不过,这似乎应该是相对容易的事情。

0 投票
3 回答
2702 浏览

c# - 使用 WSDL.exe 生成 Web 服务代理时默认使用不同的 URL

我的项目中有许多共享类型的 Web 服务。

为简单起见,我将使用两个 Web 服务进行演示。

WebService1 在http://MyServer/WebService.asmx webService2 在http://MyServer/WebService.asmx

当我为这两个服务生成代理时,我使用:

wsdl /sharetypes http://MyServer/WebService1.asmx http://MyServer/WebService2.asmx /appsettingurlkey:WebServiceUrl /namespace:MyNamespace /out:MyProxy.cs

问题是代理文件中每个 Web 服务的 appsettingurlkey 都是相同的。我希望能够指定多个 appsettingurlkey 参数。这是如何实现的?我认为自从 /sharetypes 参数可用以来,应该有一个解决方案可以专门为每个识别的 Web 服务指定 appsettingurlkey。

如果 wsdl.exe 无法做到这一点,你会建议我做什么?我宁愿不更新 wsdl.exe 输出的生成代码,也不想通过将 Url 传递给 Web 服务的每个实例的整个应用程序。

0 投票
5 回答
152206 浏览

web-services - WSDL 验证器?

是否有任何在线服务可用于验证 Web 服务 WSDL 文件?

0 投票
2 回答
10552 浏览

asp.net - ASP.NET Web 服务上 WSDL 中所需参数的 minOccurs="0"

我正在使用 Microsoft Visual Web Developer 2005 (Express Edition) 编写一个简单的 Web 服务,动态生成的 WSDL 的所有参数都有一个 minOccurs="0"。

如何在不诉诸于创建静态 WSDL 文件的情况下获得所需参数的 minOccurs="1"?

我需要使用 ASP.NET Web 服务(.NET v2) 来执行此操作。所以,没有WCF。