Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
<jaxws:client name="{http://cxf.apache.org/}MyService">
    <jaxws:properties>
        <entry key="ws-security.sts.client">
            <!-- direct STSClient config and creation -->
            <bean class="org.apache.cxf.ws.security.trust.STSClient">
                <constructor-arg ref="cxf"/>
                <property name="wsdlLocation" value="target/wsdl/trust.wsdl"/>
                <property name="serviceName" value="{http://cxf.apache.org/securitytokenservice}SecurityTokenService"/>
                <property name="endpointName" value=""{http://cxf.apache.org/securitytokenservice}SecurityTokenEndpoint"/>
                <property name="properties">
                    <map>
                        <entry key="ws-security.username" value="joe"/>
                        <entry key="ws-security.callback-handler" value="interop.client.KeystorePasswordCallback"/>
                        <entry key="ws-security.signature.properties" value="etc/alice.properties"/> 
                        <entry key="ws-security.encryption.properties" value="etc/bob.properties"/>			    			
                    </map>
                </property>
            </bean>            
        </entry> 
    </jaxws:properties>
</jaxws:client>

...