public string createUserLdap(User user)
 {
     securityBoundary = new SecurityBoundary();
     try
     {
         return securityBoundary.createUserLdap(user);
     }
     catch (BusinessException e)
     {
         throw new WebFaultException<GeneralResponse>
             (new GeneralResponse
             {
                 message = e.Message,
                 status = GeneralResponse.STATUS_ERROR,
                 code = "400"
             }, HttpStatusCode.BadRequest);
     }
     catch (PlatformException e)
     {
         throw new WebFaultException<GeneralResponse>
             (new GeneralResponse
             {
                 message = e.Message,
                 status = GeneralResponse.STATUS_ERROR,
                 code = "500"
             }, HttpStatusCode.BadRequest);
     }
 }
 public User authenticationResource(string email, string password)
 {
     securityBoundary = new SecurityBoundary();
     try
     {
         return securityBoundary.authenticateBoundary(email, password);
     }
     catch (BusinessException e)
     {
         throw new WebFaultException<GeneralResponse>
             (new GeneralResponse
             {
                 message = e.Message,
                 status = GeneralResponse.STATUS_ERROR,
                 code = "400"
             }, HttpStatusCode.BadRequest);
     }
     catch (PlatformException e)
     {
         throw new WebFaultException<GeneralResponse>
             (new GeneralResponse
             {
                 message = e.Message,
                 status = GeneralResponse.STATUS_ERROR,
                 code = "500"
             }, HttpStatusCode.BadRequest);
     }
 }