2014-12-11 3 views
4

질문이 있습니다. Apache CXF를 사용하여 WS-Addressing을 구현하려고합니다. To 또는 Action과 같은 일부 헤더를 설정할 수는 있지만 From, ReplyTo 또는 FaultTo와 같은 다른 헤더를 설정할 방법을 찾지 못합니다.Apache CXF - WS에서 주소 지정, 주소 지정, 주소 지정

누구나 어떻게 해야할지 알고 있습니까?

답변

6

http://cxf.apache.org/docs/ws-addressing.html을 살펴보십시오.

soilworker,

AddressingProperties maps = new AddressingPropertiesImpl(); 
EndpointReferenceType ref = new EndpointReferenceType(); 
AttributedURIType add = new AttributedURIType(); 
add.setValue("http://localhost:9090/decoupled_endpoint"); 
ref.setAddress(add); 
maps.setReplyTo(ref); 
maps.setFaultTo(ref); 

((BindingProvider)port).getRequestContext() 
    .put("javax.xml.ws.addressing.context", maps); 

종류에 관해서 :이 페이지의 끝입니다