1 7 package org.exoplatform.services.wsrp.bind; 8 9 import java.rmi.RemoteException ; 10 import org.exoplatform.container.PortalContainer; 11 import org.exoplatform.services.wsrp.intf.WSRP_v1_ServiceDescription_PortType; 12 import org.exoplatform.services.wsrp.producer.ServiceDescriptionInterface; 13 import org.exoplatform.services.wsrp.type.InvalidRegistrationFault; 14 import org.exoplatform.services.wsrp.type.OperationFailedFault; 15 import org.exoplatform.services.wsrp.type.ServiceDescription; 16 import org.exoplatform.services.wsrp.type.ServiceDescriptionRequest; 17 18 19 23 public class WSRP_v1_ServiceDescription_Binding_SOAPImpl implements WSRP_v1_ServiceDescription_PortType { 24 25 private ServiceDescriptionInterface serviceDescriptionInterface; 26 27 public WSRP_v1_ServiceDescription_Binding_SOAPImpl() { 28 PortalContainer manager = PortalContainer.getInstance(); 29 serviceDescriptionInterface = (ServiceDescriptionInterface) manager. 30 getComponentInstanceOfType(ServiceDescriptionInterface.class); 31 } 32 33 public ServiceDescription getServiceDescription(ServiceDescriptionRequest getServiceDescription) 34 throws RemoteException , InvalidRegistrationFault, OperationFailedFault { 35 return serviceDescriptionInterface.getServiceDescription(getServiceDescription.getRegistrationContext(), 36 getServiceDescription.getDesiredLocales()); 37 } 38 39 } 40 | Popular Tags |