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>