java调用osb上面的ps,ps有ip限制,请问在java中该使用什么方法

月下孤狼 2013-03-12 04:05:23
java调用osb上面的ps,ps有ip限制,请问在java中该使用什么方法
正常情况下在header中有:
请问在java中如何添加这个user headers
<con:endpoint name="ProxyService$ESBEOP$ProxySvc$telecomOpenSvc04" xmlns:con="http://www.bea.com/wli/sb/context">
<con:service>
<con:operation>call</con:operation>
</con:service>
<con:transport>
<con:uri>/ESBEOP/ProxySvc/telecomOpenSvc04</con:uri>
<con:mode>request-response</con:mode>
<con:qualityOfService>best-effort</con:qualityOfService>
<con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
<tran:user-header name="X-Forwarded-For" value="211.147.230.106"/>
<http:Content-Type>text/xml; charset=utf-8</http:Content-Type>
<http:SOAPAction>""</http:SOAPAction>
</tran:headers>
<tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
</con:request>
<con:response xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<tran:headers xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
<http:Content-Type>text/xml</http:Content-Type>
</tran:headers>
<tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
</con:response>
</con:transport>
<con:security>
<con:transportClient>
<con:username><anonymous></con:username>
</con:transportClient>
<con:messageLevelClient>
<con:username>TESTWXYYT</con:username>
<con:principals>
<con:group>AdminChannelUsers</con:group>
<con:group>IntegrationOperators</con:group>
<con:group>Operators</con:group>
</con:principals>
</con:messageLevelClient>
</con:security>
</con:endpoint>
...全文
1235 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
七神之光 2013-03-13
  • 打赏
  • 举报
回复

25,980

社区成员

发帖
与我相关
我的任务
社区描述
高性能WEB开发
社区管理员
  • 高性能WEB开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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