1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.ksb.testclient1;
17
18 import org.apache.cxf.message.Message;
19 import org.apache.cxf.phase.PhaseInterceptorChain;
20 import org.kuali.rice.ksb.messaging.remotedservices.EchoService;
21 import org.kuali.rice.ksb.messaging.remotedservices.ServiceCallInformationHolder;
22
23 import javax.annotation.Resource;
24 import javax.ws.rs.core.HttpHeaders;
25 import javax.xml.ws.WebServiceContext;
26 import javax.xml.ws.handler.MessageContext;
27 import java.util.List;
28 import java.util.Map;
29
30 public class EchoService1Impl implements EchoService {
31 public String echo(String string) {
32 return string;
33 }
34
35 public String trueEcho(String string) {
36 System.out.println("I Was echoed!!!!");
37 return "hi mom";
38 }
39
40 public void captureHeaders() {
41 ServiceCallInformationHolder.stuff.put("capturedHeaders", PhaseInterceptorChain.getCurrentMessage().get(Message.PROTOCOL_HEADERS));
42 }
43 }