Exemplo n.º 1
0
 public V1ReturnAny deregister(V1RegistrationContext deregister)
     throws V1OperationFailed, V1InvalidRegistration {
   try {
     final RegistrationContext registrationContext =
         V1ToV2Converter.toV2RegistrationContext(deregister);
     producer.deregister(WSRPTypeFactory.createDeregister(registrationContext, null));
     return null;
   } catch (InvalidRegistration invalidRegistration) {
     throw V2ToV1Converter.toV1Exception(V1InvalidRegistration.class, invalidRegistration);
   } catch (OperationFailed operationFailed) {
     throw V2ToV1Converter.toV1Exception(V1OperationFailed.class, operationFailed);
   } catch (ResourceSuspended resourceSuspended) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Resource suspended", resourceSuspended);
   } catch (OperationNotSupported operationNotSupported) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Not supported", operationNotSupported);
   } catch (Exception e) {
     throw WSRP1ExceptionFactory.createWSException(V1OperationFailed.class, "Operation failed", e);
   }
 }