问题标签 [ws-addressing]

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 投票
1 回答
1719 浏览

wcf - Manual addressing with secure customBinding on WCF service

I'm developing a web service for a WSDL defined externally. Access is done with HTTP/S (server and client certificates) and both the request and response are signed with the respective certificate. I have imported the WSDL in VS2010 with a service reference and added signing to the MessageContracts, set up the config file to do security and https and setup SSL on the port. I'm close to getting it working, but I need to enable manual addressing to insert a wsa:To element in the response, but can't figure out how to get that working.. Any help is appreciated.

Here's my current config section:

Most of this was auto-generated.

I know I need to set the manualAddressing attribute on httpsTransport to true, but then I get an exception because this setup is in message-level security. Would anyone know how to switch to transport-level security whilst keeping the rest the same? Since this is a customBinding, the mode attribute on the security element is not available.

thnx a lot, Gait.

BTW, I know how to set the wsa:To in code, but it get's lost on the encode response unless I can move to manual addressing..

0 投票
3 回答
1389 浏览

ruby - 如何使用 Savon 向 SOAP 标头添加属性?

我需要将此属性(xmlns:wsa="http://www.w3.org/2005/08/addressing")添加到soap标头中,如下所示:

我该怎么做,使用 Savon?

0 投票
1 回答
15317 浏览

wcf - 如何在 WCF 中使用 WS-Addressing 并设置 wsa:replyto 标头?

我正在使用 WCF 调用 BizTalk 服务。该服务需要在 SOAP 标头中设置 wsa:replyto 地址,以便在处理完成时能够进行“回调”。

我们正在使用带有来自 svcutil 的自动生成代码的合同优先方法(我们不能“只是”更改合同)...

而且无法在配置文件中执行...

我见过有人“覆盖”一些方法来制作自己的自定义标头 - 但这不是自定义标头,它是 SOAP 协议中的标准。

如何在 (SOAP) 标头中添加 wsa:replyto?

0 投票
2 回答
1978 浏览

wcf - Soap UI 和 WS-A 选项

我正在使用 MS Visual Studio 2008、C# 和 .net 4 开发一个简单的 Web 服务。我使用了 WCF 项目模板,通过这个,我能够创建一个站点并将其部署到 IIS 7.5。它几乎具有所有默认设置,只是我为 wsHttpBinding 添加了一个新的绑定配置,其中“安全模式=无”。

使用 Soap UI 4.0.1,我想测试此服务,但发现我必须在 WS-A“To:”字段中再次添加端点 URL。

有没有办法更改 wsdl 或端点,所以我不需要在 Soap UI 中使用 WS-A“To:”字段?当我已经提供 wsdl 来创建请求时,我不明白为什么 Soap UI 在 WS-A“To:”字段中再次需要端点 url。

0 投票
1 回答
680 浏览

svcutil.exe - svcutil 支持 WS-Addressing 和 WS-Policy

我正在使用模式优先的 Web 服务开发方法,方法是手动编码 WSDL/XSD,然后将其提供给 svcutil 工具以生成 .NET 数据和服务合同。我试图通过将“UsingAddressing”元素直接包含在绑定中和作为 WS-Policy 导入来将 WS-Addressing 引入到我的 WSDL 中。策略导入被忽略,但当“UsingAddress”直接包含在 WSDL 绑定中时出现以下错误:“来自命名空间的 WSDL 扩展元素“UsingAddressing”'http://www.w3.org/2006/05/addressing/wsdl ' 没有被处理”。

根据 MSDN,WCF 支持“UsingAddressing”元素(http://msdn.microsoft.com/en-us/library/ms996497.aspx),是不是 svcutil 不支持这个元素?

0 投票
2 回答
4916 浏览

c# - 如何手动覆盖 WCF 客户端发送的 WSA To 标头

我目前正在为我无法控制的 Java Web 服务编写 WCF 客户端。WCF 似乎使用端点地址填充 WSA To 标头,但此 Web 服务需要不同的值。

我目前正在尝试手动设置值,如下所示:

检查使用 Fiddler 生成和发送的请求,我可以看到 MessageID 标头已成功设置为“消息 ID”,而不是默认的 urn:uuid:[some uuid],但 To 标头仍设置为“端点地址”而不是“其他地址”。

还有其他方法可以覆盖标头值吗?

0 投票
1 回答
293 浏览

web-services - 如何影响响​​应 ws-addressing 动作元素?

似乎我对 cxf 实现的 web 服务的响应包含一个

有没有办法我可以删除骨灰盒,只保留 /WebserviceResponse 或使操作为空?

使用我们的网络服务的系统在操作上失败了。

0 投票
1 回答
1435 浏览

tomcat - 具有 ws 寻址功能的 jaxws 客户端上的 javax.xml.ws.WebServiceException

我在使用 jaxws 客户端调用 Web 服务时遇到了问题,在 Tomcat 中运行

代码如下:

当我从 Eclipse 运行工具运行代码时,该代码与 ws-addressing 功能一起正常工作,而不提供axis2.xml 文件

当我在 Tomcat 实例中运行它时,它给了我以下异常

javax.xml.ws.WebServiceException:获取客户端配置上下文时出错:系统正在尝试使用不可用的模块:在 org.apache.axis2.jaxws.ExceptionFactory.createWebServiceException(ExceptionFactory.java:173) 处寻址。 org.apache.axis2.jaxws.ExceptionFactory.makeWebServiceException(ExceptionFactory.java:118) 在 org.apache.axis2.jaxws.ClientConfigurationFactory.getClientConfigurationContext(ClientConfigurationFactory.getClientConfigurationContext(ClientConfigurationFactory. java:119) 在 org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:92) 在 org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:79)在 org.apache.axis2.jaxws。description.DescriptionFactory.createServiceDescription(DescriptionFactory.java:78) 在 org.apache.axis2.jaxws.spi.ServiceDelegate.(ServiceDelegate.java:218) 在 org.apache.axis2.jaxws.spi.Provider.createServiceDelegate(Provider.java :83) 在 org.apache.axis2.jaxws.spi.Provider.createServiceDelegate(Provider.java:79) 在 javax.xml.ws.Service.(Service.java:92) 在 javax.xml.ws.Service.create (Service.java:756) 在 wgs.v3.client.impl.V3ClientNoWsdl.invoke(V3ClientNoWsdl.java:89) 在 wgs.tx 的 wgs.v3.client.impl.V3ClientNoWsdl.callMethod(V3ClientNoWsdl.java:128)。 dispatcher.Sender.elab(Sender.java:204) 在 wgs.tx.dispatcher.Sender.elab(Sender.java:158) 在 wgs.tx.system.MessageDispatcherSender.processRequest(MessageDispatcherSender.java:159) 在 wgs.tx .system.MessageDispatcherSender.run(MessageDispatcherSender.java:99) 在 java.lang.Thread.run(Thread.java:595)

有人发出同样的问题吗?我无法摆脱这个

0 投票
1 回答
3850 浏览

wcf - 自定义 WCF 绑定等效于 WSHttpBinding 并关闭 WS-Addressing

我正在尝试创建需要由 Java 客户端使用的 WCF 服务。Java 客户端的要求是禁用 WS-Addressing。我必须使用 WSHttpBinding。首先,我对此有点陌生。我在网上做了一些快速搜索,但无法确定这是否是正确的解决方案。有人可以指出我正确的方向吗?

谢谢

0 投票
2 回答
5417 浏览

web-services - 如何在 JAX-WS 客户端中指定 ReplyTo EndpointReference?

我想使用 JAX-WS API 创建启用 WS-Addressing 的 Web 服务客户端。我使用 wsimport 从 WSDL 文件创建客户端存根,并且可以使用 AddressingFeature 启用/禁用 WS-Addressing,例如

但是,我在 Web 中找不到任何自定义 WS-Addressing ReplyTo/FaultTo 端点引用的示例。基本上我想创建一个如下所示的 WS 请求(请参阅wsa:ReplyTo元素):

如果使用 Spring Web Service 客户端,我可以添加端点引用。但是,我需要使用 JAX-WS 来完成。有任何想法吗?