From 8bb9747db3bdaaf053924204b7d83978a9a361c0 Mon Sep 17 00:00:00 2001 From: Brian Rosenberger Date: Mon, 23 Jan 2012 18:54:01 +0000 Subject: [PATCH] Major rework in the DateService git-svn-id: https://brutex.net/svn/xservices/trunk@83 e7e49efb-446e-492e-b9ec-fcafc1997a86 --- build.xml | 12 + doc/ArchiveServices.xml | 15 +- doc/BruteXServices_User_Guide.dbk | 3225 ++++++++++++++++- doc/DateServices.xml | 29 +- doc/DateServices/formatDate.xml | 26 + doc/DateServices/getDate.xml | 39 + doc/DateServices/getDateExtended.xml | 31 + doc/DateServices/getInTimezone.xml | 14 + doc/DateServices/getTimestamp.xml | 31 + doc/DateServices/getTimestamp2.xml | 31 + doc/DateServices/getTimezones.xml | 3049 ++++++++++++++++ doc/Types.xml | 1 + doc/types/AntProperty.xml | 2 +- doc/types/DateInfoType.xml | 14 + .../brutex/xservices/agent/AgentServlet.java | 39 + .../xservices/types/DateFormatType.java | 66 +- .../xservices/types/DateInfoExtendedType.java | 69 + .../brutex/xservices/types/DateInfoType.java | 96 + .../brutex/xservices/types/DateTimeUnits.java | 5 +- .../brutex/xservices/types/TimeZoneType.java | 81 + .../net/brutex/xservices/util/RunTask.java | 3 +- .../brutex/xservices/ws/ArchiveService.java | 6 +- .../net/brutex/xservices/ws/DateService.java | 53 +- .../net/brutex/xservices/ws/FileService.java | 8 +- .../net/brutex/xservices/ws/MiscService.java | 3 +- .../brutex/xservices/ws/StorageService.java | 84 + .../xservices/ws/impl/ArchiveServiceImpl.java | 6 +- .../xservices/ws/impl/DateServiceImpl.java | 166 +- .../xservices/ws/impl/FileServiceImpl.java | 8 +- .../xservices/ws/impl/MiscServiceImpl.java | 2 +- .../xservices/ws/impl/StorageServiceImpl.java | 56 + test/DateService-soapui-project.xml | 1225 ++++--- test/MiscService-soapui-project.xml | 731 ++-- test/StoreService-soapui-project.xml | 376 +- web/WEB-INF/cxf-beans.xml | 27 - 35 files changed, 8516 insertions(+), 1113 deletions(-) create mode 100644 doc/DateServices/formatDate.xml create mode 100644 doc/DateServices/getDate.xml create mode 100644 doc/DateServices/getDateExtended.xml create mode 100644 doc/DateServices/getInTimezone.xml create mode 100644 doc/DateServices/getTimestamp.xml create mode 100644 doc/DateServices/getTimestamp2.xml create mode 100644 doc/DateServices/getTimezones.xml create mode 100644 doc/types/DateInfoType.xml create mode 100644 src/java/net/brutex/xservices/agent/AgentServlet.java create mode 100644 src/java/net/brutex/xservices/types/DateInfoExtendedType.java create mode 100644 src/java/net/brutex/xservices/types/DateInfoType.java create mode 100644 src/java/net/brutex/xservices/types/TimeZoneType.java create mode 100644 src/java/net/brutex/xservices/ws/StorageService.java create mode 100644 src/java/net/brutex/xservices/ws/impl/StorageServiceImpl.java diff --git a/build.xml b/build.xml index ae29bd8..935b568 100644 --- a/build.xml +++ b/build.xml @@ -33,5 +33,17 @@ + + + + + + + + + + diff --git a/doc/ArchiveServices.xml b/doc/ArchiveServices.xml index db45d6f..1c65bbe 100644 --- a/doc/ArchiveServices.xml +++ b/doc/ArchiveServices.xml @@ -1,9 +1,8 @@ -
- ArchiveServices - The ArchiveService bundles file packing operations. Its - WSDL is - located at - http://server:port/XServices/ArchiveService?wsdl -
\ No newline at end of file +
+ ArchiveServices + The ArchiveService bundles file packing operations. Its + WSDL is located at + http://server:port/XServices/ArchiveService?wsdl +
\ No newline at end of file diff --git a/doc/BruteXServices_User_Guide.dbk b/doc/BruteXServices_User_Guide.dbk index 0e479c6..c55fe6f 100644 --- a/doc/BruteXServices_User_Guide.dbk +++ b/doc/BruteXServices_User_Guide.dbk @@ -15,7 +15,7 @@ The copyright holders make no representation about the suitability of this document for any purpose. It is provided - as is + as is without expressed or implied warranty. @@ -84,7 +84,7 @@ Getting started - This chapter describes the installation. + This chapter describes the installation process.
@@ -148,17 +148,3208 @@ Available Services List of available web services and their operations.
- ArchiveServices - The ArchiveService bundles file packing operations. Its - WSDL is - located at - http://server:port/XServices/ArchiveService?wsdl -
+ ArchiveServices + The ArchiveService bundles file packing operations. Its + WSDL is located at + http://server:port/XServices/ArchiveService?wsdl +
DateServices - The DateService bundles various date and time related operations. Its WSDL is located at - http://server:port/XServices/DateService?wsdl + The DateService bundles various date and time related operations. + + Its WSDL is located at http://server:port/XServices/DateService?wsdl + + XServices uses a date/time format as suggested by http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#dateTime, which is basically a subset of ISO8601. Most input parameters for date/time have to be provided as such. + + Another date/time format, that is often used is defined by RFC822. The major difference to ISO8601 and the Xmlschema datetime format, is in the way how the time zone is specified. ISO8601 specifies a colon to be used to separate hour and minutes time shift. RFC822 does not use a separator. + + + ISO8601 (example: "2012-01-17T23:50:00+01:00") + + + RFC822 (example: "2012-01-17T23:50:00+0100") + + + +
+ getDate + Get current time and date. + Sample request: + + + + + + + Sample response: + + + + + + 02.01.2012 + 2012/01/02 + 08:14:40+0100 + + 2012-01-02T08:14:40+0100 + 1325488480957 + + + +]]> + +
+
+ getDateExtended + Get current time and date (extended Version). + Sample response: + + + + + + 2012-01-23T08:30:00.333+01:00 + 2012-01-23T08:30:00.333+0100 + 1327303800333 + 23.01.2012 + 2012/01/23 + 08:30:00 + + + + +]]> + + +
+
+ formatDate + + Transform date/time representation from ISO8601 or RFC822 format to + + + ISO8601 (example: "2012-01-17T23:50:00+01:00") + + + RFC822 (example: "2012-01-17T23:50:00+0100") + + + YYYYMMDD (example: "2012/01/17") + + + DDMMYYYY (example: "17.01.2012") + + + +
+
+ getInTimezone + + Changes the date/time presentation to another time zone. The date/time object itself + is not changed. For example '2012-01-05T22:45:11-06:30' is presented as '2012-01-06T07:15:11+02:00' from Helsinki time zone perspective. + + The web service operation "getTimezones" returns a full list of all supported time zones. +
+
+ getTimestamp + Get current timestamp in milliseconds (epoch). + Sample request: + + + + + + + Sample response: + + + + ]]>1325488875703 + + +]]> + +
+
+ getTimestamp2 + Get current timestamp in seconds (unix timestamp). + Sample request: + + + + + + + Sample response: + + + + ]]>1325488876 + + +]]> + +
+
+ getTimezones + + Returns all time zones this implementation (more precisely your JVM) is aware of. + You have to use the + id to refer to a time zone, the display name is specific to the localisation of your + JVM. + + The offset shows the time difference to Greenwich Time (GMT), also known as UTC. + The daylight saving time is not taken into account for the offset. + Sample response + + + + + + GMT-12:00 + Etc/GMT+12 + -43200 + + + GMT-11:00 + Etc/GMT+11 + -39600 + + + West Samoa Zeit + MIT + -39600 + + + West Samoa Zeit + Pacific/Apia + -39600 + + + Samoa Normalzeit + Pacific/Midway + -39600 + + + Niue Zeit + Pacific/Niue + -39600 + + + Samoa Normalzeit + Pacific/Pago_Pago + -39600 + + + Samoa Normalzeit + Pacific/Samoa + -39600 + + + Samoa Normalzeit + US/Samoa + -39600 + + + Hawaii-Aleutische Normalzeit + America/Adak + -36000 + + + Hawaii-Aleutische Normalzeit + America/Atka + -36000 + + + GMT-10:00 + Etc/GMT+10 + -36000 + + + Hawaii Normalzeit + HST + -36000 + + + Tokelau Zeit + Pacific/Fakaofo + -36000 + + + Hawaii Normalzeit + Pacific/Honolulu + -36000 + + + Hawaii Normalzeit + Pacific/Johnston + -36000 + + + Cook-Inseln Zeit + Pacific/Rarotonga + -36000 + + + Tahiti Zeit + Pacific/Tahiti + -36000 + + + Hawaii Normalzeit + SystemV/HST10 + -36000 + + + Hawaii-Aleutische Normalzeit + US/Aleutian + -36000 + + + Hawaii Normalzeit + US/Hawaii + -36000 + + + Marquesas Zeit + Pacific/Marquesas + -34200 + + + Alaska Normalzeit + AST + -32400 + + + Alaska Normalzeit + America/Anchorage + -32400 + + + Alaska Normalzeit + America/Juneau + -32400 + + + Alaska Normalzeit + America/Nome + -32400 + + + Alaska Normalzeit + America/Yakutat + -32400 + + + GMT-09:00 + Etc/GMT+9 + -32400 + + + Gambier Zeit + Pacific/Gambier + -32400 + + + Alaska Normalzeit + SystemV/YST9 + -32400 + + + Alaska Normalzeit + SystemV/YST9YDT + -32400 + + + Alaska Normalzeit + US/Alaska + -32400 + + + Pazifische Normalzeit + America/Dawson + -28800 + + + Pazifische Normalzeit + America/Ensenada + -28800 + + + Pazifische Normalzeit + America/Los_Angeles + -28800 + + + Pazifische Normalzeit + America/Santa_Isabel + -28800 + + + Pazifische Normalzeit + America/Tijuana + -28800 + + + Pazifische Normalzeit + America/Vancouver + -28800 + + + Pazifische Normalzeit + America/Whitehorse + -28800 + + + Pazifische Normalzeit + Canada/Pacific + -28800 + + + Pazifische Normalzeit + Canada/Yukon + -28800 + + + GMT-08:00 + Etc/GMT+8 + -28800 + + + Pazifische Normalzeit + Mexico/BajaNorte + -28800 + + + Pazifische Normalzeit + PST + -28800 + + + Pazifische Normalzeit + PST8PDT + -28800 + + + Pitcairn Normalzeit + Pacific/Pitcairn + -28800 + + + Pazifische Normalzeit + SystemV/PST8 + -28800 + + + Pazifische Normalzeit + SystemV/PST8PDT + -28800 + + + Pazifische Normalzeit + US/Pacific + -28800 + + + Pazifische Normalzeit + US/Pacific-New + -28800 + + + Rocky Mountains Normalzeit + America/Boise + -25200 + + + Rocky Mountains Normalzeit + America/Cambridge_Bay + -25200 + + + Rocky Mountains Normalzeit + America/Chihuahua + -25200 + + + Rocky Mountains Normalzeit + America/Dawson_Creek + -25200 + + + Rocky Mountains Normalzeit + America/Denver + -25200 + + + Rocky Mountains Normalzeit + America/Edmonton + -25200 + + + Rocky Mountains Normalzeit + America/Hermosillo + -25200 + + + Rocky Mountains Normalzeit + America/Inuvik + -25200 + + + Rocky Mountains Normalzeit + America/Mazatlan + -25200 + + + Rocky Mountains Normalzeit + America/Ojinaga + -25200 + + + Rocky Mountains Normalzeit + America/Phoenix + -25200 + + + Rocky Mountains Normalzeit + America/Shiprock + -25200 + + + Rocky Mountains Normalzeit + America/Yellowknife + -25200 + + + Rocky Mountains Normalzeit + Canada/Mountain + -25200 + + + GMT-07:00 + Etc/GMT+7 + -25200 + + + Rocky Mountains Normalzeit + MST + -25200 + + + Rocky Mountains Normalzeit + MST7MDT + -25200 + + + Rocky Mountains Normalzeit + Mexico/BajaSur + -25200 + + + Rocky Mountains Normalzeit + Navajo + -25200 + + + Rocky Mountains Normalzeit + PNT + -25200 + + + Rocky Mountains Normalzeit + SystemV/MST7 + -25200 + + + Rocky Mountains Normalzeit + SystemV/MST7MDT + -25200 + + + Rocky Mountains Normalzeit + US/Arizona + -25200 + + + Rocky Mountains Normalzeit + US/Mountain + -25200 + + + Zentrale Normalzeit + America/Belize + -21600 + + + Zentrale Normalzeit + America/Cancun + -21600 + + + Zentrale Normalzeit + America/Chicago + -21600 + + + Zentrale Normalzeit + America/Costa_Rica + -21600 + + + Zentrale Normalzeit + America/El_Salvador + -21600 + + + Zentrale Normalzeit + America/Guatemala + -21600 + + + Zentrale Normalzeit + America/Indiana/Knox + -21600 + + + Zentrale Normalzeit + America/Indiana/Tell_City + -21600 + + + Zentrale Normalzeit + America/Knox_IN + -21600 + + + Zentrale Normalzeit + America/Managua + -21600 + + + Zentrale Normalzeit + America/Matamoros + -21600 + + + Zentrale Normalzeit + America/Menominee + -21600 + + + Zentrale Normalzeit + America/Merida + -21600 + + + Zentrale Normalzeit + America/Mexico_City + -21600 + + + Zentrale Normalzeit + America/Monterrey + -21600 + + + Zentrale Normalzeit + America/North_Dakota/Center + -21600 + + + Zentrale Normalzeit + America/North_Dakota/New_Salem + -21600 + + + Zentrale Normalzeit + America/Rainy_River + -21600 + + + Zentrale Normalzeit + America/Rankin_Inlet + -21600 + + + Zentrale Normalzeit + America/Regina + -21600 + + + Zentrale Normalzeit + America/Swift_Current + -21600 + + + Zentrale Normalzeit + America/Tegucigalpa + -21600 + + + Zentrale Normalzeit + America/Winnipeg + -21600 + + + Zentrale Normalzeit + CST + -21600 + + + Zentrale Normalzeit + CST6CDT + -21600 + + + Zentrale Normalzeit + Canada/Central + -21600 + + + Zentrale Normalzeit + Canada/East-Saskatchewan + -21600 + + + Zentrale Normalzeit + Canada/Saskatchewan + -21600 + + + Osterinseln Zeit + Chile/EasterIsland + -21600 + + + GMT-06:00 + Etc/GMT+6 + -21600 + + + Zentrale Normalzeit + Mexico/General + -21600 + + + Osterinseln Zeit + Pacific/Easter + -21600 + + + Galapagos Zeit + Pacific/Galapagos + -21600 + + + Zentrale Normalzeit + SystemV/CST6 + -21600 + + + Zentrale Normalzeit + SystemV/CST6CDT + -21600 + + + Zentrale Normalzeit + US/Central + -21600 + + + Zentrale Normalzeit + US/Indiana-Starke + -21600 + + + Östliche Normalzeit + America/Atikokan + -18000 + + + Kolumbianische Zeit + America/Bogota + -18000 + + + Östliche Normalzeit + America/Cayman + -18000 + + + Östliche Normalzeit + America/Coral_Harbour + -18000 + + + Östliche Normalzeit + America/Detroit + -18000 + + + Östliche Normalzeit + America/Fort_Wayne + -18000 + + + Östliche Normalzeit + America/Grand_Turk + -18000 + + + Ecuadorianische Zeit + America/Guayaquil + -18000 + + + Kubanische Normalzeit + America/Havana + -18000 + + + Östliche Normalzeit + America/Indiana/Indianapolis + -18000 + + + Östliche Normalzeit + America/Indiana/Marengo + -18000 + + + Östliche Normalzeit + America/Indiana/Petersburg + -18000 + + + Östliche Normalzeit + America/Indiana/Vevay + -18000 + + + Östliche Normalzeit + America/Indiana/Vincennes + -18000 + + + Östliche Normalzeit + America/Indiana/Winamac + -18000 + + + Östliche Normalzeit + America/Indianapolis + -18000 + + + Östliche Normalzeit + America/Iqaluit + -18000 + + + Östliche Normalzeit + America/Jamaica + -18000 + + + Östliche Normalzeit + America/Kentucky/Louisville + -18000 + + + Östliche Normalzeit + America/Kentucky/Monticello + -18000 + + + Peruanische Zeit + America/Lima + -18000 + + + Östliche Normalzeit + America/Louisville + -18000 + + + Östliche Normalzeit + America/Montreal + -18000 + + + Östliche Normalzeit + America/Nassau + -18000 + + + Östliche Normalzeit + America/New_York + -18000 + + + Östliche Normalzeit + America/Nipigon + -18000 + + + Östliche Normalzeit + America/Panama + -18000 + + + Östliche Normalzeit + America/Pangnirtung + -18000 + + + Östliche Normalzeit + America/Port-au-Prince + -18000 + + + Östliche Normalzeit + America/Resolute + -18000 + + + Östliche Normalzeit + America/Thunder_Bay + -18000 + + + Östliche Normalzeit + America/Toronto + -18000 + + + Östliche Normalzeit + Canada/Eastern + -18000 + + + Kubanische Normalzeit + Cuba + -18000 + + + Östliche Normalzeit + EST + -18000 + + + Östliche Normalzeit + EST5EDT + -18000 + + + GMT-05:00 + Etc/GMT+5 + -18000 + + + Östliche Normalzeit + IET + -18000 + + + Östliche Normalzeit + Jamaica + -18000 + + + Östliche Normalzeit + SystemV/EST5 + -18000 + + + Östliche Normalzeit + SystemV/EST5EDT + -18000 + + + Östliche Normalzeit + US/East-Indiana + -18000 + + + Östliche Normalzeit + US/Eastern + -18000 + + + Östliche Normalzeit + US/Michigan + -18000 + + + Venezuelanische Zeit + America/Caracas + -16200 + + + Atlantik Normalzeit + America/Anguilla + -14400 + + + Atlantik Normalzeit + America/Antigua + -14400 + + + Argentinische Zeit + America/Argentina/San_Luis + -14400 + + + Atlantik Normalzeit + America/Aruba + -14400 + + + Paraguay Zeit + America/Asuncion + -14400 + + + Atlantik Normalzeit + America/Barbados + -14400 + + + Atlantik Normalzeit + America/Blanc-Sablon + -14400 + + + Amazonas Normalzeit + America/Boa_Vista + -14400 + + + Amazonas Normalzeit + America/Campo_Grande + -14400 + + + Amazonas Normalzeit + America/Cuiaba + -14400 + + + Atlantik Normalzeit + America/Curacao + -14400 + + + Atlantik Normalzeit + America/Dominica + -14400 + + + Amazonas Normalzeit + America/Eirunepe + -14400 + + + Atlantik Normalzeit + America/Glace_Bay + -14400 + + + Atlantik Normalzeit + America/Goose_Bay + -14400 + + + Atlantik Normalzeit + America/Grenada + -14400 + + + Atlantik Normalzeit + America/Guadeloupe + -14400 + + + Guyanische Zeit + America/Guyana + -14400 + + + Atlantik Normalzeit + America/Halifax + -14400 + + + Bolivianische Zeit + America/La_Paz + -14400 + + + Amazonas Normalzeit + America/Manaus + -14400 + + + Atlantik Normalzeit + America/Marigot + -14400 + + + Atlantik Normalzeit + America/Martinique + -14400 + + + Atlantik Normalzeit + America/Moncton + -14400 + + + Atlantik Normalzeit + America/Montserrat + -14400 + + + Atlantik Normalzeit + America/Port_of_Spain + -14400 + + + Amazonas Normalzeit + America/Porto_Acre + -14400 + + + Amazonas Normalzeit + America/Porto_Velho + -14400 + + + Atlantik Normalzeit + America/Puerto_Rico + -14400 + + + Amazonas Normalzeit + America/Rio_Branco + -14400 + + + Chilenische Zeit + America/Santiago + -14400 + + + Atlantik Normalzeit + America/Santo_Domingo + -14400 + + + Atlantik Normalzeit + America/St_Barthelemy + -14400 + + + Atlantik Normalzeit + America/St_Kitts + -14400 + + + Atlantik Normalzeit + America/St_Lucia + -14400 + + + Atlantik Normalzeit + America/St_Thomas + -14400 + + + Atlantik Normalzeit + America/St_Vincent + -14400 + + + Atlantik Normalzeit + America/Thule + -14400 + + + Atlantik Normalzeit + America/Tortola + -14400 + + + Atlantik Normalzeit + America/Virgin + -14400 + + + Chilenische Zeit + Antarctica/Palmer + -14400 + + + Atlantik Normalzeit + Atlantic/Bermuda + -14400 + + + Falkland Inseln Zeit + Atlantic/Stanley + -14400 + + + Amazonas Normalzeit + Brazil/Acre + -14400 + + + Amazonas Normalzeit + Brazil/West + -14400 + + + Atlantik Normalzeit + Canada/Atlantic + -14400 + + + Chilenische Zeit + Chile/Continental + -14400 + + + GMT-04:00 + Etc/GMT+4 + -14400 + + + Atlantik Normalzeit + PRT + -14400 + + + Atlantik Normalzeit + SystemV/AST4 + -14400 + + + Atlantik Normalzeit + SystemV/AST4ADT + -14400 + + + Neufundland Normalzeit + America/St_Johns + -12600 + + + Neufundland Normalzeit + CNT + -12600 + + + Neufundland Normalzeit + Canada/Newfoundland + -12600 + + + Argentinische Zeit + AGT + -10800 + + + Brasilianische Zeit + America/Araguaina + -10800 + + + Argentinische Zeit + America/Argentina/Buenos_Aires + -10800 + + + Argentinische Zeit + America/Argentina/Catamarca + -10800 + + + Argentinische Zeit + America/Argentina/ComodRivadavia + -10800 + + + Argentinische Zeit + America/Argentina/Cordoba + -10800 + + + Argentinische Zeit + America/Argentina/Jujuy + -10800 + + + Argentinische Zeit + America/Argentina/La_Rioja + -10800 + + + Argentinische Zeit + America/Argentina/Mendoza + -10800 + + + Argentinische Zeit + America/Argentina/Rio_Gallegos + -10800 + + + Argentinische Zeit + America/Argentina/Salta + -10800 + + + Argentinische Zeit + America/Argentina/San_Juan + -10800 + + + Argentinische Zeit + America/Argentina/Tucuman + -10800 + + + Argentinische Zeit + America/Argentina/Ushuaia + -10800 + + + Brasilianische Zeit + America/Bahia + -10800 + + + Brasilianische Zeit + America/Belem + -10800 + + + Argentinische Zeit + America/Buenos_Aires + -10800 + + + Argentinische Zeit + America/Catamarca + -10800 + + + Französisch-Guiana Zeit + America/Cayenne + -10800 + + + Argentinische Zeit + America/Cordoba + -10800 + + + Brasilianische Zeit + America/Fortaleza + -10800 + + + Westgrönländische Zeit + America/Godthab + -10800 + + + Argentinische Zeit + America/Jujuy + -10800 + + + Brasilianische Zeit + America/Maceio + -10800 + + + Argentinische Zeit + America/Mendoza + -10800 + + + Pierre & Miquelon Normalzeit + America/Miquelon + -10800 + + + Uruguayische Zeit + America/Montevideo + -10800 + + + Suriname Zeit + America/Paramaribo + -10800 + + + Brasilianische Zeit + America/Recife + -10800 + + + Argentinische Zeit + America/Rosario + -10800 + + + Brasilianische Zeit + America/Santarem + -10800 + + + Brasilianische Zeit + America/Sao_Paulo + -10800 + + + Rothera Zeit + Antarctica/Rothera + -10800 + + + Brasilianische Zeit + BET + -10800 + + + Brasilianische Zeit + Brazil/East + -10800 + + + GMT-03:00 + Etc/GMT+3 + -10800 + + + Fernando de Noronha Zeit + America/Noronha + -7200 + + + South Georgia Normalzeit + Atlantic/South_Georgia + -7200 + + + Fernando de Noronha Zeit + Brazil/DeNoronha + -7200 + + + GMT-02:00 + Etc/GMT+2 + -7200 + + + Ostgrönländische Zeit + America/Scoresbysund + -3600 + + + Azoren Zeit + Atlantic/Azores + -3600 + + + Kap Verde Zeit + Atlantic/Cape_Verde + -3600 + + + GMT-01:00 + Etc/GMT+1 + -3600 + + + Greenwich Zeit + Africa/Abidjan + 0 + + + Ghanaische Normalzeit + Africa/Accra + 0 + + + Greenwich Zeit + Africa/Bamako + 0 + + + Greenwich Zeit + Africa/Banjul + 0 + + + Greenwich Zeit + Africa/Bissau + 0 + + + Westeuropäische Zeit + Africa/Casablanca + 0 + + + Greenwich Zeit + Africa/Conakry + 0 + + + Greenwich Zeit + Africa/Dakar + 0 + + + Westeuropäische Zeit + Africa/El_Aaiun + 0 + + + Greenwich Normalzeit + Africa/Freetown + 0 + + + Greenwich Zeit + Africa/Lome + 0 + + + Greenwich Zeit + Africa/Monrovia + 0 + + + Greenwich Zeit + Africa/Nouakchott + 0 + + + Greenwich Zeit + Africa/Ouagadougou + 0 + + + Greenwich Zeit + Africa/Sao_Tome + 0 + + + Greenwich Zeit + Africa/Timbuktu + 0 + + + Greenwich Zeit + America/Danmarkshavn + 0 + + + Westeuropäische Zeit + Atlantic/Canary + 0 + + + Westeuropäische Zeit + Atlantic/Faeroe + 0 + + + Westeuropäische Zeit + Atlantic/Faroe + 0 + + + Westeuropäische Zeit + Atlantic/Madeira + 0 + + + Greenwich Zeit + Atlantic/Reykjavik + 0 + + + Greenwich Zeit + Atlantic/St_Helena + 0 + + + Greenwich Zeit + Eire + 0 + + + GMT+00:00 + Etc/GMT + 0 + + + GMT+00:00 + Etc/GMT+0 + 0 + + + GMT+00:00 + Etc/GMT-0 + 0 + + + GMT+00:00 + Etc/GMT0 + 0 + + + Greenwich Zeit + Etc/Greenwich + 0 + + + Koordinierte Universalzeit + Etc/UCT + 0 + + + Koordinierte Universalzeit + Etc/UTC + 0 + + + Koordinierte Universalzeit + Etc/Universal + 0 + + + Koordinierte Universalzeit + Etc/Zulu + 0 + + + Greenwich Zeit + Europe/Belfast + 0 + + + Greenwich Zeit + Europe/Dublin + 0 + + + Greenwich Zeit + Europe/Guernsey + 0 + + + Greenwich Zeit + Europe/Isle_of_Man + 0 + + + Greenwich Zeit + Europe/Jersey + 0 + + + Westeuropäische Zeit + Europe/Lisbon + 0 + + + Greenwich Zeit + Europe/London + 0 + + + Greenwich Zeit + GB + 0 + + + Greenwich Zeit + GB-Eire + 0 + + + Greenwich Zeit + GMT + 0 + + + GMT+00:00 + GMT0 + 0 + + + Greenwich Zeit + Greenwich + 0 + + + Greenwich Zeit + Iceland + 0 + + + Westeuropäische Zeit + Portugal + 0 + + + Koordinierte Universalzeit + UCT + 0 + + + Koordinierte Universalzeit + UTC + 0 + + + Koordinierte Universalzeit + Universal + 0 + + + Westeuropäische Zeit + WET + 0 + + + Koordinierte Universalzeit + Zulu + 0 + + + Mitteleuropäische Zeit + Africa/Algiers + 3600 + + + Westafrikanische Zeit + Africa/Bangui + 3600 + + + Westafrikanische Zeit + Africa/Brazzaville + 3600 + + + Mitteleuropäische Zeit + Africa/Ceuta + 3600 + + + Westafrikanische Zeit + Africa/Douala + 3600 + + + Westafrikanische Zeit + Africa/Kinshasa + 3600 + + + Westafrikanische Zeit + Africa/Lagos + 3600 + + + Westafrikanische Zeit + Africa/Libreville + 3600 + + + Westafrikanische Zeit + Africa/Luanda + 3600 + + + Westafrikanische Zeit + Africa/Malabo + 3600 + + + Westafrikanische Zeit + Africa/Ndjamena + 3600 + + + Westafrikanische Zeit + Africa/Niamey + 3600 + + + Westafrikanische Zeit + Africa/Porto-Novo + 3600 + + + Mitteleuropäische Zeit + Africa/Tunis + 3600 + + + Westafrikanische Zeit + Africa/Windhoek + 3600 + + + Mitteleuropäische Zeit + Arctic/Longyearbyen + 3600 + + + Mitteleuropäische Zeit + Atlantic/Jan_Mayen + 3600 + + + Mitteleuropäische Zeit + CET + 3600 + + + Mitteleuropäische Zeit + ECT + 3600 + + + GMT+01:00 + Etc/GMT-1 + 3600 + + + Mitteleuropäische Zeit + Europe/Amsterdam + 3600 + + + Mitteleuropäische Zeit + Europe/Andorra + 3600 + + + Mitteleuropäische Zeit + Europe/Belgrade + 3600 + + + Mitteleuropäische Zeit + Europe/Berlin + 3600 + + + Mitteleuropäische Zeit + Europe/Bratislava + 3600 + + + Mitteleuropäische Zeit + Europe/Brussels + 3600 + + + Mitteleuropäische Zeit + Europe/Budapest + 3600 + + + Mitteleuropäische Zeit + Europe/Copenhagen + 3600 + + + Mitteleuropäische Zeit + Europe/Gibraltar + 3600 + + + Mitteleuropäische Zeit + Europe/Ljubljana + 3600 + + + Mitteleuropäische Zeit + Europe/Luxembourg + 3600 + + + Mitteleuropäische Zeit + Europe/Madrid + 3600 + + + Mitteleuropäische Zeit + Europe/Malta + 3600 + + + Mitteleuropäische Zeit + Europe/Monaco + 3600 + + + Mitteleuropäische Zeit + Europe/Oslo + 3600 + + + Mitteleuropäische Zeit + Europe/Paris + 3600 + + + Mitteleuropäische Zeit + Europe/Podgorica + 3600 + + + Mitteleuropäische Zeit + Europe/Prague + 3600 + + + Mitteleuropäische Zeit + Europe/Rome + 3600 + + + Mitteleuropäische Zeit + Europe/San_Marino + 3600 + + + Mitteleuropäische Zeit + Europe/Sarajevo + 3600 + + + Mitteleuropäische Zeit + Europe/Skopje + 3600 + + + Mitteleuropäische Zeit + Europe/Stockholm + 3600 + + + Mitteleuropäische Zeit + Europe/Tirane + 3600 + + + Mitteleuropäische Zeit + Europe/Vaduz + 3600 + + + Mitteleuropäische Zeit + Europe/Vatican + 3600 + + + Mitteleuropäische Zeit + Europe/Vienna + 3600 + + + Mitteleuropäische Zeit + Europe/Warsaw + 3600 + + + Mitteleuropäische Zeit + Europe/Zagreb + 3600 + + + Mitteleuropäische Zeit + Europe/Zurich + 3600 + + + Zentraleuropäische Zeit + MET + 3600 + + + Mitteleuropäische Zeit + Poland + 3600 + + + Osteuropäische Zeit + ART + 7200 + + + Zentralafrikanische Zeit + Africa/Blantyre + 7200 + + + Zentralafrikanische Zeit + Africa/Bujumbura + 7200 + + + Osteuropäische Zeit + Africa/Cairo + 7200 + + + Zentralafrikanische Zeit + Africa/Gaborone + 7200 + + + Zentralafrikanische Zeit + Africa/Harare + 7200 + + + Südafrikanische Normalzeit + Africa/Johannesburg + 7200 + + + Zentralafrikanische Zeit + Africa/Kigali + 7200 + + + Zentralafrikanische Zeit + Africa/Lubumbashi + 7200 + + + Zentralafrikanische Zeit + Africa/Lusaka + 7200 + + + Zentralafrikanische Zeit + Africa/Maputo + 7200 + + + Südafrikanische Normalzeit + Africa/Maseru + 7200 + + + Südafrikanische Normalzeit + Africa/Mbabane + 7200 + + + Osteuropäische Zeit + Africa/Tripoli + 7200 + + + Osteuropäische Zeit + Asia/Amman + 7200 + + + Osteuropäische Zeit + Asia/Beirut + 7200 + + + Osteuropäische Zeit + Asia/Damascus + 7200 + + + Osteuropäische Zeit + Asia/Gaza + 7200 + + + Osteuropäische Zeit + Asia/Istanbul + 7200 + + + Israelische Normalzeit + Asia/Jerusalem + 7200 + + + Osteuropäische Zeit + Asia/Nicosia + 7200 + + + Israelische Normalzeit + Asia/Tel_Aviv + 7200 + + + Zentralafrikanische Zeit + CAT + 7200 + + + Osteuropäische Zeit + EET + 7200 + + + Osteuropäische Zeit + Egypt + 7200 + + + GMT+02:00 + Etc/GMT-2 + 7200 + + + Osteuropäische Zeit + Europe/Athens + 7200 + + + Osteuropäische Zeit + Europe/Bucharest + 7200 + + + Osteuropäische Zeit + Europe/Chisinau + 7200 + + + Osteuropäische Zeit + Europe/Helsinki + 7200 + + + Osteuropäische Zeit + Europe/Istanbul + 7200 + + + Osteuropäische Zeit + Europe/Kaliningrad + 7200 + + + Osteuropäische Zeit + Europe/Kiev + 7200 + + + Osteuropäische Zeit + Europe/Mariehamn + 7200 + + + Osteuropäische Zeit + Europe/Minsk + 7200 + + + Osteuropäische Zeit + Europe/Nicosia + 7200 + + + Osteuropäische Zeit + Europe/Riga + 7200 + + + Osteuropäische Zeit + Europe/Simferopol + 7200 + + + Osteuropäische Zeit + Europe/Sofia + 7200 + + + Osteuropäische Zeit + Europe/Tallinn + 7200 + + + Osteuropäische Zeit + Europe/Tiraspol + 7200 + + + Osteuropäische Zeit + Europe/Uzhgorod + 7200 + + + Osteuropäische Zeit + Europe/Vilnius + 7200 + + + Osteuropäische Zeit + Europe/Zaporozhye + 7200 + + + Israelische Normalzeit + Israel + 7200 + + + Osteuropäische Zeit + Libya + 7200 + + + Osteuropäische Zeit + Turkey + 7200 + + + Ostafrikanische Zeit + Africa/Addis_Ababa + 10800 + + + Ostafrikanische Zeit + Africa/Asmara + 10800 + + + Ostafrikanische Zeit + Africa/Asmera + 10800 + + + Ostafrikanische Zeit + Africa/Dar_es_Salaam + 10800 + + + Ostafrikanische Zeit + Africa/Djibouti + 10800 + + + Ostafrikanische Zeit + Africa/Kampala + 10800 + + + Ostafrikanische Zeit + Africa/Khartoum + 10800 + + + Ostafrikanische Zeit + Africa/Mogadishu + 10800 + + + Ostafrikanische Zeit + Africa/Nairobi + 10800 + + + Syowa Zeit + Antarctica/Syowa + 10800 + + + Arabische Normalzeit + Asia/Aden + 10800 + + + Arabische Normalzeit + Asia/Baghdad + 10800 + + + Arabische Normalzeit + Asia/Bahrain + 10800 + + + Arabische Normalzeit + Asia/Kuwait + 10800 + + + Arabische Normalzeit + Asia/Qatar + 10800 + + + Arabische Normalzeit + Asia/Riyadh + 10800 + + + Ostafrikanische Zeit + EAT + 10800 + + + GMT+03:00 + Etc/GMT-3 + 10800 + + + Moskauer Normalzeit + Europe/Moscow + 10800 + + + Wolgograder Zeit + Europe/Volgograd + 10800 + + + Ostafrikanische Zeit + Indian/Antananarivo + 10800 + + + Ostafrikanische Zeit + Indian/Comoro + 10800 + + + Ostafrikanische Zeit + Indian/Mayotte + 10800 + + + Moskauer Normalzeit + W-SU + 10800 + + + GMT+03:07 + Asia/Riyadh87 + 11224 + + + GMT+03:07 + Asia/Riyadh88 + 11224 + + + GMT+03:07 + Asia/Riyadh89 + 11224 + + + GMT+03:07 + Mideast/Riyadh87 + 11224 + + + GMT+03:07 + Mideast/Riyadh88 + 11224 + + + GMT+03:07 + Mideast/Riyadh89 + 11224 + + + Iranische Normalzeit + Asia/Tehran + 12600 + + + Iranische Normalzeit + Iran + 12600 + + + Aserbaidschanische Zeit + Asia/Baku + 14400 + + + Golf Normalzeit + Asia/Dubai + 14400 + + + Golf Normalzeit + Asia/Muscat + 14400 + + + Georgische Zeit + Asia/Tbilisi + 14400 + + + Armenische Zeit + Asia/Yerevan + 14400 + + + GMT+04:00 + Etc/GMT-4 + 14400 + + + Samarische Zeit + Europe/Samara + 14400 + + + Seychellen Zeit + Indian/Mahe + 14400 + + + Mauritius Zeit + Indian/Mauritius + 14400 + + + Reunion Zeit + Indian/Reunion + 14400 + + + Armenische Zeit + NET + 14400 + + + Afghanistanische Zeit + Asia/Kabul + 16200 + + + Davis Zeit + Antarctica/Davis + 18000 + + + Mawson Zeit + Antarctica/Mawson + 18000 + + + Aqtau Zeit + Asia/Aqtau + 18000 + + + Aqtobe Zeit + Asia/Aqtobe + 18000 + + + Turkmenische Zeit + Asia/Ashgabat + 18000 + + + Turkmenische Zeit + Asia/Ashkhabad + 18000 + + + Tadschikische Zeit + Asia/Dushanbe + 18000 + + + Pakistanische Zeit + Asia/Karachi + 18000 + + + Oral Zeit + Asia/Oral + 18000 + + + Usbekistan Zeit + Asia/Samarkand + 18000 + + + Usbekistan Zeit + Asia/Tashkent + 18000 + + + Jekaterinburger Zeit + Asia/Yekaterinburg + 18000 + + + GMT+05:00 + Etc/GMT-5 + 18000 + + + Französisch Süd- u. Antarktische Landzeit + Indian/Kerguelen + 18000 + + + Maledivische Zeit + Indian/Maldives + 18000 + + + Pakistanische Zeit + PLT + 18000 + + + Indische Normalzeit + Asia/Calcutta + 19800 + + + Indische Normalzeit + Asia/Colombo + 19800 + + + Indische Normalzeit + Asia/Kolkata + 19800 + + + Indische Normalzeit + IST + 19800 + + + Nepalesische Zeit + Asia/Kathmandu + 20700 + + + Nepalesische Zeit + Asia/Katmandu + 20700 + + + Vostok Zeit + Antarctica/Vostok + 21600 + + + Alma Ata Zeit + Asia/Almaty + 21600 + + + Kirgisische Zeit + Asia/Bishkek + 21600 + + + Bangladesch Zeit + Asia/Dacca + 21600 + + + Bangladesch Zeit + Asia/Dhaka + 21600 + + + Nowosibirsker Zeit + Asia/Novokuznetsk + 21600 + + + Nowosibirsker Zeit + Asia/Novosibirsk + 21600 + + + Omsk Zeit + Asia/Omsk + 21600 + + + Qyzylorda Zeit + Asia/Qyzylorda + 21600 + + + Bhutanische Zeit + Asia/Thimbu + 21600 + + + Bhutanische Zeit + Asia/Thimphu + 21600 + + + Bangladesch Zeit + BST + 21600 + + + GMT+06:00 + Etc/GMT-6 + 21600 + + + Indischer Ozean Territorium Zeit + Indian/Chagos + 21600 + + + Myanmar Zeit + Asia/Rangoon + 23400 + + + Cocos Islands Zeit + Indian/Cocos + 23400 + + + Indochina Zeit + Asia/Bangkok + 25200 + + + Indochina Zeit + Asia/Ho_Chi_Minh + 25200 + + + Hovd Zeit + Asia/Hovd + 25200 + + + Westindonesische Zeit + Asia/Jakarta + 25200 + + + Krasnojarsker Zeit + Asia/Krasnoyarsk + 25200 + + + Indochina Zeit + Asia/Phnom_Penh + 25200 + + + Westindonesische Zeit + Asia/Pontianak + 25200 + + + Indochina Zeit + Asia/Saigon + 25200 + + + Indochina Zeit + Asia/Vientiane + 25200 + + + GMT+07:00 + Etc/GMT-7 + 25200 + + + Christmas Island Zeit + Indian/Christmas + 25200 + + + Indochina Zeit + VST + 25200 + + + Brunei Zeit + Asia/Brunei + 28800 + + + Choibalsan Zeit + Asia/Choibalsan + 28800 + + + Chinesische Normalzeit + Asia/Chongqing + 28800 + + + Chinesische Normalzeit + Asia/Chungking + 28800 + + + Chinesische Normalzeit + Asia/Harbin + 28800 + + + Hongkong Zeit + Asia/Hong_Kong + 28800 + + + Irkutsk Zeit + Asia/Irkutsk + 28800 + + + Chinesische Normalzeit + Asia/Kashgar + 28800 + + + Malaysische Zeit + Asia/Kuala_Lumpur + 28800 + + + Malaysische Zeit + Asia/Kuching + 28800 + + + Chinesische Normalzeit + Asia/Macao + 28800 + + + Chinesische Normalzeit + Asia/Macau + 28800 + + + Zentralindonesische Zeit + Asia/Makassar + 28800 + + + Philippinische Zeit + Asia/Manila + 28800 + + + Chinesische Normalzeit + Asia/Shanghai + 28800 + + + Singapur Zeit + Asia/Singapore + 28800 + + + Chinesische Normalzeit + Asia/Taipei + 28800 + + + Zentralindonesische Zeit + Asia/Ujung_Pandang + 28800 + + + Ulaanbaatar Zeit + Asia/Ulaanbaatar + 28800 + + + Ulaanbaatar Zeit + Asia/Ulan_Bator + 28800 + + + Chinesische Normalzeit + Asia/Urumqi + 28800 + + + Westliche Normalzeit (Australien) + Australia/Perth + 28800 + + + Westliche Normalzeit (Australien) + Australia/West + 28800 + + + Chinesische Normalzeit + CTT + 28800 + + + GMT+08:00 + Etc/GMT-8 + 28800 + + + Hongkong Zeit + Hongkong + 28800 + + + Chinesische Normalzeit + PRC + 28800 + + + Singapur Zeit + Singapore + 28800 + + + Zentral-Westliche Normalzeit (Australien) + Australia/Eucla + 31500 + + + Timor-Leste Normalzeit + Asia/Dili + 32400 + + + Ostindonesische Zeit + Asia/Jayapura + 32400 + + + Koreanische Normalzeit + Asia/Pyongyang + 32400 + + + Koreanische Normalzeit + Asia/Seoul + 32400 + + + Japanische Normalzeit + Asia/Tokyo + 32400 + + + Jakutsk Zeit + Asia/Yakutsk + 32400 + + + GMT+09:00 + Etc/GMT-9 + 32400 + + + Japanische Normalzeit + JST + 32400 + + + Japanische Normalzeit + Japan + 32400 + + + Palau Zeit + Pacific/Palau + 32400 + + + Koreanische Normalzeit + ROK + 32400 + + + Zentrale Normalzeit (Northern Territory) + ACT + 34200 + + + Zentrale Normalzeit (Südaustralien) + Australia/Adelaide + 34200 + + + Zentrale Normalzeit (Südaustralien/New South Wales) + Australia/Broken_Hill + 34200 + + + Zentrale Normalzeit (Northern Territory) + Australia/Darwin + 34200 + + + Zentrale Normalzeit (Northern Territory) + Australia/North + 34200 + + + Zentrale Normalzeit (Südaustralien) + Australia/South + 34200 + + + Zentrale Normalzeit (Südaustralien/New South Wales) + Australia/Yancowinna + 34200 + + + Östliche Normalzeit (New South Wales) + AET + 36000 + + + Dumont-d'Urville Zeit + Antarctica/DumontDUrville + 36000 + + + Sakhalin Zeit + Asia/Sakhalin + 36000 + + + Wladiwostok Zeit + Asia/Vladivostok + 36000 + + + Östliche Normalzeit (New South Wales) + Australia/ACT + 36000 + + + Östliche Normalzeit (Queensland) + Australia/Brisbane + 36000 + + + Östliche Normalzeit (New South Wales) + Australia/Canberra + 36000 + + + Östliche Normalzeit (New South Wales) + Australia/Currie + 36000 + + + Östliche Normalzeit (Tasmanien) + Australia/Hobart + 36000 + + + Östliche Normalzeit (Queensland) + Australia/Lindeman + 36000 + + + Östliche Normalzeit (Victoria) + Australia/Melbourne + 36000 + + + Östliche Normalzeit (New South Wales) + Australia/NSW + 36000 + + + Östliche Normalzeit (Queensland) + Australia/Queensland + 36000 + + + Östliche Normalzeit (New South Wales) + Australia/Sydney + 36000 + + + Östliche Normalzeit (Tasmanien) + Australia/Tasmania + 36000 + + + Östliche Normalzeit (Victoria) + Australia/Victoria + 36000 + + + GMT+10:00 + Etc/GMT-10 + 36000 + + + Chamorro Normalzeit + Pacific/Guam + 36000 + + + Papua-Neuguinea Zeit + Pacific/Port_Moresby + 36000 + + + Chamorro Normalzeit + Pacific/Saipan + 36000 + + + Truk Zeit + Pacific/Truk + 36000 + + + Truk Zeit + Pacific/Yap + 36000 + + + Lord Howe Normalzeit + Australia/LHI + 37800 + + + Lord Howe Normalzeit + Australia/Lord_Howe + 37800 + + + Casey Time + Antarctica/Casey + 39600 + + + Magadanische Zeit + Asia/Magadan + 39600 + + + GMT+11:00 + Etc/GMT-11 + 39600 + + + Vanuatu Zeit + Pacific/Efate + 39600 + + + Salomoninseln Zeit + Pacific/Guadalcanal + 39600 + + + Kosrae Zeit + Pacific/Kosrae + 39600 + + + Neukaledonische Zeit + Pacific/Noumea + 39600 + + + Ponape Zeit + Pacific/Ponape + 39600 + + + Salomoninseln Zeit + SST + 39600 + + + Norfolk Zeit + Pacific/Norfolk + 41400 + + + Neuseeland Normalzeit + Antarctica/McMurdo + 43200 + + + Neuseeland Normalzeit + Antarctica/South_Pole + 43200 + + + Anadyr Zeit + Asia/Anadyr + 43200 + + + Petropawlowsk-Kamtschatkische Zeit + Asia/Kamchatka + 43200 + + + GMT+12:00 + Etc/GMT-12 + 43200 + + + Marshallinseln Zeit + Kwajalein + 43200 + + + Neuseeland Normalzeit + NST + 43200 + + + Neuseeland Normalzeit + NZ + 43200 + + + Neuseeland Normalzeit + Pacific/Auckland + 43200 + + + Fidschi Zeit + Pacific/Fiji + 43200 + + + Tuvalu Zeit + Pacific/Funafuti + 43200 + + + Marshallinseln Zeit + Pacific/Kwajalein + 43200 + + + Marshallinseln Zeit + Pacific/Majuro + 43200 + + + Nauru Zeit + Pacific/Nauru + 43200 + + + Gilbert-Inseln Zeit + Pacific/Tarawa + 43200 + + + Wake Zeit + Pacific/Wake + 43200 + + + Wallis u. Futuna Zeit + Pacific/Wallis + 43200 + + + Chatham Normalzeit + NZ-CHAT + 45900 + + + Chatham Normalzeit + Pacific/Chatham + 45900 + + + GMT+13:00 + Etc/GMT-13 + 46800 + + + Phoenix Inseln Zeit + Pacific/Enderbury + 46800 + + + Tonga Zeit + Pacific/Tongatapu + 46800 + + + GMT+14:00 + Etc/GMT-14 + 50400 + + + Line Inseln Zeit + Pacific/Kiritimati + 50400 + + + + + +]]> + +
ExecuteServices @@ -716,7 +3907,7 @@ by XServices web service.
-
+
AntProperty type The AntProperty type defines a list of key/value pairs. @@ -743,6 +3934,18 @@ ]]>
+
+ DateInfoType type + Different presentation of a date time value. + + The defining Java class is + + net.brutex.xservices.types.DateInfoType + + . + + +
FileResource type The FileResource type defines an URI to a file with optional on-the-fly decompression. diff --git a/doc/DateServices.xml b/doc/DateServices.xml index 13dd6ab..aa1cd6a 100644 --- a/doc/DateServices.xml +++ b/doc/DateServices.xml @@ -1,9 +1,28 @@
+ xmlns:xi="http://www.w3.org/2001/XInclude" id="dateservices"> DateServices - The DateService bundles various date and time related operations. Its WSDL is located at - http://server:port/XServices/DateService?wsdl - + The DateService bundles various date and time related operations. + + Its WSDL is located at http://server:port/XServices/DateService?wsdl + + XServices uses a date/time format as suggested by http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#dateTime, which is basically a subset of ISO8601. Most input parameters for date/time have to be provided as such. + + Another date/time format, that is often used is defined by RFC822. The major difference to ISO8601 and the Xmlschema datetime format, is in the way how the time zone is specified. ISO8601 specifies a colon to be used to separate hour and minutes time shift. RFC822 does not use a separator. + + + ISO8601 (example: "2012-01-17T23:50:00+01:00") + + + RFC822 (example: "2012-01-17T23:50:00+0100") + + + + + + + + + +
\ No newline at end of file diff --git a/doc/DateServices/formatDate.xml b/doc/DateServices/formatDate.xml new file mode 100644 index 0000000..689ede6 --- /dev/null +++ b/doc/DateServices/formatDate.xml @@ -0,0 +1,26 @@ + + +%myent; +]> +
+ formatDate + + Transform date/time representation from ISO8601 or RFC822 format to + + + ISO8601 (example: "2012-01-17T23:50:00+01:00") + + + RFC822 (example: "2012-01-17T23:50:00+0100") + + + YYYYMMDD (example: "2012/01/17") + + + DDMMYYYY (example: "17.01.2012") + + + +
\ No newline at end of file diff --git a/doc/DateServices/getDate.xml b/doc/DateServices/getDate.xml new file mode 100644 index 0000000..31f3b89 --- /dev/null +++ b/doc/DateServices/getDate.xml @@ -0,0 +1,39 @@ + + +%myent; +]> +
+ getDate + Get current time and date. + Sample request: + + + + + + + Sample response: + + + + + + 02.01.2012 + 2012/01/02 + 08:14:40+0100 + + 2012-01-02T08:14:40+0100 + 1325488480957 + + + +]]> + +
\ No newline at end of file diff --git a/doc/DateServices/getDateExtended.xml b/doc/DateServices/getDateExtended.xml new file mode 100644 index 0000000..5884521 --- /dev/null +++ b/doc/DateServices/getDateExtended.xml @@ -0,0 +1,31 @@ + + +%myent; +]> +
+ getDateExtended + Get current time and date (extended Version). + Sample response: + + + + + + 2012-01-23T08:30:00.333+01:00 + 2012-01-23T08:30:00.333+0100 + 1327303800333 + 23.01.2012 + 2012/01/23 + 08:30:00 + + + + +]]> + + + +
\ No newline at end of file diff --git a/doc/DateServices/getInTimezone.xml b/doc/DateServices/getInTimezone.xml new file mode 100644 index 0000000..1788aab --- /dev/null +++ b/doc/DateServices/getInTimezone.xml @@ -0,0 +1,14 @@ + + +%myent; +]> +
+ getInTimezone + + Changes the date/time presentation to another time zone. The date/time object itself + is not changed. For example '2012-01-05T22:45:11-06:30' is presented as '2012-01-06T07:15:11+02:00' from Helsinki time zone perspective. + + The web service operation "getTimezones" returns a full list of all supported time zones. +
\ No newline at end of file diff --git a/doc/DateServices/getTimestamp.xml b/doc/DateServices/getTimestamp.xml new file mode 100644 index 0000000..2b357b9 --- /dev/null +++ b/doc/DateServices/getTimestamp.xml @@ -0,0 +1,31 @@ + + +%myent; +]> +
+ getTimestamp + Get current timestamp in milliseconds (epoch). + Sample request: + + + + + + + Sample response: + + + + ]]>1325488875703 + + +]]> + +
\ No newline at end of file diff --git a/doc/DateServices/getTimestamp2.xml b/doc/DateServices/getTimestamp2.xml new file mode 100644 index 0000000..6bca734 --- /dev/null +++ b/doc/DateServices/getTimestamp2.xml @@ -0,0 +1,31 @@ + + +%myent; +]> +
+ getTimestamp2 + Get current timestamp in seconds (unix timestamp). + Sample request: + + + + + + + Sample response: + + + + ]]>1325488876 + + +]]> + +
\ No newline at end of file diff --git a/doc/DateServices/getTimezones.xml b/doc/DateServices/getTimezones.xml new file mode 100644 index 0000000..7f10cc5 --- /dev/null +++ b/doc/DateServices/getTimezones.xml @@ -0,0 +1,3049 @@ + + +%myent; +]> +
+ getTimezones + + Returns all time zones this implementation (more precisely your JVM) is aware of. + You have to use the + id to refer to a time zone, the display name is specific to the localisation of your + JVM. + + The offset shows the time difference to Greenwich Time (GMT), also known as UTC. + The daylight saving time is not taken into account for the offset. + Sample response + + + + + + GMT-12:00 + Etc/GMT+12 + -43200 + + + GMT-11:00 + Etc/GMT+11 + -39600 + + + West Samoa Zeit + MIT + -39600 + + + West Samoa Zeit + Pacific/Apia + -39600 + + + Samoa Normalzeit + Pacific/Midway + -39600 + + + Niue Zeit + Pacific/Niue + -39600 + + + Samoa Normalzeit + Pacific/Pago_Pago + -39600 + + + Samoa Normalzeit + Pacific/Samoa + -39600 + + + Samoa Normalzeit + US/Samoa + -39600 + + + Hawaii-Aleutische Normalzeit + America/Adak + -36000 + + + Hawaii-Aleutische Normalzeit + America/Atka + -36000 + + + GMT-10:00 + Etc/GMT+10 + -36000 + + + Hawaii Normalzeit + HST + -36000 + + + Tokelau Zeit + Pacific/Fakaofo + -36000 + + + Hawaii Normalzeit + Pacific/Honolulu + -36000 + + + Hawaii Normalzeit + Pacific/Johnston + -36000 + + + Cook-Inseln Zeit + Pacific/Rarotonga + -36000 + + + Tahiti Zeit + Pacific/Tahiti + -36000 + + + Hawaii Normalzeit + SystemV/HST10 + -36000 + + + Hawaii-Aleutische Normalzeit + US/Aleutian + -36000 + + + Hawaii Normalzeit + US/Hawaii + -36000 + + + Marquesas Zeit + Pacific/Marquesas + -34200 + + + Alaska Normalzeit + AST + -32400 + + + Alaska Normalzeit + America/Anchorage + -32400 + + + Alaska Normalzeit + America/Juneau + -32400 + + + Alaska Normalzeit + America/Nome + -32400 + + + Alaska Normalzeit + America/Yakutat + -32400 + + + GMT-09:00 + Etc/GMT+9 + -32400 + + + Gambier Zeit + Pacific/Gambier + -32400 + + + Alaska Normalzeit + SystemV/YST9 + -32400 + + + Alaska Normalzeit + SystemV/YST9YDT + -32400 + + + Alaska Normalzeit + US/Alaska + -32400 + + + Pazifische Normalzeit + America/Dawson + -28800 + + + Pazifische Normalzeit + America/Ensenada + -28800 + + + Pazifische Normalzeit + America/Los_Angeles + -28800 + + + Pazifische Normalzeit + America/Santa_Isabel + -28800 + + + Pazifische Normalzeit + America/Tijuana + -28800 + + + Pazifische Normalzeit + America/Vancouver + -28800 + + + Pazifische Normalzeit + America/Whitehorse + -28800 + + + Pazifische Normalzeit + Canada/Pacific + -28800 + + + Pazifische Normalzeit + Canada/Yukon + -28800 + + + GMT-08:00 + Etc/GMT+8 + -28800 + + + Pazifische Normalzeit + Mexico/BajaNorte + -28800 + + + Pazifische Normalzeit + PST + -28800 + + + Pazifische Normalzeit + PST8PDT + -28800 + + + Pitcairn Normalzeit + Pacific/Pitcairn + -28800 + + + Pazifische Normalzeit + SystemV/PST8 + -28800 + + + Pazifische Normalzeit + SystemV/PST8PDT + -28800 + + + Pazifische Normalzeit + US/Pacific + -28800 + + + Pazifische Normalzeit + US/Pacific-New + -28800 + + + Rocky Mountains Normalzeit + America/Boise + -25200 + + + Rocky Mountains Normalzeit + America/Cambridge_Bay + -25200 + + + Rocky Mountains Normalzeit + America/Chihuahua + -25200 + + + Rocky Mountains Normalzeit + America/Dawson_Creek + -25200 + + + Rocky Mountains Normalzeit + America/Denver + -25200 + + + Rocky Mountains Normalzeit + America/Edmonton + -25200 + + + Rocky Mountains Normalzeit + America/Hermosillo + -25200 + + + Rocky Mountains Normalzeit + America/Inuvik + -25200 + + + Rocky Mountains Normalzeit + America/Mazatlan + -25200 + + + Rocky Mountains Normalzeit + America/Ojinaga + -25200 + + + Rocky Mountains Normalzeit + America/Phoenix + -25200 + + + Rocky Mountains Normalzeit + America/Shiprock + -25200 + + + Rocky Mountains Normalzeit + America/Yellowknife + -25200 + + + Rocky Mountains Normalzeit + Canada/Mountain + -25200 + + + GMT-07:00 + Etc/GMT+7 + -25200 + + + Rocky Mountains Normalzeit + MST + -25200 + + + Rocky Mountains Normalzeit + MST7MDT + -25200 + + + Rocky Mountains Normalzeit + Mexico/BajaSur + -25200 + + + Rocky Mountains Normalzeit + Navajo + -25200 + + + Rocky Mountains Normalzeit + PNT + -25200 + + + Rocky Mountains Normalzeit + SystemV/MST7 + -25200 + + + Rocky Mountains Normalzeit + SystemV/MST7MDT + -25200 + + + Rocky Mountains Normalzeit + US/Arizona + -25200 + + + Rocky Mountains Normalzeit + US/Mountain + -25200 + + + Zentrale Normalzeit + America/Belize + -21600 + + + Zentrale Normalzeit + America/Cancun + -21600 + + + Zentrale Normalzeit + America/Chicago + -21600 + + + Zentrale Normalzeit + America/Costa_Rica + -21600 + + + Zentrale Normalzeit + America/El_Salvador + -21600 + + + Zentrale Normalzeit + America/Guatemala + -21600 + + + Zentrale Normalzeit + America/Indiana/Knox + -21600 + + + Zentrale Normalzeit + America/Indiana/Tell_City + -21600 + + + Zentrale Normalzeit + America/Knox_IN + -21600 + + + Zentrale Normalzeit + America/Managua + -21600 + + + Zentrale Normalzeit + America/Matamoros + -21600 + + + Zentrale Normalzeit + America/Menominee + -21600 + + + Zentrale Normalzeit + America/Merida + -21600 + + + Zentrale Normalzeit + America/Mexico_City + -21600 + + + Zentrale Normalzeit + America/Monterrey + -21600 + + + Zentrale Normalzeit + America/North_Dakota/Center + -21600 + + + Zentrale Normalzeit + America/North_Dakota/New_Salem + -21600 + + + Zentrale Normalzeit + America/Rainy_River + -21600 + + + Zentrale Normalzeit + America/Rankin_Inlet + -21600 + + + Zentrale Normalzeit + America/Regina + -21600 + + + Zentrale Normalzeit + America/Swift_Current + -21600 + + + Zentrale Normalzeit + America/Tegucigalpa + -21600 + + + Zentrale Normalzeit + America/Winnipeg + -21600 + + + Zentrale Normalzeit + CST + -21600 + + + Zentrale Normalzeit + CST6CDT + -21600 + + + Zentrale Normalzeit + Canada/Central + -21600 + + + Zentrale Normalzeit + Canada/East-Saskatchewan + -21600 + + + Zentrale Normalzeit + Canada/Saskatchewan + -21600 + + + Osterinseln Zeit + Chile/EasterIsland + -21600 + + + GMT-06:00 + Etc/GMT+6 + -21600 + + + Zentrale Normalzeit + Mexico/General + -21600 + + + Osterinseln Zeit + Pacific/Easter + -21600 + + + Galapagos Zeit + Pacific/Galapagos + -21600 + + + Zentrale Normalzeit + SystemV/CST6 + -21600 + + + Zentrale Normalzeit + SystemV/CST6CDT + -21600 + + + Zentrale Normalzeit + US/Central + -21600 + + + Zentrale Normalzeit + US/Indiana-Starke + -21600 + + + Östliche Normalzeit + America/Atikokan + -18000 + + + Kolumbianische Zeit + America/Bogota + -18000 + + + Östliche Normalzeit + America/Cayman + -18000 + + + Östliche Normalzeit + America/Coral_Harbour + -18000 + + + Östliche Normalzeit + America/Detroit + -18000 + + + Östliche Normalzeit + America/Fort_Wayne + -18000 + + + Östliche Normalzeit + America/Grand_Turk + -18000 + + + Ecuadorianische Zeit + America/Guayaquil + -18000 + + + Kubanische Normalzeit + America/Havana + -18000 + + + Östliche Normalzeit + America/Indiana/Indianapolis + -18000 + + + Östliche Normalzeit + America/Indiana/Marengo + -18000 + + + Östliche Normalzeit + America/Indiana/Petersburg + -18000 + + + Östliche Normalzeit + America/Indiana/Vevay + -18000 + + + Östliche Normalzeit + America/Indiana/Vincennes + -18000 + + + Östliche Normalzeit + America/Indiana/Winamac + -18000 + + + Östliche Normalzeit + America/Indianapolis + -18000 + + + Östliche Normalzeit + America/Iqaluit + -18000 + + + Östliche Normalzeit + America/Jamaica + -18000 + + + Östliche Normalzeit + America/Kentucky/Louisville + -18000 + + + Östliche Normalzeit + America/Kentucky/Monticello + -18000 + + + Peruanische Zeit + America/Lima + -18000 + + + Östliche Normalzeit + America/Louisville + -18000 + + + Östliche Normalzeit + America/Montreal + -18000 + + + Östliche Normalzeit + America/Nassau + -18000 + + + Östliche Normalzeit + America/New_York + -18000 + + + Östliche Normalzeit + America/Nipigon + -18000 + + + Östliche Normalzeit + America/Panama + -18000 + + + Östliche Normalzeit + America/Pangnirtung + -18000 + + + Östliche Normalzeit + America/Port-au-Prince + -18000 + + + Östliche Normalzeit + America/Resolute + -18000 + + + Östliche Normalzeit + America/Thunder_Bay + -18000 + + + Östliche Normalzeit + America/Toronto + -18000 + + + Östliche Normalzeit + Canada/Eastern + -18000 + + + Kubanische Normalzeit + Cuba + -18000 + + + Östliche Normalzeit + EST + -18000 + + + Östliche Normalzeit + EST5EDT + -18000 + + + GMT-05:00 + Etc/GMT+5 + -18000 + + + Östliche Normalzeit + IET + -18000 + + + Östliche Normalzeit + Jamaica + -18000 + + + Östliche Normalzeit + SystemV/EST5 + -18000 + + + Östliche Normalzeit + SystemV/EST5EDT + -18000 + + + Östliche Normalzeit + US/East-Indiana + -18000 + + + Östliche Normalzeit + US/Eastern + -18000 + + + Östliche Normalzeit + US/Michigan + -18000 + + + Venezuelanische Zeit + America/Caracas + -16200 + + + Atlantik Normalzeit + America/Anguilla + -14400 + + + Atlantik Normalzeit + America/Antigua + -14400 + + + Argentinische Zeit + America/Argentina/San_Luis + -14400 + + + Atlantik Normalzeit + America/Aruba + -14400 + + + Paraguay Zeit + America/Asuncion + -14400 + + + Atlantik Normalzeit + America/Barbados + -14400 + + + Atlantik Normalzeit + America/Blanc-Sablon + -14400 + + + Amazonas Normalzeit + America/Boa_Vista + -14400 + + + Amazonas Normalzeit + America/Campo_Grande + -14400 + + + Amazonas Normalzeit + America/Cuiaba + -14400 + + + Atlantik Normalzeit + America/Curacao + -14400 + + + Atlantik Normalzeit + America/Dominica + -14400 + + + Amazonas Normalzeit + America/Eirunepe + -14400 + + + Atlantik Normalzeit + America/Glace_Bay + -14400 + + + Atlantik Normalzeit + America/Goose_Bay + -14400 + + + Atlantik Normalzeit + America/Grenada + -14400 + + + Atlantik Normalzeit + America/Guadeloupe + -14400 + + + Guyanische Zeit + America/Guyana + -14400 + + + Atlantik Normalzeit + America/Halifax + -14400 + + + Bolivianische Zeit + America/La_Paz + -14400 + + + Amazonas Normalzeit + America/Manaus + -14400 + + + Atlantik Normalzeit + America/Marigot + -14400 + + + Atlantik Normalzeit + America/Martinique + -14400 + + + Atlantik Normalzeit + America/Moncton + -14400 + + + Atlantik Normalzeit + America/Montserrat + -14400 + + + Atlantik Normalzeit + America/Port_of_Spain + -14400 + + + Amazonas Normalzeit + America/Porto_Acre + -14400 + + + Amazonas Normalzeit + America/Porto_Velho + -14400 + + + Atlantik Normalzeit + America/Puerto_Rico + -14400 + + + Amazonas Normalzeit + America/Rio_Branco + -14400 + + + Chilenische Zeit + America/Santiago + -14400 + + + Atlantik Normalzeit + America/Santo_Domingo + -14400 + + + Atlantik Normalzeit + America/St_Barthelemy + -14400 + + + Atlantik Normalzeit + America/St_Kitts + -14400 + + + Atlantik Normalzeit + America/St_Lucia + -14400 + + + Atlantik Normalzeit + America/St_Thomas + -14400 + + + Atlantik Normalzeit + America/St_Vincent + -14400 + + + Atlantik Normalzeit + America/Thule + -14400 + + + Atlantik Normalzeit + America/Tortola + -14400 + + + Atlantik Normalzeit + America/Virgin + -14400 + + + Chilenische Zeit + Antarctica/Palmer + -14400 + + + Atlantik Normalzeit + Atlantic/Bermuda + -14400 + + + Falkland Inseln Zeit + Atlantic/Stanley + -14400 + + + Amazonas Normalzeit + Brazil/Acre + -14400 + + + Amazonas Normalzeit + Brazil/West + -14400 + + + Atlantik Normalzeit + Canada/Atlantic + -14400 + + + Chilenische Zeit + Chile/Continental + -14400 + + + GMT-04:00 + Etc/GMT+4 + -14400 + + + Atlantik Normalzeit + PRT + -14400 + + + Atlantik Normalzeit + SystemV/AST4 + -14400 + + + Atlantik Normalzeit + SystemV/AST4ADT + -14400 + + + Neufundland Normalzeit + America/St_Johns + -12600 + + + Neufundland Normalzeit + CNT + -12600 + + + Neufundland Normalzeit + Canada/Newfoundland + -12600 + + + Argentinische Zeit + AGT + -10800 + + + Brasilianische Zeit + America/Araguaina + -10800 + + + Argentinische Zeit + America/Argentina/Buenos_Aires + -10800 + + + Argentinische Zeit + America/Argentina/Catamarca + -10800 + + + Argentinische Zeit + America/Argentina/ComodRivadavia + -10800 + + + Argentinische Zeit + America/Argentina/Cordoba + -10800 + + + Argentinische Zeit + America/Argentina/Jujuy + -10800 + + + Argentinische Zeit + America/Argentina/La_Rioja + -10800 + + + Argentinische Zeit + America/Argentina/Mendoza + -10800 + + + Argentinische Zeit + America/Argentina/Rio_Gallegos + -10800 + + + Argentinische Zeit + America/Argentina/Salta + -10800 + + + Argentinische Zeit + America/Argentina/San_Juan + -10800 + + + Argentinische Zeit + America/Argentina/Tucuman + -10800 + + + Argentinische Zeit + America/Argentina/Ushuaia + -10800 + + + Brasilianische Zeit + America/Bahia + -10800 + + + Brasilianische Zeit + America/Belem + -10800 + + + Argentinische Zeit + America/Buenos_Aires + -10800 + + + Argentinische Zeit + America/Catamarca + -10800 + + + Französisch-Guiana Zeit + America/Cayenne + -10800 + + + Argentinische Zeit + America/Cordoba + -10800 + + + Brasilianische Zeit + America/Fortaleza + -10800 + + + Westgrönländische Zeit + America/Godthab + -10800 + + + Argentinische Zeit + America/Jujuy + -10800 + + + Brasilianische Zeit + America/Maceio + -10800 + + + Argentinische Zeit + America/Mendoza + -10800 + + + Pierre & Miquelon Normalzeit + America/Miquelon + -10800 + + + Uruguayische Zeit + America/Montevideo + -10800 + + + Suriname Zeit + America/Paramaribo + -10800 + + + Brasilianische Zeit + America/Recife + -10800 + + + Argentinische Zeit + America/Rosario + -10800 + + + Brasilianische Zeit + America/Santarem + -10800 + + + Brasilianische Zeit + America/Sao_Paulo + -10800 + + + Rothera Zeit + Antarctica/Rothera + -10800 + + + Brasilianische Zeit + BET + -10800 + + + Brasilianische Zeit + Brazil/East + -10800 + + + GMT-03:00 + Etc/GMT+3 + -10800 + + + Fernando de Noronha Zeit + America/Noronha + -7200 + + + South Georgia Normalzeit + Atlantic/South_Georgia + -7200 + + + Fernando de Noronha Zeit + Brazil/DeNoronha + -7200 + + + GMT-02:00 + Etc/GMT+2 + -7200 + + + Ostgrönländische Zeit + America/Scoresbysund + -3600 + + + Azoren Zeit + Atlantic/Azores + -3600 + + + Kap Verde Zeit + Atlantic/Cape_Verde + -3600 + + + GMT-01:00 + Etc/GMT+1 + -3600 + + + Greenwich Zeit + Africa/Abidjan + 0 + + + Ghanaische Normalzeit + Africa/Accra + 0 + + + Greenwich Zeit + Africa/Bamako + 0 + + + Greenwich Zeit + Africa/Banjul + 0 + + + Greenwich Zeit + Africa/Bissau + 0 + + + Westeuropäische Zeit + Africa/Casablanca + 0 + + + Greenwich Zeit + Africa/Conakry + 0 + + + Greenwich Zeit + Africa/Dakar + 0 + + + Westeuropäische Zeit + Africa/El_Aaiun + 0 + + + Greenwich Normalzeit + Africa/Freetown + 0 + + + Greenwich Zeit + Africa/Lome + 0 + + + Greenwich Zeit + Africa/Monrovia + 0 + + + Greenwich Zeit + Africa/Nouakchott + 0 + + + Greenwich Zeit + Africa/Ouagadougou + 0 + + + Greenwich Zeit + Africa/Sao_Tome + 0 + + + Greenwich Zeit + Africa/Timbuktu + 0 + + + Greenwich Zeit + America/Danmarkshavn + 0 + + + Westeuropäische Zeit + Atlantic/Canary + 0 + + + Westeuropäische Zeit + Atlantic/Faeroe + 0 + + + Westeuropäische Zeit + Atlantic/Faroe + 0 + + + Westeuropäische Zeit + Atlantic/Madeira + 0 + + + Greenwich Zeit + Atlantic/Reykjavik + 0 + + + Greenwich Zeit + Atlantic/St_Helena + 0 + + + Greenwich Zeit + Eire + 0 + + + GMT+00:00 + Etc/GMT + 0 + + + GMT+00:00 + Etc/GMT+0 + 0 + + + GMT+00:00 + Etc/GMT-0 + 0 + + + GMT+00:00 + Etc/GMT0 + 0 + + + Greenwich Zeit + Etc/Greenwich + 0 + + + Koordinierte Universalzeit + Etc/UCT + 0 + + + Koordinierte Universalzeit + Etc/UTC + 0 + + + Koordinierte Universalzeit + Etc/Universal + 0 + + + Koordinierte Universalzeit + Etc/Zulu + 0 + + + Greenwich Zeit + Europe/Belfast + 0 + + + Greenwich Zeit + Europe/Dublin + 0 + + + Greenwich Zeit + Europe/Guernsey + 0 + + + Greenwich Zeit + Europe/Isle_of_Man + 0 + + + Greenwich Zeit + Europe/Jersey + 0 + + + Westeuropäische Zeit + Europe/Lisbon + 0 + + + Greenwich Zeit + Europe/London + 0 + + + Greenwich Zeit + GB + 0 + + + Greenwich Zeit + GB-Eire + 0 + + + Greenwich Zeit + GMT + 0 + + + GMT+00:00 + GMT0 + 0 + + + Greenwich Zeit + Greenwich + 0 + + + Greenwich Zeit + Iceland + 0 + + + Westeuropäische Zeit + Portugal + 0 + + + Koordinierte Universalzeit + UCT + 0 + + + Koordinierte Universalzeit + UTC + 0 + + + Koordinierte Universalzeit + Universal + 0 + + + Westeuropäische Zeit + WET + 0 + + + Koordinierte Universalzeit + Zulu + 0 + + + Mitteleuropäische Zeit + Africa/Algiers + 3600 + + + Westafrikanische Zeit + Africa/Bangui + 3600 + + + Westafrikanische Zeit + Africa/Brazzaville + 3600 + + + Mitteleuropäische Zeit + Africa/Ceuta + 3600 + + + Westafrikanische Zeit + Africa/Douala + 3600 + + + Westafrikanische Zeit + Africa/Kinshasa + 3600 + + + Westafrikanische Zeit + Africa/Lagos + 3600 + + + Westafrikanische Zeit + Africa/Libreville + 3600 + + + Westafrikanische Zeit + Africa/Luanda + 3600 + + + Westafrikanische Zeit + Africa/Malabo + 3600 + + + Westafrikanische Zeit + Africa/Ndjamena + 3600 + + + Westafrikanische Zeit + Africa/Niamey + 3600 + + + Westafrikanische Zeit + Africa/Porto-Novo + 3600 + + + Mitteleuropäische Zeit + Africa/Tunis + 3600 + + + Westafrikanische Zeit + Africa/Windhoek + 3600 + + + Mitteleuropäische Zeit + Arctic/Longyearbyen + 3600 + + + Mitteleuropäische Zeit + Atlantic/Jan_Mayen + 3600 + + + Mitteleuropäische Zeit + CET + 3600 + + + Mitteleuropäische Zeit + ECT + 3600 + + + GMT+01:00 + Etc/GMT-1 + 3600 + + + Mitteleuropäische Zeit + Europe/Amsterdam + 3600 + + + Mitteleuropäische Zeit + Europe/Andorra + 3600 + + + Mitteleuropäische Zeit + Europe/Belgrade + 3600 + + + Mitteleuropäische Zeit + Europe/Berlin + 3600 + + + Mitteleuropäische Zeit + Europe/Bratislava + 3600 + + + Mitteleuropäische Zeit + Europe/Brussels + 3600 + + + Mitteleuropäische Zeit + Europe/Budapest + 3600 + + + Mitteleuropäische Zeit + Europe/Copenhagen + 3600 + + + Mitteleuropäische Zeit + Europe/Gibraltar + 3600 + + + Mitteleuropäische Zeit + Europe/Ljubljana + 3600 + + + Mitteleuropäische Zeit + Europe/Luxembourg + 3600 + + + Mitteleuropäische Zeit + Europe/Madrid + 3600 + + + Mitteleuropäische Zeit + Europe/Malta + 3600 + + + Mitteleuropäische Zeit + Europe/Monaco + 3600 + + + Mitteleuropäische Zeit + Europe/Oslo + 3600 + + + Mitteleuropäische Zeit + Europe/Paris + 3600 + + + Mitteleuropäische Zeit + Europe/Podgorica + 3600 + + + Mitteleuropäische Zeit + Europe/Prague + 3600 + + + Mitteleuropäische Zeit + Europe/Rome + 3600 + + + Mitteleuropäische Zeit + Europe/San_Marino + 3600 + + + Mitteleuropäische Zeit + Europe/Sarajevo + 3600 + + + Mitteleuropäische Zeit + Europe/Skopje + 3600 + + + Mitteleuropäische Zeit + Europe/Stockholm + 3600 + + + Mitteleuropäische Zeit + Europe/Tirane + 3600 + + + Mitteleuropäische Zeit + Europe/Vaduz + 3600 + + + Mitteleuropäische Zeit + Europe/Vatican + 3600 + + + Mitteleuropäische Zeit + Europe/Vienna + 3600 + + + Mitteleuropäische Zeit + Europe/Warsaw + 3600 + + + Mitteleuropäische Zeit + Europe/Zagreb + 3600 + + + Mitteleuropäische Zeit + Europe/Zurich + 3600 + + + Zentraleuropäische Zeit + MET + 3600 + + + Mitteleuropäische Zeit + Poland + 3600 + + + Osteuropäische Zeit + ART + 7200 + + + Zentralafrikanische Zeit + Africa/Blantyre + 7200 + + + Zentralafrikanische Zeit + Africa/Bujumbura + 7200 + + + Osteuropäische Zeit + Africa/Cairo + 7200 + + + Zentralafrikanische Zeit + Africa/Gaborone + 7200 + + + Zentralafrikanische Zeit + Africa/Harare + 7200 + + + Südafrikanische Normalzeit + Africa/Johannesburg + 7200 + + + Zentralafrikanische Zeit + Africa/Kigali + 7200 + + + Zentralafrikanische Zeit + Africa/Lubumbashi + 7200 + + + Zentralafrikanische Zeit + Africa/Lusaka + 7200 + + + Zentralafrikanische Zeit + Africa/Maputo + 7200 + + + Südafrikanische Normalzeit + Africa/Maseru + 7200 + + + Südafrikanische Normalzeit + Africa/Mbabane + 7200 + + + Osteuropäische Zeit + Africa/Tripoli + 7200 + + + Osteuropäische Zeit + Asia/Amman + 7200 + + + Osteuropäische Zeit + Asia/Beirut + 7200 + + + Osteuropäische Zeit + Asia/Damascus + 7200 + + + Osteuropäische Zeit + Asia/Gaza + 7200 + + + Osteuropäische Zeit + Asia/Istanbul + 7200 + + + Israelische Normalzeit + Asia/Jerusalem + 7200 + + + Osteuropäische Zeit + Asia/Nicosia + 7200 + + + Israelische Normalzeit + Asia/Tel_Aviv + 7200 + + + Zentralafrikanische Zeit + CAT + 7200 + + + Osteuropäische Zeit + EET + 7200 + + + Osteuropäische Zeit + Egypt + 7200 + + + GMT+02:00 + Etc/GMT-2 + 7200 + + + Osteuropäische Zeit + Europe/Athens + 7200 + + + Osteuropäische Zeit + Europe/Bucharest + 7200 + + + Osteuropäische Zeit + Europe/Chisinau + 7200 + + + Osteuropäische Zeit + Europe/Helsinki + 7200 + + + Osteuropäische Zeit + Europe/Istanbul + 7200 + + + Osteuropäische Zeit + Europe/Kaliningrad + 7200 + + + Osteuropäische Zeit + Europe/Kiev + 7200 + + + Osteuropäische Zeit + Europe/Mariehamn + 7200 + + + Osteuropäische Zeit + Europe/Minsk + 7200 + + + Osteuropäische Zeit + Europe/Nicosia + 7200 + + + Osteuropäische Zeit + Europe/Riga + 7200 + + + Osteuropäische Zeit + Europe/Simferopol + 7200 + + + Osteuropäische Zeit + Europe/Sofia + 7200 + + + Osteuropäische Zeit + Europe/Tallinn + 7200 + + + Osteuropäische Zeit + Europe/Tiraspol + 7200 + + + Osteuropäische Zeit + Europe/Uzhgorod + 7200 + + + Osteuropäische Zeit + Europe/Vilnius + 7200 + + + Osteuropäische Zeit + Europe/Zaporozhye + 7200 + + + Israelische Normalzeit + Israel + 7200 + + + Osteuropäische Zeit + Libya + 7200 + + + Osteuropäische Zeit + Turkey + 7200 + + + Ostafrikanische Zeit + Africa/Addis_Ababa + 10800 + + + Ostafrikanische Zeit + Africa/Asmara + 10800 + + + Ostafrikanische Zeit + Africa/Asmera + 10800 + + + Ostafrikanische Zeit + Africa/Dar_es_Salaam + 10800 + + + Ostafrikanische Zeit + Africa/Djibouti + 10800 + + + Ostafrikanische Zeit + Africa/Kampala + 10800 + + + Ostafrikanische Zeit + Africa/Khartoum + 10800 + + + Ostafrikanische Zeit + Africa/Mogadishu + 10800 + + + Ostafrikanische Zeit + Africa/Nairobi + 10800 + + + Syowa Zeit + Antarctica/Syowa + 10800 + + + Arabische Normalzeit + Asia/Aden + 10800 + + + Arabische Normalzeit + Asia/Baghdad + 10800 + + + Arabische Normalzeit + Asia/Bahrain + 10800 + + + Arabische Normalzeit + Asia/Kuwait + 10800 + + + Arabische Normalzeit + Asia/Qatar + 10800 + + + Arabische Normalzeit + Asia/Riyadh + 10800 + + + Ostafrikanische Zeit + EAT + 10800 + + + GMT+03:00 + Etc/GMT-3 + 10800 + + + Moskauer Normalzeit + Europe/Moscow + 10800 + + + Wolgograder Zeit + Europe/Volgograd + 10800 + + + Ostafrikanische Zeit + Indian/Antananarivo + 10800 + + + Ostafrikanische Zeit + Indian/Comoro + 10800 + + + Ostafrikanische Zeit + Indian/Mayotte + 10800 + + + Moskauer Normalzeit + W-SU + 10800 + + + GMT+03:07 + Asia/Riyadh87 + 11224 + + + GMT+03:07 + Asia/Riyadh88 + 11224 + + + GMT+03:07 + Asia/Riyadh89 + 11224 + + + GMT+03:07 + Mideast/Riyadh87 + 11224 + + + GMT+03:07 + Mideast/Riyadh88 + 11224 + + + GMT+03:07 + Mideast/Riyadh89 + 11224 + + + Iranische Normalzeit + Asia/Tehran + 12600 + + + Iranische Normalzeit + Iran + 12600 + + + Aserbaidschanische Zeit + Asia/Baku + 14400 + + + Golf Normalzeit + Asia/Dubai + 14400 + + + Golf Normalzeit + Asia/Muscat + 14400 + + + Georgische Zeit + Asia/Tbilisi + 14400 + + + Armenische Zeit + Asia/Yerevan + 14400 + + + GMT+04:00 + Etc/GMT-4 + 14400 + + + Samarische Zeit + Europe/Samara + 14400 + + + Seychellen Zeit + Indian/Mahe + 14400 + + + Mauritius Zeit + Indian/Mauritius + 14400 + + + Reunion Zeit + Indian/Reunion + 14400 + + + Armenische Zeit + NET + 14400 + + + Afghanistanische Zeit + Asia/Kabul + 16200 + + + Davis Zeit + Antarctica/Davis + 18000 + + + Mawson Zeit + Antarctica/Mawson + 18000 + + + Aqtau Zeit + Asia/Aqtau + 18000 + + + Aqtobe Zeit + Asia/Aqtobe + 18000 + + + Turkmenische Zeit + Asia/Ashgabat + 18000 + + + Turkmenische Zeit + Asia/Ashkhabad + 18000 + + + Tadschikische Zeit + Asia/Dushanbe + 18000 + + + Pakistanische Zeit + Asia/Karachi + 18000 + + + Oral Zeit + Asia/Oral + 18000 + + + Usbekistan Zeit + Asia/Samarkand + 18000 + + + Usbekistan Zeit + Asia/Tashkent + 18000 + + + Jekaterinburger Zeit + Asia/Yekaterinburg + 18000 + + + GMT+05:00 + Etc/GMT-5 + 18000 + + + Französisch Süd- u. Antarktische Landzeit + Indian/Kerguelen + 18000 + + + Maledivische Zeit + Indian/Maldives + 18000 + + + Pakistanische Zeit + PLT + 18000 + + + Indische Normalzeit + Asia/Calcutta + 19800 + + + Indische Normalzeit + Asia/Colombo + 19800 + + + Indische Normalzeit + Asia/Kolkata + 19800 + + + Indische Normalzeit + IST + 19800 + + + Nepalesische Zeit + Asia/Kathmandu + 20700 + + + Nepalesische Zeit + Asia/Katmandu + 20700 + + + Vostok Zeit + Antarctica/Vostok + 21600 + + + Alma Ata Zeit + Asia/Almaty + 21600 + + + Kirgisische Zeit + Asia/Bishkek + 21600 + + + Bangladesch Zeit + Asia/Dacca + 21600 + + + Bangladesch Zeit + Asia/Dhaka + 21600 + + + Nowosibirsker Zeit + Asia/Novokuznetsk + 21600 + + + Nowosibirsker Zeit + Asia/Novosibirsk + 21600 + + + Omsk Zeit + Asia/Omsk + 21600 + + + Qyzylorda Zeit + Asia/Qyzylorda + 21600 + + + Bhutanische Zeit + Asia/Thimbu + 21600 + + + Bhutanische Zeit + Asia/Thimphu + 21600 + + + Bangladesch Zeit + BST + 21600 + + + GMT+06:00 + Etc/GMT-6 + 21600 + + + Indischer Ozean Territorium Zeit + Indian/Chagos + 21600 + + + Myanmar Zeit + Asia/Rangoon + 23400 + + + Cocos Islands Zeit + Indian/Cocos + 23400 + + + Indochina Zeit + Asia/Bangkok + 25200 + + + Indochina Zeit + Asia/Ho_Chi_Minh + 25200 + + + Hovd Zeit + Asia/Hovd + 25200 + + + Westindonesische Zeit + Asia/Jakarta + 25200 + + + Krasnojarsker Zeit + Asia/Krasnoyarsk + 25200 + + + Indochina Zeit + Asia/Phnom_Penh + 25200 + + + Westindonesische Zeit + Asia/Pontianak + 25200 + + + Indochina Zeit + Asia/Saigon + 25200 + + + Indochina Zeit + Asia/Vientiane + 25200 + + + GMT+07:00 + Etc/GMT-7 + 25200 + + + Christmas Island Zeit + Indian/Christmas + 25200 + + + Indochina Zeit + VST + 25200 + + + Brunei Zeit + Asia/Brunei + 28800 + + + Choibalsan Zeit + Asia/Choibalsan + 28800 + + + Chinesische Normalzeit + Asia/Chongqing + 28800 + + + Chinesische Normalzeit + Asia/Chungking + 28800 + + + Chinesische Normalzeit + Asia/Harbin + 28800 + + + Hongkong Zeit + Asia/Hong_Kong + 28800 + + + Irkutsk Zeit + Asia/Irkutsk + 28800 + + + Chinesische Normalzeit + Asia/Kashgar + 28800 + + + Malaysische Zeit + Asia/Kuala_Lumpur + 28800 + + + Malaysische Zeit + Asia/Kuching + 28800 + + + Chinesische Normalzeit + Asia/Macao + 28800 + + + Chinesische Normalzeit + Asia/Macau + 28800 + + + Zentralindonesische Zeit + Asia/Makassar + 28800 + + + Philippinische Zeit + Asia/Manila + 28800 + + + Chinesische Normalzeit + Asia/Shanghai + 28800 + + + Singapur Zeit + Asia/Singapore + 28800 + + + Chinesische Normalzeit + Asia/Taipei + 28800 + + + Zentralindonesische Zeit + Asia/Ujung_Pandang + 28800 + + + Ulaanbaatar Zeit + Asia/Ulaanbaatar + 28800 + + + Ulaanbaatar Zeit + Asia/Ulan_Bator + 28800 + + + Chinesische Normalzeit + Asia/Urumqi + 28800 + + + Westliche Normalzeit (Australien) + Australia/Perth + 28800 + + + Westliche Normalzeit (Australien) + Australia/West + 28800 + + + Chinesische Normalzeit + CTT + 28800 + + + GMT+08:00 + Etc/GMT-8 + 28800 + + + Hongkong Zeit + Hongkong + 28800 + + + Chinesische Normalzeit + PRC + 28800 + + + Singapur Zeit + Singapore + 28800 + + + Zentral-Westliche Normalzeit (Australien) + Australia/Eucla + 31500 + + + Timor-Leste Normalzeit + Asia/Dili + 32400 + + + Ostindonesische Zeit + Asia/Jayapura + 32400 + + + Koreanische Normalzeit + Asia/Pyongyang + 32400 + + + Koreanische Normalzeit + Asia/Seoul + 32400 + + + Japanische Normalzeit + Asia/Tokyo + 32400 + + + Jakutsk Zeit + Asia/Yakutsk + 32400 + + + GMT+09:00 + Etc/GMT-9 + 32400 + + + Japanische Normalzeit + JST + 32400 + + + Japanische Normalzeit + Japan + 32400 + + + Palau Zeit + Pacific/Palau + 32400 + + + Koreanische Normalzeit + ROK + 32400 + + + Zentrale Normalzeit (Northern Territory) + ACT + 34200 + + + Zentrale Normalzeit (Südaustralien) + Australia/Adelaide + 34200 + + + Zentrale Normalzeit (Südaustralien/New South Wales) + Australia/Broken_Hill + 34200 + + + Zentrale Normalzeit (Northern Territory) + Australia/Darwin + 34200 + + + Zentrale Normalzeit (Northern Territory) + Australia/North + 34200 + + + Zentrale Normalzeit (Südaustralien) + Australia/South + 34200 + + + Zentrale Normalzeit (Südaustralien/New South Wales) + Australia/Yancowinna + 34200 + + + Östliche Normalzeit (New South Wales) + AET + 36000 + + + Dumont-d'Urville Zeit + Antarctica/DumontDUrville + 36000 + + + Sakhalin Zeit + Asia/Sakhalin + 36000 + + + Wladiwostok Zeit + Asia/Vladivostok + 36000 + + + Östliche Normalzeit (New South Wales) + Australia/ACT + 36000 + + + Östliche Normalzeit (Queensland) + Australia/Brisbane + 36000 + + + Östliche Normalzeit (New South Wales) + Australia/Canberra + 36000 + + + Östliche Normalzeit (New South Wales) + Australia/Currie + 36000 + + + Östliche Normalzeit (Tasmanien) + Australia/Hobart + 36000 + + + Östliche Normalzeit (Queensland) + Australia/Lindeman + 36000 + + + Östliche Normalzeit (Victoria) + Australia/Melbourne + 36000 + + + Östliche Normalzeit (New South Wales) + Australia/NSW + 36000 + + + Östliche Normalzeit (Queensland) + Australia/Queensland + 36000 + + + Östliche Normalzeit (New South Wales) + Australia/Sydney + 36000 + + + Östliche Normalzeit (Tasmanien) + Australia/Tasmania + 36000 + + + Östliche Normalzeit (Victoria) + Australia/Victoria + 36000 + + + GMT+10:00 + Etc/GMT-10 + 36000 + + + Chamorro Normalzeit + Pacific/Guam + 36000 + + + Papua-Neuguinea Zeit + Pacific/Port_Moresby + 36000 + + + Chamorro Normalzeit + Pacific/Saipan + 36000 + + + Truk Zeit + Pacific/Truk + 36000 + + + Truk Zeit + Pacific/Yap + 36000 + + + Lord Howe Normalzeit + Australia/LHI + 37800 + + + Lord Howe Normalzeit + Australia/Lord_Howe + 37800 + + + Casey Time + Antarctica/Casey + 39600 + + + Magadanische Zeit + Asia/Magadan + 39600 + + + GMT+11:00 + Etc/GMT-11 + 39600 + + + Vanuatu Zeit + Pacific/Efate + 39600 + + + Salomoninseln Zeit + Pacific/Guadalcanal + 39600 + + + Kosrae Zeit + Pacific/Kosrae + 39600 + + + Neukaledonische Zeit + Pacific/Noumea + 39600 + + + Ponape Zeit + Pacific/Ponape + 39600 + + + Salomoninseln Zeit + SST + 39600 + + + Norfolk Zeit + Pacific/Norfolk + 41400 + + + Neuseeland Normalzeit + Antarctica/McMurdo + 43200 + + + Neuseeland Normalzeit + Antarctica/South_Pole + 43200 + + + Anadyr Zeit + Asia/Anadyr + 43200 + + + Petropawlowsk-Kamtschatkische Zeit + Asia/Kamchatka + 43200 + + + GMT+12:00 + Etc/GMT-12 + 43200 + + + Marshallinseln Zeit + Kwajalein + 43200 + + + Neuseeland Normalzeit + NST + 43200 + + + Neuseeland Normalzeit + NZ + 43200 + + + Neuseeland Normalzeit + Pacific/Auckland + 43200 + + + Fidschi Zeit + Pacific/Fiji + 43200 + + + Tuvalu Zeit + Pacific/Funafuti + 43200 + + + Marshallinseln Zeit + Pacific/Kwajalein + 43200 + + + Marshallinseln Zeit + Pacific/Majuro + 43200 + + + Nauru Zeit + Pacific/Nauru + 43200 + + + Gilbert-Inseln Zeit + Pacific/Tarawa + 43200 + + + Wake Zeit + Pacific/Wake + 43200 + + + Wallis u. Futuna Zeit + Pacific/Wallis + 43200 + + + Chatham Normalzeit + NZ-CHAT + 45900 + + + Chatham Normalzeit + Pacific/Chatham + 45900 + + + GMT+13:00 + Etc/GMT-13 + 46800 + + + Phoenix Inseln Zeit + Pacific/Enderbury + 46800 + + + Tonga Zeit + Pacific/Tongatapu + 46800 + + + GMT+14:00 + Etc/GMT-14 + 50400 + + + Line Inseln Zeit + Pacific/Kiritimati + 50400 + + + + + +]]> + +
\ No newline at end of file diff --git a/doc/Types.xml b/doc/Types.xml index 92a2c39..8872238 100644 --- a/doc/Types.xml +++ b/doc/Types.xml @@ -3,6 +3,7 @@ xmlns:xi="http://www.w3.org/2001/XInclude"> + diff --git a/doc/types/AntProperty.xml b/doc/types/AntProperty.xml index 529e496..e4e7d78 100644 --- a/doc/types/AntProperty.xml +++ b/doc/types/AntProperty.xml @@ -1,5 +1,5 @@ -
+
AntProperty type The AntProperty type defines a list of key/value pairs. diff --git a/doc/types/DateInfoType.xml b/doc/types/DateInfoType.xml new file mode 100644 index 0000000..d1b99a2 --- /dev/null +++ b/doc/types/DateInfoType.xml @@ -0,0 +1,14 @@ + +
+ DateInfoType type + Different presentation of a date time value. + + The defining Java class is + + net.brutex.xservices.types.DateInfoType + + . + + +
diff --git a/src/java/net/brutex/xservices/agent/AgentServlet.java b/src/java/net/brutex/xservices/agent/AgentServlet.java new file mode 100644 index 0000000..a053b12 --- /dev/null +++ b/src/java/net/brutex/xservices/agent/AgentServlet.java @@ -0,0 +1,39 @@ +package net.brutex.xservices.agent; + +import java.io.IOException; +import javax.servlet.GenericServlet; +import javax.servlet.ServletConfig; +import javax.servlet.ServletException; +import javax.servlet.ServletRequest; +import javax.servlet.ServletResponse; + +/** + * Servlet implementation class AgentServlet + */ +public class AgentServlet extends GenericServlet { + private static final long serialVersionUID = 1L; + + /** + * @see GenericServlet#GenericServlet() + */ + public AgentServlet() { + super(); + // TODO Auto-generated constructor stub + } + + /** + * @see Servlet#init(ServletConfig) + */ + public void init(ServletConfig config) throws ServletException { + // TODO Auto-generated method stub + } + + /** + * @see Servlet#service(ServletRequest request, ServletResponse response) + */ + public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException { + // TODO Auto-generated method stub + System.out.println("Yep. I am here."); + } + +} diff --git a/src/java/net/brutex/xservices/types/DateFormatType.java b/src/java/net/brutex/xservices/types/DateFormatType.java index d852105..ec0aa34 100644 --- a/src/java/net/brutex/xservices/types/DateFormatType.java +++ b/src/java/net/brutex/xservices/types/DateFormatType.java @@ -15,33 +15,53 @@ */ package net.brutex.xservices.types; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.Locale; +import java.util.TimeZone; + import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + +import net.brutex.xservices.util.BrutexNamespaces; /** * Different pre-defined date formats. * * @author Brian Rosenberger, bru@brutex.de */ -@XmlEnum(value = String.class) +@XmlEnum() public enum DateFormatType { /** - * ISO 8601 format (2011-05-24T14:39Z) + * ISO 8601 format (2011-05-24T14:39+01:00) */ - @XmlEnumValue("ISO 8601") - ISO8601("ISO 8601", "yyyy-MM-dd'T'HH:mm:ssZ"), + @XmlEnumValue("ISO 8601") + ISO8601("ISO 8601", "yyyy-MM-dd'T'HH:mm:ss.SSSZ"), + /** + * RFC822 format (2011-05-24T14:39+0100) + */ + @XmlEnumValue("RFC 822") + RFC822("RFC 822", "yyyy-MM-dd'T'HH:mm:ss.SSSZ"), /** * yyyy/mm/dd */ - @XmlEnumValue("yyyy/mm/dd") - YYYYMMDD("yyyy/mm/dd", "yyyy/MM/dd"), + @XmlEnumValue("DateOnly-slashed") + YYYYMMDD("DateOnly-slashed", "yyyy/MM/dd"), /** * dd.mm.yyyy */ - @XmlEnumValue("dd.mm.yyyy") - DDMMYY("dd.mm.yyyy", "dd.MM.yyyy"); + @XmlEnumValue("DateOnly-dotted") + DDMMYYYY("DateOnly-dotted", "dd.MM.yyyy"), + + /** + * dd.mm.yyyy + */ + @XmlEnumValue("DateOnly-dashed") + DDMMYYYYdashed("DateOnly-dashed", "dd-MM-yyyy"); private String value; private String format; @@ -59,7 +79,33 @@ public enum DateFormatType { return value; } - public String format() { - return format; + public String format(Date date, Locale locale, TimeZone timezone) { + if(date==null) return ""; + if(locale==null) locale = Locale.getDefault(); + if(timezone==null) timezone = TimeZone.getDefault(); + String result = ""; + SimpleDateFormat f; + if(this.equals(ISO8601)) { + //apply ISO8061 hack + f = new SimpleDateFormat(RFC822.format, locale); + f.setTimeZone(timezone); + result = f.format(date); + result = result.substring(0, 26) + ":" + result.substring(26); + } else { + f = new SimpleDateFormat(this.format, locale); + f.setTimeZone(timezone); + result = f.format(date); + } + return result; + } + + public Date parse(String s, Locale locale, TimeZone timezone) + throws ParseException { + if(locale==null) locale = Locale.getDefault(); + if(timezone==null) timezone = TimeZone.getDefault(); + SimpleDateFormat fin = new SimpleDateFormat(this.format, locale); + fin.setTimeZone(timezone); + Date date = fin.parse(s); + return date; } } diff --git a/src/java/net/brutex/xservices/types/DateInfoExtendedType.java b/src/java/net/brutex/xservices/types/DateInfoExtendedType.java new file mode 100644 index 0000000..344cfb9 --- /dev/null +++ b/src/java/net/brutex/xservices/types/DateInfoExtendedType.java @@ -0,0 +1,69 @@ +/* + * Copyright 2011 Brian Rosenberger (Brutex Network) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.brutex.xservices.types; + +import java.text.SimpleDateFormat; +import java.util.GregorianCalendar; +import java.util.TimeZone; + +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + +import net.brutex.xservices.util.BrutexNamespaces; + +/** + * @author Brian Rosenberger + * + */ +@XmlType(namespace=BrutexNamespaces.WS_XSERVICES) +public class DateInfoExtendedType extends DateInfoType { + + private GregorianCalendar date = null; + private TimeZone zone = null; + + @SuppressWarnings("unused") + public DateInfoExtendedType() { + super(); + } + + public DateInfoExtendedType(GregorianCalendar date, TimeZone zone) { + this.date = date; + this.zone = zone; + } + + @XmlElement(name = "format1") + public String getFormat1() { + return DateFormatType.DDMMYYYY.format(date.getTime(), null, null); + } + + /** + * @return + */ + @XmlElement(name = "format2") + public String getFormat2() { + return DateFormatType.YYYYMMDD.format(date.getTime(), null, null); + } + + @XmlElement(name = "format3") + public String getFormat3() { + String format = "HH:mm:ss"; + SimpleDateFormat f = new SimpleDateFormat(format); + return f.format(date.getTime()); + } + + // yyyy-MM-dd'T'HH:mm:ssZ +} diff --git a/src/java/net/brutex/xservices/types/DateInfoType.java b/src/java/net/brutex/xservices/types/DateInfoType.java new file mode 100644 index 0000000..d63f01e --- /dev/null +++ b/src/java/net/brutex/xservices/types/DateInfoType.java @@ -0,0 +1,96 @@ +/* + * Copyright 2012 Brian Rosenberger (Brutex Network) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.brutex.xservices.types; + +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.GregorianCalendar; +import java.util.TimeZone; + +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + +import net.brutex.xservices.util.BrutexNamespaces; + + + + +/** + * Date object representation with different formats + * + * @author Brian Rosenberger, bru@brutex.de + */ +@XmlType(name=DateInfoType.XML_NAME, namespace=BrutexNamespaces.WS_XSERVICES, + propOrder={"isoDate","rfcDate", "millis"}) +public class DateInfoType { + + public static final String XML_NAME="DateInfoType"; + private final GregorianCalendar date; + private final TimeZone zone; + + /** + * Create a new DateInfoType + * @param date date/time + */ + public DateInfoType(GregorianCalendar date, TimeZone zone) { + this.date = date; + this.zone = zone; + } + + /** + * Create a new DateInfoType with current date/time + */ + public DateInfoType() { + this.zone = TimeZone.getDefault(); + this.date = new GregorianCalendar(zone); + } + + /** + * @return milliseconds since 01.01.1970 + */ + @XmlElement(name="timestamp") + public long getMillis() { + return date.getTimeInMillis(); + } + + + /** + * Get date formated according to ISO8601 (done by jaxb->xsd:datetime conversion) + * @return date + */ + @XmlElement(name="iso8601date") + public Date getIsoDate() { + //String format = DateFormatType.ISO8601.format(); + //SimpleDateFormat f = new SimpleDateFormat(format); + //String text = f.format(date.getTime()); + //Fix missing colon in java timezone + //return text.substring(0, 22) + ":" + text.substring(22); + return date.getTime(); + } + + /** + * Get date formated according to RFC822 (also java standard) + * @return date string + */ + @XmlElement(name="rfc822date") + public String getRfcDate() { + return DateFormatType.RFC822.format(date.getTime(), null, null); + + } + + + +} diff --git a/src/java/net/brutex/xservices/types/DateTimeUnits.java b/src/java/net/brutex/xservices/types/DateTimeUnits.java index 289a33c..c9dcb6c 100644 --- a/src/java/net/brutex/xservices/types/DateTimeUnits.java +++ b/src/java/net/brutex/xservices/types/DateTimeUnits.java @@ -53,7 +53,10 @@ public enum DateTimeUnits { * days */ @XmlEnumValue("days") - DAYS("days"); + DAYS("days"), + + @XmlEnumValue("years") + YEARS("years"); private String value; diff --git a/src/java/net/brutex/xservices/types/TimeZoneType.java b/src/java/net/brutex/xservices/types/TimeZoneType.java new file mode 100644 index 0000000..adf52b2 --- /dev/null +++ b/src/java/net/brutex/xservices/types/TimeZoneType.java @@ -0,0 +1,81 @@ +/* + * Copyright 2012 Brian Rosenberger (Brutex Network) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.brutex.xservices.types; + +import java.util.TimeZone; + +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + +import net.brutex.xservices.util.BrutexNamespaces; + +/** + * Different pre-defined date formats. + * + * @author Brian Rosenberger, bru@brutex.de + */ +@XmlType(name=TimeZoneType.XML_NAME, namespace=BrutexNamespaces.WS_XSERVICES) +public class TimeZoneType { + public static final String XML_NAME = "timezone"; + private String id; + private String displayname; + private TimeZone timezone; + private long offset; + + public TimeZoneType(TimeZone timezone) { + this.timezone = timezone; + this.id = timezone.getID(); + this.displayname = timezone.getDisplayName(); + this.offset = timezone.getRawOffset()/1000; + } + public TimeZoneType() { + this(TimeZone.getDefault()); + } + + /** + * @return the id + */ + @XmlElement + public String getId() { + return id; + } + + /** + * @return the displayname + */ + @XmlElement + public String getDisplayname() { + return displayname; + } + + /** + * @return the timezone + */ + public TimeZone getTimezone() { + return timezone; + } + + /** + * @return the offset + */ + @XmlElement + public long getOffset() { + return offset; + } + + + +} diff --git a/src/java/net/brutex/xservices/util/RunTask.java b/src/java/net/brutex/xservices/util/RunTask.java index 1891611..9cc85ab 100644 --- a/src/java/net/brutex/xservices/util/RunTask.java +++ b/src/java/net/brutex/xservices/util/RunTask.java @@ -19,8 +19,9 @@ import java.io.ByteArrayOutputStream; import java.io.PrintStream; import java.util.HashMap; import java.util.Map; -import net.brutex.xservices.types.AntProperty; import net.brutex.xservices.types.ReturnCode; +import net.brutex.xservices.types.ant.AntProperty; + import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Project; import org.apache.tools.ant.Target; diff --git a/src/java/net/brutex/xservices/ws/ArchiveService.java b/src/java/net/brutex/xservices/ws/ArchiveService.java index 100fa97..1249728 100644 --- a/src/java/net/brutex/xservices/ws/ArchiveService.java +++ b/src/java/net/brutex/xservices/ws/ArchiveService.java @@ -18,12 +18,12 @@ package net.brutex.xservices.ws; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebService; -import net.brutex.xservices.types.ArchiveResource; import net.brutex.xservices.types.CompressionType; -import net.brutex.xservices.types.FileResource; -import net.brutex.xservices.types.FileSetResource; import net.brutex.xservices.types.ReturnCode; +import net.brutex.xservices.types.ant.ArchiveResource; +import net.brutex.xservices.types.ant.FileResource; +import net.brutex.xservices.types.ant.FileSetResource; import net.brutex.xservices.util.BrutexNamespaces; diff --git a/src/java/net/brutex/xservices/ws/DateService.java b/src/java/net/brutex/xservices/ws/DateService.java index 6badde8..01e939c 100644 --- a/src/java/net/brutex/xservices/ws/DateService.java +++ b/src/java/net/brutex/xservices/ws/DateService.java @@ -17,17 +17,24 @@ package net.brutex.xservices.ws; import java.math.BigInteger; +import java.util.Date; import java.util.GregorianCalendar; +import java.util.List; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebService; import javax.xml.bind.annotation.XmlElement; +import javax.xml.datatype.XMLGregorianCalendar; import net.brutex.xservices.types.DateFormatType; +import net.brutex.xservices.types.DateInfoExtendedType; +import net.brutex.xservices.types.DateInfoType; import net.brutex.xservices.types.DateTimeUnits; +import net.brutex.xservices.types.TimeZoneType; import net.brutex.xservices.util.BrutexNamespaces; + import org.apache.cxf.annotations.WSDLDocumentation; import org.apache.cxf.annotations.WSDLDocumentationCollection; @@ -45,7 +52,9 @@ import org.apache.cxf.annotations.WSDLDocumentationCollection; public interface DateService { public static final String SERVICE_NAME = "DateService"; + final String OPERATION_GETDATE = "getDate"; + final String OPERATION_GETDATEEXTENDED = "getDateExtended"; final String OPERATION_GETTIMESTAMP = "getTimestamp"; final String OPERATION_GETTIMESTAMP2 = "getTimestamp2"; final String OPERATION_GETINTIMEZONE = "getInTimezone"; @@ -56,7 +65,7 @@ public interface DateService { final String OPERATION_DATETIMEDIFF = "dateTimeDiff"; final String OPERATION_DATETIMEDIFF2 = "dateTimeDiff2"; final String OPERATION_DATEADD = "dateAdd"; - + final String OPERATION_GETTIMEZONES = "getTimezones"; final String PARAM_TIMEZONE = "timezone"; final String PARAM_DATETIME = "datetime"; final String PARAM_FORMAT = "format"; @@ -65,14 +74,24 @@ public interface DateService { /** * Get current date and time. * - * @param timezone Optional timezone. Defaults to server timezone. * @return Current date and time. * @throws XServicesFault */ @WebMethod(operationName=OPERATION_GETDATE) @WSDLDocumentation(value="Get current date and time.") - public abstract GregorianCalendar getDate( - @WebParam(name=PARAM_TIMEZONE) String timezone) throws XServicesFault; + public abstract DateInfoType getDate() + throws XServicesFault; + + /** + * Get current date and time (extended version). + * + * @return Current date and time. + * @throws XServicesFault + */ + @WebMethod(operationName=OPERATION_GETDATEEXTENDED) + @WSDLDocumentation(value="Get current date and time in different formats.") + public abstract DateInfoExtendedType getDateExtended() + throws XServicesFault; /** * Get milliseconds since 01.01.1970. @@ -102,23 +121,26 @@ public interface DateService { * @throws XServicesFault */ @WebMethod(operationName=OPERATION_GETINTIMEZONE) - public abstract GregorianCalendar getInTimezone( - @WebParam(name=PARAM_DATETIME) @XmlElement(required=true) GregorianCalendar cal, + public abstract String getInTimezone( + @WebParam(name=PARAM_DATETIME) @XmlElement(required=true) Date cal, @WebParam(name=PARAM_TIMEZONE) @XmlElement(required=true) String timezone) throws XServicesFault; /** * Formats a date with pre-defined patterns. * - * @param cal date time to be formatted + * @param cal date time to be formatted in ISO8601 * @param format Pattern to be used for date formating * @return formatted date/time string * @throws XServicesFault */ @WebMethod(operationName=OPERATION_FORMATDATE) public abstract String formatDate( - @WebParam(name=PARAM_DATETIME) @XmlElement(required=true) GregorianCalendar cal, + @WebParam(name=PARAM_DATETIME) @XmlElement(required=true) Date cal, @WebParam(name=PARAM_FORMAT) @XmlElement(required=true) DateFormatType format) throws XServicesFault; + @WebMethod(operationName=OPERATION_GETTIMEZONES) + public abstract List getTimezones() throws XServicesFault; + /** * Formats a date with a free form pattern. * Uses SimpleDateFormat patterns @@ -151,7 +173,7 @@ public interface DateService { */ @WebMethod(operationName=OPERATION_FORMATDATEADVANCED) public abstract String formatDateAdvanced( - @WebParam(name=PARAM_DATETIME) @XmlElement(required=true) GregorianCalendar cal, + @WebParam(name=PARAM_DATETIME) @XmlElement(required=true) Date cal, @WebParam(name=PARAM_FORMAT) @XmlElement(required=true) String format) throws XServicesFault; /** @@ -164,7 +186,8 @@ public interface DateService { * @throws XServicesFault */ @WebMethod(operationName=OPERATION_PARSEDATE) - public abstract GregorianCalendar parseDate( + @WSDLDocumentation(value="Converts a string into date using pre-defined date formats.") + public abstract Date parseDate( @WebParam(name=PARAM_DATETIME) @XmlElement(required=true) String s, @WebParam(name=PARAM_FORMAT) @XmlElement(required=true) DateFormatType format, @WebParam(name=PARAM_TIMEZONE) String timezone) throws XServicesFault; @@ -192,8 +215,8 @@ public interface DateService { */ @WebMethod(operationName=OPERATION_DATETIMEDIFF) public abstract BigInteger dateTimeDiff( - @WebParam(name="fromDateTime") @XmlElement(required=true) GregorianCalendar fromCal, - @WebParam(name="toDateTime") @XmlElement(required=true) GregorianCalendar toCal) throws XServicesFault; + @WebParam(name="fromDateTime") @XmlElement(required=true) Date fromCal, + @WebParam(name="toDateTime") @XmlElement(required=true) Date toCal) throws XServicesFault; /** * Fully elapsed units between two dates. @@ -208,9 +231,9 @@ public interface DateService { @WebMethod(operationName=OPERATION_DATETIMEDIFF2) @WSDLDocumentation(value="Get elapsed time between to dates.") public abstract BigInteger dateTimeDiff2( - @WebParam(name="fromDateTime") @XmlElement(required=true) GregorianCalendar fromCal, - @WebParam(name="toDateTime") @XmlElement(required=true) GregorianCalendar toCal, - @WebParam(name="PARAM_UNIT") DateTimeUnits unit) throws XServicesFault; + @WebParam(name="fromDateTime") @XmlElement(required=true) Date fromCal, + @WebParam(name="toDateTime") @XmlElement(required=true) Date toCal, + @WebParam(name=PARAM_UNIT) DateTimeUnits unit) throws XServicesFault; /** * Add or subtract a time span from a date. diff --git a/src/java/net/brutex/xservices/ws/FileService.java b/src/java/net/brutex/xservices/ws/FileService.java index bfe811b..a75a12b 100644 --- a/src/java/net/brutex/xservices/ws/FileService.java +++ b/src/java/net/brutex/xservices/ws/FileService.java @@ -26,12 +26,12 @@ import javax.xml.bind.annotation.XmlElement; import org.apache.cxf.annotations.WSDLDocumentation; import org.apache.cxf.annotations.WSDLDocumentationCollection; -import net.brutex.xservices.types.ArchiveResource; -import net.brutex.xservices.types.AttachmentType; -import net.brutex.xservices.types.FileResource; -import net.brutex.xservices.types.FileSetResource; import net.brutex.xservices.types.ReplacePattern; import net.brutex.xservices.types.ReturnCode; +import net.brutex.xservices.types.ant.ArchiveResource; +import net.brutex.xservices.types.ant.AttachmentType; +import net.brutex.xservices.types.ant.FileResource; +import net.brutex.xservices.types.ant.FileSetResource; import net.brutex.xservices.util.BrutexNamespaces; import net.brutex.xservices.util.XServicesDocumentation; /** diff --git a/src/java/net/brutex/xservices/ws/MiscService.java b/src/java/net/brutex/xservices/ws/MiscService.java index 1736a9b..f2843bf 100644 --- a/src/java/net/brutex/xservices/ws/MiscService.java +++ b/src/java/net/brutex/xservices/ws/MiscService.java @@ -18,14 +18,15 @@ package net.brutex.xservices.ws; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebService; -import net.brutex.xservices.types.FileSetResource; import net.brutex.xservices.types.HostConnection; import net.brutex.xservices.types.HostinfoType; import net.brutex.xservices.types.MailMimeType; import net.brutex.xservices.types.ReturnCode; +import net.brutex.xservices.types.ant.FileSetResource; import net.brutex.xservices.util.BrutexNamespaces; import org.apache.cxf.aegis.type.java5.XmlElement; +import org.apache.cxf.aegis.type.java5.XmlReturnType; import org.apache.cxf.annotations.WSDLDocumentation; /** diff --git a/src/java/net/brutex/xservices/ws/StorageService.java b/src/java/net/brutex/xservices/ws/StorageService.java new file mode 100644 index 0000000..28fe29b --- /dev/null +++ b/src/java/net/brutex/xservices/ws/StorageService.java @@ -0,0 +1,84 @@ +/* + * Copyright 2011 Brian Rosenberger (Brutex Network) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.brutex.xservices.ws; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebService; +import net.brutex.xservices.types.TargetNodeType; +import net.brutex.xservices.types.ant.AttachmentType; +import net.brutex.xservices.types.ant.CollectionType; +import net.brutex.xservices.util.BrutexNamespaces; + +import org.apache.cxf.annotations.WSDLDocumentation; + +/** + * Storage management services. + * @author Brian Rosenberger + * @since 0.5.0 + * + */ +@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES) +public interface StorageService { + + public static final String SERVICE_NAME = "StorageService"; + + final String OPERATION_STORETEXT = "storeText"; + final String OPERATION_STOREBINARY = "storeBinary"; + final String OPERATION_CREATECOLLECTION = "createCollection"; + final String OPERATION_DELIVERCOLLECTION = "deliverCollection"; + + final String PARAM_TEXT = "text"; + final String PARAM_BINARY = "binary"; + final String PARAM_NAME = "name"; + final String PARAM_COLLECTION = "collection"; + final String PARAM_TARGETNODE = "target"; + final String PARAM_RAISEEVENT = "event"; + ; + /** + * Store text based data. + * @param text text to be stored + * + * @return uuid reference to stored object + * @throws XServicesFault + */ + @WebMethod(operationName=OPERATION_STORETEXT) + @WSDLDocumentation(value="Store text based data") + public abstract String storeText(@WebParam(name = PARAM_TEXT) String text) throws XServicesFault; + + @WebMethod(operationName=OPERATION_STOREBINARY) + @WSDLDocumentation(value="Store binary data") + public abstract String storeBinary( + @WebParam(name= PARAM_BINARY) AttachmentType binary) + throws XServicesFault; + + @WebMethod(operationName=OPERATION_CREATECOLLECTION) + @WSDLDocumentation(value="Create a new Collection by name.") + public abstract String createCollection( + @WebParam(name= PARAM_COLLECTION) CollectionType collection) + throws XServicesFault; + + @WebMethod(operationName=OPERATION_DELIVERCOLLECTION) + @WSDLDocumentation(value="Deliver a collection to a target node (asynchronous).") + public abstract void deliverCollection( + @WebParam(name= PARAM_COLLECTION) CollectionType collection, + @WebParam(name= PARAM_TARGETNODE) TargetNodeType targetnode, + @WebParam(name= PARAM_RAISEEVENT) boolean isFiring) + throws XServicesFault; + + +} diff --git a/src/java/net/brutex/xservices/ws/impl/ArchiveServiceImpl.java b/src/java/net/brutex/xservices/ws/impl/ArchiveServiceImpl.java index 88865d1..4b8f64c 100644 --- a/src/java/net/brutex/xservices/ws/impl/ArchiveServiceImpl.java +++ b/src/java/net/brutex/xservices/ws/impl/ArchiveServiceImpl.java @@ -19,11 +19,11 @@ import java.io.File; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebService; -import net.brutex.xservices.types.ArchiveResource; import net.brutex.xservices.types.CompressionType; -import net.brutex.xservices.types.FileResource; -import net.brutex.xservices.types.ResourceInterface; import net.brutex.xservices.types.ReturnCode; +import net.brutex.xservices.types.ant.ArchiveResource; +import net.brutex.xservices.types.ant.FileResource; +import net.brutex.xservices.types.ant.ResourceInterface; import net.brutex.xservices.util.BrutexNamespaces; import net.brutex.xservices.util.RunTask; import net.brutex.xservices.util.UnRarTask; diff --git a/src/java/net/brutex/xservices/ws/impl/DateServiceImpl.java b/src/java/net/brutex/xservices/ws/impl/DateServiceImpl.java index c73c5ee..62bff0f 100644 --- a/src/java/net/brutex/xservices/ws/impl/DateServiceImpl.java +++ b/src/java/net/brutex/xservices/ws/impl/DateServiceImpl.java @@ -18,125 +18,124 @@ package net.brutex.xservices.ws.impl; import java.math.BigInteger; import java.text.ParseException; import java.text.SimpleDateFormat; +import java.util.ArrayList; import java.util.Date; import java.util.GregorianCalendar; +import java.util.List; import java.util.TimeZone; import javax.jws.WebService; - import net.brutex.xservices.types.DateFormatType; +import net.brutex.xservices.types.DateInfoExtendedType; +import net.brutex.xservices.types.DateInfoType; import net.brutex.xservices.types.DateTimeUnits; +import net.brutex.xservices.types.TimeZoneType; import net.brutex.xservices.util.BrutexNamespaces; import net.brutex.xservices.ws.DateService; import net.brutex.xservices.ws.XServicesFault; - /** * @author Brian Rosenberger - * + * */ -@WebService( - targetNamespace = BrutexNamespaces.WS_XSERVICES, - endpointInterface = "net.brutex.xservices.ws.DateService", - serviceName = DateService.SERVICE_NAME - ) +@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES, endpointInterface = "net.brutex.xservices.ws.DateService", serviceName = DateService.SERVICE_NAME) public class DateServiceImpl implements DateService { private static String ERR_INVALIDFORMAT = "Invalid format pattern."; private static String ERR_INVALIDTIMEZONE = "Invalid timezone."; - - public GregorianCalendar getDate(String timezone) throws XServicesFault { - if (! isValidTimezone(timezone) ) { - String valid_ids = ""; - String[] tid = TimeZone.getAvailableIDs(); - for (String s : tid) { - valid_ids += s + "\n"; - } - throw new XServicesFault("Please supply a valid timezone id or none. Valid timezones are:\n" + valid_ids, - new Exception( )); - } - if (timezone == null || timezone.length()<1 ) timezone = "GMT0"; - GregorianCalendar c = new GregorianCalendar(TimeZone.getTimeZone(timezone)); - return c; + + public DateInfoType getDate() throws XServicesFault { + GregorianCalendar c = new GregorianCalendar(); + DateInfoType dateinfo = new DateInfoType(c, TimeZone.getDefault()); + return dateinfo; + } + + public DateInfoExtendedType getDateExtended() throws XServicesFault { + GregorianCalendar c = new GregorianCalendar(); + DateInfoExtendedType dateinfo = new DateInfoExtendedType(c, + TimeZone.getDefault()); + return dateinfo; } - public BigInteger getTimestamp() { Date d = new Date(); long l = d.getTime(); return new BigInteger(Long.toString(l)); } - + public BigInteger getTimestamp2() { Date d = new Date(); - long l = d.getTime()/1000; + long l = d.getTime() / 1000; return new BigInteger(Long.toString(l)); } - - public GregorianCalendar getInTimezone(GregorianCalendar cal, - String timezone) throws XServicesFault { - if(! isValidTimezone(timezone)) throw new XServicesFault(ERR_INVALIDTIMEZONE); - GregorianCalendar c = new GregorianCalendar(TimeZone.getTimeZone(timezone)); - c.setTimeInMillis(cal.getTimeInMillis()); - return c; - } - - - public String formatDate(GregorianCalendar cal, DateFormatType format) throws XServicesFault { - return formatDateAdvanced(cal, format.format()); - } - - - public String formatDateAdvanced(GregorianCalendar cal, String format) + public String getInTimezone(Date date, String timezone) throws XServicesFault { - String result= null; - try { - SimpleDateFormat f = new SimpleDateFormat(format); - result = f.format(cal.getTime()); - } catch (IllegalArgumentException e) { - throw new XServicesFault(ERR_INVALIDFORMAT + e.getMessage()); - } - return result; - } - - - public GregorianCalendar parseDate(String s, DateFormatType format, String timezone) throws XServicesFault { - return parseDateAdvanced(s, format.format(), timezone); + if (!isValidTimezone(timezone)) + throw new XServicesFault(ERR_INVALIDTIMEZONE); + TimeZone targetzone = TimeZone.getTimeZone(timezone); + String targetstring = DateFormatType.ISO8601.format(date, null, targetzone); + return targetstring; } - - public GregorianCalendar parseDateAdvanced(String s, String format, String timezone) throws XServicesFault { + public String formatDate(Date cal, DateFormatType format) + throws XServicesFault { + return format.format(cal, null, null); + } + + public String formatDateAdvanced(Date cal, String format) + throws XServicesFault { + String result = null; + SimpleDateFormat f = new SimpleDateFormat(format); + result = f.format(cal); + return result; + } + + public Date parseDate(String s, DateFormatType format, String timezone) + throws XServicesFault { + if (timezone == null | timezone.equals("")) + timezone = TimeZone.getDefault().getID(); + if (!isValidTimezone(timezone)) + throw new XServicesFault(ERR_INVALIDTIMEZONE); + try { + return format.parse(s, null, TimeZone.getTimeZone(timezone)); + } catch (ParseException e) { + throw new XServicesFault(e); + } + } + + public GregorianCalendar parseDateAdvanced(String s, String format, + String timezone) throws XServicesFault { SimpleDateFormat f = null; Date date = null; - if(timezone==null | timezone.equals("")) timezone = TimeZone.getDefault().getID(); - if(! isValidTimezone(timezone)) throw new XServicesFault(ERR_INVALIDTIMEZONE); - + if (timezone == null | timezone.equals("")) + timezone = TimeZone.getDefault().getID(); + if (!isValidTimezone(timezone)) + throw new XServicesFault(ERR_INVALIDTIMEZONE); + try { f = new SimpleDateFormat(format); date = f.parse(s); - } catch(IllegalArgumentException e) { + } catch (IllegalArgumentException e) { throw new XServicesFault(ERR_INVALIDFORMAT + e.getMessage()); } catch (ParseException e) { - throw new XServicesFault("Cannot parse date: "+ e.getMessage()); + throw new XServicesFault("Cannot parse date: " + e.getMessage()); } GregorianCalendar cal = new GregorianCalendar(); cal.setTimeZone(TimeZone.getTimeZone(timezone)); cal.setTime(date); return cal; } - - - public BigInteger dateTimeDiff(GregorianCalendar fromCal, - GregorianCalendar toCal) throws XServicesFault { - long diff = toCal.getTimeInMillis() - fromCal.getTimeInMillis(); + + public BigInteger dateTimeDiff(Date fromCal, Date toCal) + throws XServicesFault { + long diff = toCal.getTime() - fromCal.getTime(); BigInteger d = new BigInteger(String.valueOf(diff), 10); return d; } - - - public BigInteger dateTimeDiff2(GregorianCalendar fromCal, - GregorianCalendar toCal, DateTimeUnits unit) throws XServicesFault { + + public BigInteger dateTimeDiff2(Date fromCal, Date toCal, DateTimeUnits unit) + throws XServicesFault { BigInteger d = dateTimeDiff(fromCal, toCal); switch (unit) { case SECONDS: @@ -150,13 +149,16 @@ public class DateServiceImpl implements DateService { break; case DAYS: d = d.divide(new BigInteger("86400000")); + break; + case YEARS: + d = d.divide(new BigInteger("31536000000")); + break; } return d; } - - - public GregorianCalendar dateAdd(GregorianCalendar cal, BigInteger value, DateTimeUnits unit) - throws XServicesFault { + + public GregorianCalendar dateAdd(GregorianCalendar cal, BigInteger value, + DateTimeUnits unit) throws XServicesFault { switch (unit) { case SECONDS: cal.add(GregorianCalendar.SECOND, value.intValue()); @@ -170,16 +172,19 @@ public class DateServiceImpl implements DateService { case DAYS: cal.add(GregorianCalendar.DAY_OF_MONTH, value.intValue()); break; + case YEARS: + cal.add(GregorianCalendar.YEAR, value.intValue()); + break; default: cal.add(GregorianCalendar.MILLISECOND, value.intValue()); } return cal; } - + private boolean isValidTimezone(String id) { boolean yes = false; - for( String s: TimeZone.getAvailableIDs()) { - if(s.equals(id)) { + for (String s : TimeZone.getAvailableIDs()) { + if (s.equals(id)) { yes = true; break; } @@ -187,4 +192,11 @@ public class DateServiceImpl implements DateService { return yes; } + public List getTimezones() { + List output = new ArrayList(); + for (String s : TimeZone.getAvailableIDs()) { + output.add(new TimeZoneType(TimeZone.getTimeZone(s))); + } + return output; + } } diff --git a/src/java/net/brutex/xservices/ws/impl/FileServiceImpl.java b/src/java/net/brutex/xservices/ws/impl/FileServiceImpl.java index 53f4495..ada0944 100644 --- a/src/java/net/brutex/xservices/ws/impl/FileServiceImpl.java +++ b/src/java/net/brutex/xservices/ws/impl/FileServiceImpl.java @@ -27,12 +27,12 @@ import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebService; -import net.brutex.xservices.types.ArchiveResource; -import net.brutex.xservices.types.AttachmentType; -import net.brutex.xservices.types.FileResource; -import net.brutex.xservices.types.FileSetResource; import net.brutex.xservices.types.ReplacePattern; import net.brutex.xservices.types.ReturnCode; +import net.brutex.xservices.types.ant.ArchiveResource; +import net.brutex.xservices.types.ant.AttachmentType; +import net.brutex.xservices.types.ant.FileResource; +import net.brutex.xservices.types.ant.FileSetResource; import net.brutex.xservices.util.BrutexNamespaces; import net.brutex.xservices.util.RunTask; import net.brutex.xservices.ws.FileService; diff --git a/src/java/net/brutex/xservices/ws/impl/MiscServiceImpl.java b/src/java/net/brutex/xservices/ws/impl/MiscServiceImpl.java index 9078566..65a2c4f 100644 --- a/src/java/net/brutex/xservices/ws/impl/MiscServiceImpl.java +++ b/src/java/net/brutex/xservices/ws/impl/MiscServiceImpl.java @@ -21,11 +21,11 @@ import java.util.Properties; import java.util.UUID; import javax.jws.WebService; -import net.brutex.xservices.types.FileSetResource; import net.brutex.xservices.types.HostConnection; import net.brutex.xservices.types.HostinfoType; import net.brutex.xservices.types.MailMimeType; import net.brutex.xservices.types.ReturnCode; +import net.brutex.xservices.types.ant.FileSetResource; import net.brutex.xservices.util.BrutexNamespaces; import net.brutex.xservices.util.RunTask; import net.brutex.xservices.ws.MiscService; diff --git a/src/java/net/brutex/xservices/ws/impl/StorageServiceImpl.java b/src/java/net/brutex/xservices/ws/impl/StorageServiceImpl.java new file mode 100644 index 0000000..a88ae37 --- /dev/null +++ b/src/java/net/brutex/xservices/ws/impl/StorageServiceImpl.java @@ -0,0 +1,56 @@ +/* + * Copyright 2011 Brian Rosenberger (Brutex Network) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package net.brutex.xservices.ws.impl; + +import javax.jws.WebService; + +import net.brutex.xservices.types.TargetNodeType; +import net.brutex.xservices.types.ant.AttachmentType; +import net.brutex.xservices.types.ant.CollectionType; +import net.brutex.xservices.util.BrutexNamespaces; +import net.brutex.xservices.ws.StorageService; +import net.brutex.xservices.ws.XServicesFault; + +/** + * @author Brian Rosenberger + * @since 0.5.0 + * + */ +@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES, endpointInterface = "net.brutex.xservices.ws.StorageService", serviceName = StorageService.SERVICE_NAME) +public class StorageServiceImpl implements StorageService { + + public String storeText(String text) throws XServicesFault { + // TODO Auto-generated method stub + return null; + } + + public String storeBinary(AttachmentType binary) throws XServicesFault { + // TODO Auto-generated method stub + return null; + } + + public String createCollection(CollectionType collection) + throws XServicesFault { + return collection.getUuid(); + } + + public void deliverCollection(CollectionType collection, + TargetNodeType targetnode, boolean isFiring) throws XServicesFault { + // TODO Auto-generated method stub + + } + +} diff --git a/test/DateService-soapui-project.xml b/test/DateService-soapui-project.xml index 02a27b5..f99c01e 100644 --- a/test/DateService-soapui-project.xml +++ b/test/DateService-soapui-project.xml @@ -1,5 +1,34 @@ -http://localhost:8080/XServices/DateService?wsdl + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]>http://localhost:8080/XServices/DateService?wsdl /* * Copyright 2010 Brian Rosenberger (Brutex Network) * @@ -14,415 +43,538 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. -*/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Add or substract a time span from a date. - - - - - - Get current date and time. - - - - - - - - - - - - - - - - Get elapsed time between to dates. - - - - - - - - - - - - - - - - - - - - - Get milliseconds since 01.01.1970 (Unix timestap). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +*/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Get seconds since 01.01.1970 (Unix timestap). + + + + + Add or substract a time span from a date. + + + + + + Get current date and time. + + + + + + + + + + + + + + + + + + + + + Get current date and time in different formats. + + + + + + Get elapsed time between to dates. + + + + + + + + + + + Converts a string into date using pre-defined date formats. + + + + + + + + + + + Get milliseconds since 01.01.1970 (Unix timestap). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ]]>http://schemas.xmlsoap.org/wsdl/http://localhost:8080/XServices/DateService<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService - - + ]]><xml-fragment/>UTF-8http://localhost:8080/XServices/DateService @@ -433,16 +585,24 @@ - 2011-05-30T16:05:36-11:00 - Europe/Amsterdam + 2012-01-19T21:05:58.940+09:00 + Pacific/Honolulu + + +]]><xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + 2012-01-19T21:05:58.940+09:00 + UTC ]]><xml-fragment/>UTF-8http://localhost:8080/XServices/DateService - 2010-06-15Z - ISO 8601 + 2012-01-19T21:05:58.940+09:00 + ISO8601 ]]><xml-fragment/>UTF-8http://localhost:8080/XServices/DateService @@ -457,26 +617,38 @@ - 30.05..2011 - dd.mm.yyyy + 30.04.2012 + DateOnly-dotted + + -]]>UTF-8http://localhost:8080/XServices/DateService +]]><xml-fragment/>UTF-8http://localhost:8080/XServices/DateService - ? - ? + 12.4.2012 um 23:00 Uhr + dd.M.yyyy 'um' hh:mm 'Uhr' + + Europe/Berlin -]]><xml-fragment/>UTF-8http://localhost:8080/XServices/DateService +]]><xml-fragment/>UTF-8http://localhost:8080/XServices/DateService - 2011-05-24T19:59:29.233+02:00 - 2011-05-24T19:59:34.233+03:00 + 2011-05-24T19:59:29+02:00 + 2012-05-24T19:59:34+03:00 +]]><xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + 2012-01-23 + 2012-06-06T08:45:00+01:00 + + ]]><xml-fragment/>UTF-8http://localhost:8080/XServices/DateService @@ -489,9 +661,220 @@ - 2012-05-24T19:59:29.233+02:00 + 2012-05-24T19:59:29.233+0200 365 hours -]]> \ No newline at end of file +]]>UTF-8http://localhost:8080/XServices/DateService + + + + +]]><xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + +]]><xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + +]]>PARALLELL<xml-fragment/>http://localhost:8080/XServices/DateServices?wsdl + + + + + + +]]>http://localhost:8080/XServices/DateServiceswsdlQUERYxs:stringDateServiceSoapBindinggetDate<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + +]]>DateServiceSoapBindinggetDateExtended<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + +]]>DateServiceSoapBindinggetTimestamp<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + +]]>DateServiceSoapBindinggetTimezones<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + +]]>DateServiceSoapBindinggetTimestamp2<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + +]]>false50250truetrue-160TIMESimple100true500Loops0DateServiceSoapBindingformatDate<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + 2012-01-23T13:05:20+05:30 + ISO 8601 + + +]]>DateServiceSoapBindingformatDate<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + 2012-01-23T13:05:20+05:30 + RFC 822 + + +]]>DateServiceSoapBindingformatDate<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + 2012-01-23T13:05:20+05:30 + DateOnly-dashed + + +]]>DateServiceSoapBindingformatDate<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + 2012-01-23T13:05:20+05:30 + DateOnly-dotted + + +]]>DateServiceSoapBindingformatDateAdvanced<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + 2001-06-20T00:23:05Z + + 'Year:' yyyy 'Week:' WW 'in Month:' MMMM + + +]]>DateServiceSoapBindingformatDate<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + 2012-01-23T13:05:20+05:30 + DateOnly-slashed + + +]]>DateServiceSoapBindingparseDate<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + 14.3.1946 + DateOnly-dotted + + Europe/Helsinki + + +]]>DateServiceSoapBindingparseDateAdvanced<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + Ich werde um 8:30 Uhr am 17.01.2012 da sein. + 'Ich werde um' h:mm 'Uhr am' dd.MM.yyyy 'da sein.' + + Europe/Berlin + + +]]>DateServiceSoapBindingparseDateAdvanced<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + Im Juni am 4. Tag im Jahr 2014 ist ein Fest + 'Im' MMMM 'am' d. 'Tag im Jahr' yyyy 'ist ein Fest' + + Europe/Berlin + + +]]>false200250truetrue-1180TIMEVariance600000.5100true500DateServiceSoapBindingdateTimeDiff<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + 2012-01-23 + 2012-06-06T08:45:00+01:00 + + +]]>DateServiceSoapBindingdateTimeDiff<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + 2012-06-06T08:45:00+01:00 + 2012-01-23 + + +]]>DateServiceSoapBindingdateTimeDiff2<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + 1948-04-30T00:00:00Z + 2012-01-01T13:45:00Z + + days + + +]]>DateServiceSoapBindingdateTimeDiff2<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + 1948-04-30T00:00:00Z + 2012-01-01T13:45:00Z + + years + + +]]>DateServiceSoapBindingdateTimeDiff2<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + 1948-04-30T00:00:00Z + 2012-01-01T13:45:00Z + + minutes + + +]]>DateServiceSoapBindingdateTimeDiff2<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + 1948-04-30T00:00:00Z + 2012-01-01T13:45:00Z + + milliseconds + + +]]>DateServiceSoapBindingdateTimeDiff2<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + 1948-04-30T00:00:00Z + 2012-01-01T13:45:00Z + + seconds + + +]]>DateServiceSoapBindingdateTimeDiff2<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + 0001-04-30T00:00:00Z + 9999-01-01T13:45:00Z + + milliseconds + + +]]>DateServiceSoapBindingdateAdd<xml-fragment/>UTF-8http://localhost:8080/XServices/DateService + + + + 2000-01-01 + -50 + seconds + + +]]>false300250truetrue-1180TIMEBurst6000010000100true500 \ No newline at end of file diff --git a/test/MiscService-soapui-project.xml b/test/MiscService-soapui-project.xml index 45784cc..956631e 100644 --- a/test/MiscService-soapui-project.xml +++ b/test/MiscService-soapui-project.xml @@ -1,330 +1,305 @@ -http://localhost:8080/XServices/MiscService?WSDL - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Various service operations. - - Send an email with attachment (simple). - - - - - Send an email (simple). - - - - - Get information about a host. - - - - - Send an email (advanced). - - - - - Delay request response a specified duration. - - - - - Generate a UUID. - - - - - Get XService information. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]]>http://schemas.xmlsoap.org/wsdl/http://localhost:8080/xservices/MiscServicehttp://localhost:8080/XServices/MiscService<xml-fragment/>UTF-8http://localhost:8080/XServices/MiscService +http://localhost:8080/XServices/MiscService?WSDL + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Various service operations. + + Send an email with attachment (simple). + + + + + Send an email (simple). + + + + + Get information about a host. + + + + + Send an email (advanced). + + + + + Delay request response a specified duration. + + + + + Generate a UUID. + + + + + Get XService information. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]>http://schemas.xmlsoap.org/wsdl/http://localhost:8080/xservices/MiscServicehttp://localhost:8080/XServices/MiscService<xml-fragment/>UTF-8http://localhost:8080/XServices/MiscService + + + + + de3433 + + +]]><xml-fragment/>UTF-8http://localhost:8080/XServices/MiscService + + + + google.com + + +]]><xml-fragment/>UTF-8http://localhost:8080/XServices/MiscService @@ -332,7 +307,99 @@ 0 -]]><xml-fragment/>UTF-8http://localhost:8080/XServices/MiscService +]]>UTF-8http://localhost:8080/xservices/MiscService + + + + + + + ? + + ? + + ? + + ? + + +]]>UTF-8http://localhost:8080/xservices/MiscService + + + + + ? + ? + + ? + + ? + + +]]>UTF-8http://localhost:8080/xservices/MiscService + + + + + + + ? + + ? + + ? + + ? + + + + +]]>UTF-8http://localhost:8080/xservices/MiscService + + + + + ? + ? + + ? + + ? + + + + +]]>UTF-8http://localhost:8080/xservices/MiscService + + + + + ? + ? + + ? + + ? + + + + +]]>UTF-8http://localhost:8080/xservices/MiscService + + + + + ? + ? + + ? + + ? + + + + +]]><xml-fragment/>UTF-8http://localhost:8080/XServices/MiscService @@ -345,11 +412,11 @@ -]]><xml-fragment/>UTF-8http://localhost:8080/XServices/MiscService - - - - +]]><xml-fragment/>UTF-8http://localhost:8080/XServices/MiscService + + + + ]]>SEQUENTIALMiscServiceSoapBindingsleep<xml-fragment/>UTF-8http://localhost:8080/xservices/MiscService diff --git a/test/StoreService-soapui-project.xml b/test/StoreService-soapui-project.xml index 535ae8b..602cd1f 100644 --- a/test/StoreService-soapui-project.xml +++ b/test/StoreService-soapui-project.xml @@ -1,190 +1,190 @@ -http://localhost:8080/XServices/StorageServices?wsdl - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Store text based data - - - - - - Store binary data - - - - - - Create a new Collection by name. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]]>http://schemas.xmlsoap.org/wsdl/http://localhost:8080/XServices/StorageServicesUTF-8http://localhost:8080/XServices/StorageServices - - - - - - - ? - - - -]]><xml-fragment/>UTF-8http://localhost:8080/XServices/StorageServices - - - - - - kjkjb - - - -]]>UTF-8http://localhost:8080/XServices/StorageServices - - - - - - cid:1152943655258 - - ? - - - -]]>UTF-8http://localhost:8080/XServices/StorageServices - - - - - ? - - +http://localhost:8080/XServices/StorageServices?wsdl + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Store text based data + + + + + + Store binary data + + + + + + Create a new Collection by name. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]]>http://schemas.xmlsoap.org/wsdl/http://localhost:8080/XServices/StorageServicesUTF-8http://localhost:8080/XServices/StorageServices + + + + + + + ? + + + +]]><xml-fragment/>UTF-8http://localhost:8080/XServices/StorageServices + + + + + + kjkjb + + + +]]>UTF-8http://localhost:8080/XServices/StorageServices + + + + + + cid:1152943655258 + + ? + + + +]]>UTF-8http://localhost:8080/XServices/StorageServices + + + + + ? + + ]]> \ No newline at end of file diff --git a/web/WEB-INF/cxf-beans.xml b/web/WEB-INF/cxf-beans.xml index 78c0ce4..bac349a 100644 --- a/web/WEB-INF/cxf-beans.xml +++ b/web/WEB-INF/cxf-beans.xml @@ -15,16 +15,10 @@ - - - - - - - - - @@ -45,39 +36,24 @@ - - - - - - - - - - - - - - - - - -