【发布时间】:2015-07-21 21:36:36
【问题描述】:
我正在尝试使用教程为 Soap 服务开发消费者 http://cxf.apache.org/docs/developing-a-consumer.html
在“使用上下文设置连接属性”部分中,我正在查看下面的代码
// Set request context property.
java.util.Map<String, Object> requestContext =
((javax.xml.ws.BindingProvider)port).getRequestContext();
requestContext.put(ContextPropertyName, PropertyValue);
// Invoke an operation.
port.SomeOperation();
谁能告诉我是否可以使用 requestContext 属性设置代理服务器设置以及如何设置?我的代码在代理后面运行,我需要传出 SOAP 调用才能使用代理服务器设置。
【问题讨论】:
标签: java apache web-services soap cxf