Exemplo n.º 1
0
 public V1RegistrationContext register(V1RegistrationData register)
     throws V1MissingParameters, V1OperationFailed {
   try {
     final RegistrationData registrationData = V1ToV2Converter.toV2RegistrationData(register);
     RegistrationContext registrationContext =
         producer.register(WSRPTypeFactory.createRegister(registrationData, null, null));
     return V2ToV1Converter.toV1RegistrationContext(registrationContext);
   } catch (MissingParameters missingParameters) {
     throw V2ToV1Converter.toV1Exception(V1MissingParameters.class, missingParameters);
   } catch (OperationFailed operationFailed) {
     throw V2ToV1Converter.toV1Exception(V1OperationFailed.class, operationFailed);
   } catch (OperationNotSupported operationNotSupported) {
     throw WSRP1ExceptionFactory.createWSException(
         V1OperationFailed.class, "Not supported", operationNotSupported);
   }
 }