How to specify target namespace programmitcally at runtime for a jax-ws client proxy ?

Solution Verified - Updated -


  • We need some guidance on how to programmatically set the target namespace at runtime for a jax-ws client proxy.
  • We have situation where we need call a multiple SOAP web services, but the only difference between these web services is that the namespace is different there are lots of trading partners that are hosting it.
  • Each web service has the same set of operations.
  • Is it possible to stay plain vanilla jax-ws rather than resorting to some cxf specific stuff ? Any code examples on how to do would be greatly appreciated.


  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
  • JBossWS-CXF

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In