저는 Fuse와 WebServices에서 상대적으로 새로운 것 같습니다. 나는 BasicAuthAuthorizationInterceptor와 SOAP WebService를했다 , 이것은 실제 상황이며 일하고있어 :웹 서비스 용 Apache CXF Blueprint에서 속성 파일을 호출하여 사용자와 암호를 인스턴스화 할 수 있습니까?
<cxf:cxfEndpoint address="/SampleEp" id="insertSomethingToDB" serviceClass="com.example.sample_ep.SampleEp" wsdlURL="wsdl/SampleEP.wsdl">
<cxf:inInterceptors>
<ref component-id="securityInterceptor"/>
</cxf:inInterceptors>
</cxf:cxfEndpoint>
<bean
class="com.example.middleware.BasicAuthAuthorizationInterceptor" id="securityInterceptor">
<property name="users">
<map>
<entry key="user" value="password"/>
</map>
</property>
</bean>
그래서 더 보안을 추가, 나는 속성에서 사용자를 넣어 노력하겠습니다 프로젝트 외부 파일이 아이디어입니다 :
<cxf:cxfEndpoint address="/SampleEp" id="insertSomethingToDB" serviceClass="com.example.sample_ep.SampleEp" wsdlURL="wsdl/SampleEP.wsdl">
<cxf:inInterceptors>
<ref component-id="securityInterceptor"/>
</cxf:inInterceptors>
</cxf:cxfEndpoint>
<bean
class="com.example.middleware.BasicAuthAuthorizationInterceptor" id="securityInterceptor">
<property name="users">
<map>
<entry key="${cxf.user}" value="${cxf.password}"/>
</map>
</property>
</bean>
<bean> add some code to add a *.properties file outside the project </bean>
가능한가요? 아니면 정말 안좋은가요?
모두에게 감사드립니다.
blueprint.xml 또는 spring.xml 파일을 사용하고 있습니까? – Namphibian
Blueprint.xml 컨텍스트 –