2010-06-01 4 views
0

RESTful 웹 서비스를 만들었으며 SOAP없이이 서비스에 바이너리 파일을 보내려고합니다."mtom"을 지원하도록 jaxrs 끝점의 속성을 변경하는 방법

은 CXF 웹 사이트에 대한 몇 가지 정보가 있습니다 XOP

하지만 난 CXF JAX-RS 엔드 포인트를 얻을 수있는 방법을 찾아, 그리고 mtom-enabled 속성을 설정할 수 없습니다.

<jaxrs:server id="fis" address="http://172.20.41.40:8080/fis"> 
    <jaxrs:serviceBeans> 
     <ref bean="FaultInfoResource" /> 
     <ref bean="ExplorationResultResource" /> 
    </jaxrs:serviceBeans> 
</jaxrs:server> 

<bean id="FaultInfoService" parent="baseService" class="com.dfe.demo.FaultInfoService"> 
</bean> 
<bean id="FaultInfoResource" class="com.dfe.demo.FaultInfoResource"> 
    <property name="faultInfoService" ref="FaultInfoService"/> 
</bean> 

<bean id="ExplorationResultService" parent="baseService" class="com.dfe.demo.ExplorationResultService"> 
</bean> 
<bean id="ExplorationResultResource" class="com.dfe.demo.ExplorationResultResource"> 
    <property name="explorationResultService" ref="ExplorationResultService"/> 
</bean> 

그리고 내 서버 클래스는 다음과 같습니다 :

내 봄 설정은

ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(new String[]{"com/dfe/iss/config/applicationContext.xml","com/dfe/demo/yearlyplan/cxf-servlet.xml"}); 
JAXRSServerFactoryBean fib = (JAXRSServerFactoryBean) ctx.getBean("fis"); 
fib.create(); 

답변

1

이 시도 :

<beans> 
    <jaxrs:server id="bookstore1"> 
     <jaxrs:properties> 
      <entry key="mtom-enabled" value="true"/> 
     </jaxrs:properties> 
    </jaxrs:server> 
</beans> 
관련 문제