1 | /*
|
---|
2 | * To change this template, choose Tools | Templates
|
---|
3 | * and open the template in the editor.
|
---|
4 | */
|
---|
5 |
|
---|
6 | package gov.hhs.fha.nhinc.hiemunsubscribe;
|
---|
7 |
|
---|
8 | import javax.annotation.Resource;
|
---|
9 | import javax.ejb.Stateless;
|
---|
10 | import javax.jws.WebService;
|
---|
11 | import javax.jws.HandlerChain;
|
---|
12 | import javax.xml.ws.WebServiceContext;
|
---|
13 | import org.oasis_open.docs.wsn.bw_2.ResourceUnknownFault;
|
---|
14 | import org.oasis_open.docs.wsn.bw_2.SubscriptionManager;
|
---|
15 | import org.oasis_open.docs.wsn.bw_2.UnableToDestroySubscriptionFault;
|
---|
16 | import org.apache.commons.logging.Log;
|
---|
17 | import org.apache.commons.logging.LogFactory;
|
---|
18 |
|
---|
19 | /**
|
---|
20 | *
|
---|
21 | * @author jhoppesc
|
---|
22 | */
|
---|
23 | @WebService(serviceName = "SubscriptionManagerService", portName = "SubscriptionManagerPort", endpointInterface = "org.oasis_open.docs.wsn.bw_2.SubscriptionManager", targetNamespace = "http://docs.oasis-open.org/wsn/bw-2", wsdlLocation = "META-INF/wsdl/HiemUnsubscribe/NhinSubscription.wsdl")
|
---|
24 | @Stateless
|
---|
25 | @HandlerChain(file = "HiemUnsubscribeSoapHeaderHandler.xml")
|
---|
26 | public class HiemUnsubscribe implements SubscriptionManager {
|
---|
27 |
|
---|
28 | @Resource
|
---|
29 | private WebServiceContext context;
|
---|
30 | private static Log log = LogFactory.getLog(HiemUnsubscribe.class);
|
---|
31 |
|
---|
32 | public org.oasis_open.docs.wsn.b_2.UnsubscribeResponse unsubscribe(org.oasis_open.docs.wsn.b_2.Unsubscribe unsubscribeRequest) throws ResourceUnknownFault, UnableToDestroySubscriptionFault {
|
---|
33 | return new HiemUnsubscribeImpl().unsubscribe(unsubscribeRequest, context);
|
---|
34 | }
|
---|
35 |
|
---|
36 | }
|
---|