public String sendInvitationHashWithDateObject(String SID,String username,String message,String baseurl,String email,String subject,Long room_id,String conferencedomain,Boolean isPasswordProtected,String invitationpass,Integer valid,Date fromDate,Date toDate,Long language_id,Boolean sendMail) throws AxisFault {
  try {
    Long users_id=sessionManagement.checkSession(SID);
    Long user_level=userManagement.getUserLevelByID(users_id);
    if (authLevelManagement.checkWebServiceLevel(user_level)) {
      Calendar calFrom=Calendar.getInstance();
      calFrom.setTime(fromDate);
      Calendar calTo=Calendar.getInstance();
      calTo.setTime(toDate);
      Date dFrom=calFrom.getTime();
      Date dTo=calTo.getTime();
      log.info("validFromDate: " + CalendarPatterns.getDateWithTimeByMiliSeconds(dFrom));
      log.info("validToDate: " + CalendarPatterns.getDateWithTimeByMiliSeconds(dTo));
      Invitations invitation=invitationManagement.addInvitationLink(user_level,username,message,baseurl,email,subject,room_id,"",isPasswordProtected,invitationpass,valid,dFrom,dTo,users_id,baseurl,language_id,sendMail,dFrom,dTo,null,username);
      if (invitation != null) {
        return invitation.getHash();
      }
 else {
        return "Sys - Error";
      }
    }
 else {
      return "Need Admin Privileges to perfom the Action";
    }
  }
 catch (  Exception err) {
    log.error("[sendInvitationHash] ",err);
    throw new AxisFault(err.getMessage());
  }
}

public String sendInvitationHashWithDateObject ( String SID , String username , String message , String baseurl , String email , String subject , Long room_id , String conferencedomain , Boolean isPasswordProtected , String invitationpass , Integer valid , Date fromDate , Date toDate , Long language_id , Boolean sendMail ) throws AxisFault { try { Long users_id = sessionManagement . checkSession ( SID ) ; Long user_level = userManagement . getUserLevelByID ( users_id ) ; if ( authLevelManagement . checkWebServiceLevel ( user_level ) ) { Calendar calFrom = Calendar . getInstance ( ) ; calFrom . setTime ( fromDate ) ; Calendar calTo = Calendar . getInstance ( ) ; calTo . setTime ( toDate ) ; Date dFrom = calFrom . getTime ( ) ; Date dTo = calTo . getTime ( ) ; log . info ( "validFromDate: " + CalendarPatterns . getDateWithTimeByMiliSeconds ( dFrom ) ) ; log . info ( "validToDate: " + CalendarPatterns . getDateWithTimeByMiliSeconds ( dTo ) ) ; Invitations invitation = invitationManagement . addInvitationLink ( user_level , username , message , baseurl , email , subject , room_id , "" , isPasswordProtected , invitationpass , valid , dFrom , dTo , users_id , baseurl , language_id , sendMail , dFrom , dTo , null , username ) ; if ( invitation != null ) { return invitation . getHash ( ) ; } else { return "Sys - Error" ; } } else { return "Need Admin Privileges to perfom the Action" ; } } catch ( Exception err ) { log . error ( "[sendInvitationHash] " , err ) ; throw new AxisFault ( err . getMessage ( ) ) ; } }
create a invitation hash and optionally send it by mail the from to date is as string as some soap libraries do not accept date objects in soap calls date is parsed as dd . mm . yyyy , time as hh : mm ( don ' t forget the leading zero ' s )
