이 주석은 Apache CXF 관련 구성 설정을 엔드포인트에 추가합니다. 엔드포인트 속성은 Spring 구성 파일에 지정할 수도 있습니다. 예를 들어 끝점에서 WS-Security를 구성하려면 Spring 구성 파일에서 jaxws:properties
요소를 사용하여 끝점 속성을 추가할 수 있습니다.
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
... >
<jaxws:endpoint
id="MyService"
address="https://localhost:9001/MyService"
serviceName="interop:MyService"
endpointName="interop:MyServiceEndpoint"
implementor="com.foo.MyService">
<jaxws:properties>
<entry key="ws-security.callback-handler" value="interop.client.UTPasswordCallback"/>
<entry key="ws-security.signature.properties" value="etc/keystore.properties"/>
<entry key="ws-security.encryption.properties" value="etc/truststore.properties"/>
<entry key="ws-security.encryption.username" value="useReqSigCert"/>
</jaxws:properties>
</jaxws:endpoint>
</beans>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
... >
<jaxws:endpoint
id="MyService"
address="https://localhost:9001/MyService"
serviceName="interop:MyService"
endpointName="interop:MyServiceEndpoint"
implementor="com.foo.MyService">
<jaxws:properties>
<entry key="ws-security.callback-handler" value="interop.client.UTPasswordCallback"/>
<entry key="ws-security.signature.properties" value="etc/keystore.properties"/>
<entry key="ws-security.encryption.properties" value="etc/truststore.properties"/>
<entry key="ws-security.encryption.username" value="useReqSigCert"/>
</jaxws:properties>
</jaxws:endpoint>
</beans>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow