How configure a per port / stub http proxy in Apache CXF WS in JBoss EAP 5.1?
Issue
- Some of our webservices are internal to our network running on another JBoss instance, while others are external to our organization. So I have to be routed through a HTTP proxy with authentication for external calls while I should not for internal.
- I know how to globally set a HTTP proxy to be used in the JVM, but is there a way in JAX-WS to set a HTTP proxy only for a certain web service client, so that I can configure the proxy to be used only for external web service calls? For example: some thing like setting custom properties using BindingProvider.getRequestContext().put(...).
Environment
- JBoss Enterprise Application Platform (EAP) 5.1.x
- Apache CXF Web Services (CXF WS) 2.1.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
