Version 3

     

    The standard client configuration is defined in standard-jaxws-client-config.xml

     

    Client side port configuration

    You can use stub properties on the client side to chose from one of the configuration presets:

     Hello endpoint = service.getPort(Hello.class);
    ((StubExt) endpoint).setConfigName("Standard WSSecurity Client");

     

    Available configuration

    Standard Client

    <jaxws-config xmlns="urn:jboss:jaxws-config:2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:javaee="http://java.sun.com/xml/ns/javaee"
                  xsi:schemaLocation="urn:jboss:jaxws-config:2.0 jaxws-config_2_0.xsd">
    
       <client-config>
          <config-name>Standard Client</config-name>
       </client-config>
    
    </jaxws-config>]

    Standard WSAddressing Client

    <jaxws-config xmlns="urn:jboss:jaxws-config:2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:javaee="http://java.sun.com/xml/ns/javaee"
                  xsi:schemaLocation="urn:jboss:jaxws-config:2.0 jaxws-config_2_0.xsd">
    
       <client-config>
          <config-name>Standard WSAddressing Client</config-name>
          <post-handler-chains>
             <javaee:handler-chain>
                <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
                <javaee:handler>
                   <javaee:handler-name>WSAddressing Handler</javaee:handler-name>
                   <javaee:handler-class>org.jboss.ws.extensions.addressing.jaxws.WSAddressingClientHandler</javaee:handler-class>
                </javaee:handler>
             </javaee:handler-chain>
          </post-handler-chains>
       </client-config>
    
    </jaxws-config>

     

    Standard SOAP 1.2 WSAddressing Client Since 2.0.3 (Native)

    <jaxws-config xmlns="urn:jboss:jaxws-config:2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:javaee="http://java.sun.com/xml/ns/javaee"
                  xsi:schemaLocation="urn:jboss:jaxws-config:2.0 jaxws-config_2_0.xsd">
    
       <client-config>
          <config-name>Standard SOAP 1.2 WSAddressing Client</config-name>
          <post-handler-chains>
             <javaee:handler-chain>
                <javaee:protocol-bindings>##SOAP12_HTTP</javaee:protocol-bindings>
                <javaee:handler>
                   <javaee:handler-name>WSAddressing Handler</javaee:handler-name>
                   <javaee:handler-class>org.jboss.ws.extensions.addressing.jaxws.WSAddressingClientHandler</javaee:handler-class>
                </javaee:handler>
             </javaee:handler-chain>
          </post-handler-chains>
       </client-config>
    
    </jaxws-config>

    Standard WSSecurity Client

    <jaxws-config xmlns="urn:jboss:jaxws-config:2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:javaee="http://java.sun.com/xml/ns/javaee"
                  xsi:schemaLocation="urn:jboss:jaxws-config:2.0 jaxws-config_2_0.xsd">
    
       <client-config>
          <config-name>Standard WSSecurity Client</config-name>
          <post-handler-chains>
             <javaee:handler-chain>
                <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
                <javaee:handler>
                   <javaee:handler-name>WSSecurityHandlerOutbound</javaee:handler-name>
                   <javaee:handler-class>org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient</javaee:handler-class>
                </javaee:handler>
             </javaee:handler-chain>
          </post-handler-chains>
       </client-config>
    
    </jaxws-config>