Brutex XServices DocumentationJune 2014BrianRosenbergerbru@brutex.deBrutex Network2014
The copyright holders make no representation about the suitability
of this document for any purpose. It is provided
as is
without expressed or implied warranty.
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.
Apache Tomcat and Apache Ant are trademarks of the Apache
Software Foundation.AbstractIn complex IT environments it is often necessary to integrate
different information systems with each other, exchange data between
software tools and automate actions based on events arising from user
interaction. Web Services is a popular way to make remote functions
available to a broad range of clients. A WebService is independent
from platforms and programming languages. XML Messages are exchanged
through common protocols like TCP/IP or SMTP, processed and returned
(request/ response paradigm).Because of their nature, WebServices are a great technology to
overcome system boundaries and to "orchestrate" your IT environment.
They make up the basis for SOA and are the pieces that assemble
automated business processes.XServices is a collection of pre-build WebServices with the
intention to avoid duplicate work and "re-inventing the wheel". The
historical base for XServices is the 'XBridgeNG' software, which
provided a set of Apache Ant Tasks with quite the same intention. The
available WebService operations are most likely the "most wanted"
ones, some of them for sure are "must have". This collection may
overlap with other libraries. In summary the current version contains
8 WebServices with over 50 operations.Getting startedThis chapter describes the installation process.InstallationAs of February 2013, XServices require Java 7. Older builds run against Java 5.Apache Tomcat 7tbd.In short: Deploy .WAR file to Apache TomcatSecuring with Basic AuthenticationThere is a quick guide explaining Basic Authentication for Tomcat here:
http://oreilly.com/pub/a/java/archive/tomcat-tips.html?page=1
Limit access toSometimes you'll only want to restrict access to to
only
specified host names or IP addresses. This way, only
clients at
those specified addresses can use the web services.
Tomcat provides
two configuration values for that:
RemoteHostValve and
RemoteAddrValve.These Valves allow you to filter requests by host name or
by IP
address, and to allow or deny hosts that match. The
example below
restricts access to the ArchiveService from any
machine that is not
the local host.<Context
path="/XService/ArchiveService"
...> <Valve
className="org.apache.catalina.valves.RemoteAddrValve"
allow="127.0.0.1" deny=""/> </Context>
If no allow pattern is given, then patterns that match
the deny
attribute patterns will be rejected, and all others
will be allowed.
Similarly, if no deny pattern is given,
patterns that match the
allow attribute will be allowed, and
all others will be denied.
The <context> element must be placed into the
server.xml
file (into <engine><host>).Available SOAP ServicesList of available web services and their operations.ArchiveServicesThe ArchiveService bundles file packing operations. Its
WSDL is located at
http://server:port/XServices/ArchiveService?wsdlgzipCreate a GNU zip archive.
Sample request:
Sample response:
bzip2FromArchiveCreate a new bzip2 archive from files located within another archive.
Sample request:
Sample response:
bzip2Create a bzip2 archive.
Sample request:
Sample response:
gzipFromArchiveCreate a new GNU zip archive from files located within another archive.
Sample request:
Sample response:
gunzipExtract files from a GNU zip archive.
Sample request:
Sample response:
bunzip2Extract files from a bzip2 archive.
Sample request:
Sample response:
gunzipFromURLExtract files from a GNU zip archive. The archive is located on the web (http/ https)
and will be downloaded automatically.
Sample request:
Sample response:
bunzip2FromURLExtract files from a bzip2 archive. The archive is located on the web (http/ https)
and will be downloaded automatically.
Sample request:
Sample response:
zipCompress files and store them in a ZIP archive.
Sample request:
Sample response:
zipFromArchiveCreate a new ZIP archive from files located within another archive.
Sample request:
Sample response:
unzipExtract files from a zip archive.
Sample request:
Sample response:
untarExtract files from a tarball archive.
Sample request:
Sample response:
unrarExtract files from a RAR archive.
Sample request:
Sample response:
DateServicesThe DateService bundles various date and time related operations.
Its WSDL is located at http://server:port/XServices/DateService?wsdlXServices 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")dateAddAdd or substract a time span from/ to a date.
Sample request:
Sample response:
Hints heredateTimeDiffCalculate elapsed time between two dates. Returns the elapsed time in milliseconds.
Sample request:
Sample response:
Hints heredateTimeDiffCalculate Fully elapsed units between two dates. Example: 4:15:10-4:15:55 in minutes = 0 and in seconds = 45.
Sample request:
Sample response:
Hints heregetDateGet current time and date.
Sample request:
Sample response:
02.01.20122012/01/0208:14:40+01002012-01-02T08:14:40+01001325488480957
]]>getDateExtendedGet current time and date (extended Version).
Sample response:
2012-01-23T08:30:00.333+01:002012-01-23T08:30:00.333+0100132730380033323.01.20122012/01/2308: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")formatDateAdvanced
Transform Time/ Date representation. Formats a date with a free form pattern. Uses SimpleDateFormat patterns.
The following pattern letters are defined (all other characters from 'A' to 'Z' and from 'a' to 'z' are reserved):
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.getTimestampGet current timestamp in milliseconds (epoch).
Sample request:
Sample response:
]]>1325488875703
]]>
getTimestamp2Get 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 responseGMT-12:00Etc/GMT+12-43200GMT-11:00Etc/GMT+11-39600West Samoa ZeitMIT-39600West Samoa ZeitPacific/Apia-39600Samoa NormalzeitPacific/Midway-39600Niue ZeitPacific/Niue-39600Samoa NormalzeitPacific/Pago_Pago-39600Samoa NormalzeitPacific/Samoa-39600Samoa NormalzeitUS/Samoa-39600Hawaii-Aleutische NormalzeitAmerica/Adak-36000Hawaii-Aleutische NormalzeitAmerica/Atka-36000GMT-10:00Etc/GMT+10-36000Hawaii NormalzeitHST-36000Tokelau ZeitPacific/Fakaofo-36000Hawaii NormalzeitPacific/Honolulu-36000Hawaii NormalzeitPacific/Johnston-36000Cook-Inseln ZeitPacific/Rarotonga-36000Tahiti ZeitPacific/Tahiti-36000Hawaii NormalzeitSystemV/HST10-36000Hawaii-Aleutische NormalzeitUS/Aleutian-36000Hawaii NormalzeitUS/Hawaii-36000Marquesas ZeitPacific/Marquesas-34200Alaska NormalzeitAST-32400Alaska NormalzeitAmerica/Anchorage-32400Alaska NormalzeitAmerica/Juneau-32400Alaska NormalzeitAmerica/Nome-32400Alaska NormalzeitAmerica/Yakutat-32400GMT-09:00Etc/GMT+9-32400Gambier ZeitPacific/Gambier-32400Alaska NormalzeitSystemV/YST9-32400Alaska NormalzeitSystemV/YST9YDT-32400Alaska NormalzeitUS/Alaska-32400Pazifische NormalzeitAmerica/Dawson-28800Pazifische NormalzeitAmerica/Ensenada-28800Pazifische NormalzeitAmerica/Los_Angeles-28800Pazifische NormalzeitAmerica/Santa_Isabel-28800Pazifische NormalzeitAmerica/Tijuana-28800Pazifische NormalzeitAmerica/Vancouver-28800Pazifische NormalzeitAmerica/Whitehorse-28800Pazifische NormalzeitCanada/Pacific-28800Pazifische NormalzeitCanada/Yukon-28800GMT-08:00Etc/GMT+8-28800Pazifische NormalzeitMexico/BajaNorte-28800Pazifische NormalzeitPST-28800Pazifische NormalzeitPST8PDT-28800Pitcairn NormalzeitPacific/Pitcairn-28800Pazifische NormalzeitSystemV/PST8-28800Pazifische NormalzeitSystemV/PST8PDT-28800Pazifische NormalzeitUS/Pacific-28800Pazifische NormalzeitUS/Pacific-New-28800Rocky Mountains NormalzeitAmerica/Boise-25200Rocky Mountains NormalzeitAmerica/Cambridge_Bay-25200Rocky Mountains NormalzeitAmerica/Chihuahua-25200Rocky Mountains NormalzeitAmerica/Dawson_Creek-25200Rocky Mountains NormalzeitAmerica/Denver-25200Rocky Mountains NormalzeitAmerica/Edmonton-25200Rocky Mountains NormalzeitAmerica/Hermosillo-25200Rocky Mountains NormalzeitAmerica/Inuvik-25200Rocky Mountains NormalzeitAmerica/Mazatlan-25200Rocky Mountains NormalzeitAmerica/Ojinaga-25200Rocky Mountains NormalzeitAmerica/Phoenix-25200Rocky Mountains NormalzeitAmerica/Shiprock-25200Rocky Mountains NormalzeitAmerica/Yellowknife-25200Rocky Mountains NormalzeitCanada/Mountain-25200GMT-07:00Etc/GMT+7-25200Rocky Mountains NormalzeitMST-25200Rocky Mountains NormalzeitMST7MDT-25200Rocky Mountains NormalzeitMexico/BajaSur-25200Rocky Mountains NormalzeitNavajo-25200Rocky Mountains NormalzeitPNT-25200Rocky Mountains NormalzeitSystemV/MST7-25200Rocky Mountains NormalzeitSystemV/MST7MDT-25200Rocky Mountains NormalzeitUS/Arizona-25200Rocky Mountains NormalzeitUS/Mountain-25200Zentrale NormalzeitAmerica/Belize-21600Zentrale NormalzeitAmerica/Cancun-21600Zentrale NormalzeitAmerica/Chicago-21600Zentrale NormalzeitAmerica/Costa_Rica-21600Zentrale NormalzeitAmerica/El_Salvador-21600Zentrale NormalzeitAmerica/Guatemala-21600Zentrale NormalzeitAmerica/Indiana/Knox-21600Zentrale NormalzeitAmerica/Indiana/Tell_City-21600Zentrale NormalzeitAmerica/Knox_IN-21600Zentrale NormalzeitAmerica/Managua-21600Zentrale NormalzeitAmerica/Matamoros-21600Zentrale NormalzeitAmerica/Menominee-21600Zentrale NormalzeitAmerica/Merida-21600Zentrale NormalzeitAmerica/Mexico_City-21600Zentrale NormalzeitAmerica/Monterrey-21600Zentrale NormalzeitAmerica/North_Dakota/Center-21600Zentrale NormalzeitAmerica/North_Dakota/New_Salem-21600Zentrale NormalzeitAmerica/Rainy_River-21600Zentrale NormalzeitAmerica/Rankin_Inlet-21600Zentrale NormalzeitAmerica/Regina-21600Zentrale NormalzeitAmerica/Swift_Current-21600Zentrale NormalzeitAmerica/Tegucigalpa-21600Zentrale NormalzeitAmerica/Winnipeg-21600Zentrale NormalzeitCST-21600Zentrale NormalzeitCST6CDT-21600Zentrale NormalzeitCanada/Central-21600Zentrale NormalzeitCanada/East-Saskatchewan-21600Zentrale NormalzeitCanada/Saskatchewan-21600Osterinseln ZeitChile/EasterIsland-21600GMT-06:00Etc/GMT+6-21600Zentrale NormalzeitMexico/General-21600Osterinseln ZeitPacific/Easter-21600Galapagos ZeitPacific/Galapagos-21600Zentrale NormalzeitSystemV/CST6-21600Zentrale NormalzeitSystemV/CST6CDT-21600Zentrale NormalzeitUS/Central-21600Zentrale NormalzeitUS/Indiana-Starke-21600Östliche NormalzeitAmerica/Atikokan-18000Kolumbianische ZeitAmerica/Bogota-18000Östliche NormalzeitAmerica/Cayman-18000Östliche NormalzeitAmerica/Coral_Harbour-18000Östliche NormalzeitAmerica/Detroit-18000Östliche NormalzeitAmerica/Fort_Wayne-18000Östliche NormalzeitAmerica/Grand_Turk-18000Ecuadorianische ZeitAmerica/Guayaquil-18000Kubanische NormalzeitAmerica/Havana-18000Östliche NormalzeitAmerica/Indiana/Indianapolis-18000Östliche NormalzeitAmerica/Indiana/Marengo-18000Östliche NormalzeitAmerica/Indiana/Petersburg-18000Östliche NormalzeitAmerica/Indiana/Vevay-18000Östliche NormalzeitAmerica/Indiana/Vincennes-18000Östliche NormalzeitAmerica/Indiana/Winamac-18000Östliche NormalzeitAmerica/Indianapolis-18000Östliche NormalzeitAmerica/Iqaluit-18000Östliche NormalzeitAmerica/Jamaica-18000Östliche NormalzeitAmerica/Kentucky/Louisville-18000Östliche NormalzeitAmerica/Kentucky/Monticello-18000Peruanische ZeitAmerica/Lima-18000Östliche NormalzeitAmerica/Louisville-18000Östliche NormalzeitAmerica/Montreal-18000Östliche NormalzeitAmerica/Nassau-18000Östliche NormalzeitAmerica/New_York-18000Östliche NormalzeitAmerica/Nipigon-18000Östliche NormalzeitAmerica/Panama-18000Östliche NormalzeitAmerica/Pangnirtung-18000Östliche NormalzeitAmerica/Port-au-Prince-18000Östliche NormalzeitAmerica/Resolute-18000Östliche NormalzeitAmerica/Thunder_Bay-18000Östliche NormalzeitAmerica/Toronto-18000Östliche NormalzeitCanada/Eastern-18000Kubanische NormalzeitCuba-18000Östliche NormalzeitEST-18000Östliche NormalzeitEST5EDT-18000GMT-05:00Etc/GMT+5-18000Östliche NormalzeitIET-18000Östliche NormalzeitJamaica-18000Östliche NormalzeitSystemV/EST5-18000Östliche NormalzeitSystemV/EST5EDT-18000Östliche NormalzeitUS/East-Indiana-18000Östliche NormalzeitUS/Eastern-18000Östliche NormalzeitUS/Michigan-18000Venezuelanische ZeitAmerica/Caracas-16200Atlantik NormalzeitAmerica/Anguilla-14400Atlantik NormalzeitAmerica/Antigua-14400Argentinische ZeitAmerica/Argentina/San_Luis-14400Atlantik NormalzeitAmerica/Aruba-14400Paraguay ZeitAmerica/Asuncion-14400Atlantik NormalzeitAmerica/Barbados-14400Atlantik NormalzeitAmerica/Blanc-Sablon-14400Amazonas NormalzeitAmerica/Boa_Vista-14400Amazonas NormalzeitAmerica/Campo_Grande-14400Amazonas NormalzeitAmerica/Cuiaba-14400Atlantik NormalzeitAmerica/Curacao-14400Atlantik NormalzeitAmerica/Dominica-14400Amazonas NormalzeitAmerica/Eirunepe-14400Atlantik NormalzeitAmerica/Glace_Bay-14400Atlantik NormalzeitAmerica/Goose_Bay-14400Atlantik NormalzeitAmerica/Grenada-14400Atlantik NormalzeitAmerica/Guadeloupe-14400Guyanische ZeitAmerica/Guyana-14400Atlantik NormalzeitAmerica/Halifax-14400Bolivianische ZeitAmerica/La_Paz-14400Amazonas NormalzeitAmerica/Manaus-14400Atlantik NormalzeitAmerica/Marigot-14400Atlantik NormalzeitAmerica/Martinique-14400Atlantik NormalzeitAmerica/Moncton-14400Atlantik NormalzeitAmerica/Montserrat-14400Atlantik NormalzeitAmerica/Port_of_Spain-14400Amazonas NormalzeitAmerica/Porto_Acre-14400Amazonas NormalzeitAmerica/Porto_Velho-14400Atlantik NormalzeitAmerica/Puerto_Rico-14400Amazonas NormalzeitAmerica/Rio_Branco-14400Chilenische ZeitAmerica/Santiago-14400Atlantik NormalzeitAmerica/Santo_Domingo-14400Atlantik NormalzeitAmerica/St_Barthelemy-14400Atlantik NormalzeitAmerica/St_Kitts-14400Atlantik NormalzeitAmerica/St_Lucia-14400Atlantik NormalzeitAmerica/St_Thomas-14400Atlantik NormalzeitAmerica/St_Vincent-14400Atlantik NormalzeitAmerica/Thule-14400Atlantik NormalzeitAmerica/Tortola-14400Atlantik NormalzeitAmerica/Virgin-14400Chilenische ZeitAntarctica/Palmer-14400Atlantik NormalzeitAtlantic/Bermuda-14400Falkland Inseln ZeitAtlantic/Stanley-14400Amazonas NormalzeitBrazil/Acre-14400Amazonas NormalzeitBrazil/West-14400Atlantik NormalzeitCanada/Atlantic-14400Chilenische ZeitChile/Continental-14400GMT-04:00Etc/GMT+4-14400Atlantik NormalzeitPRT-14400Atlantik NormalzeitSystemV/AST4-14400Atlantik NormalzeitSystemV/AST4ADT-14400Neufundland NormalzeitAmerica/St_Johns-12600Neufundland NormalzeitCNT-12600Neufundland NormalzeitCanada/Newfoundland-12600Argentinische ZeitAGT-10800Brasilianische ZeitAmerica/Araguaina-10800Argentinische ZeitAmerica/Argentina/Buenos_Aires-10800Argentinische ZeitAmerica/Argentina/Catamarca-10800Argentinische ZeitAmerica/Argentina/ComodRivadavia-10800Argentinische ZeitAmerica/Argentina/Cordoba-10800Argentinische ZeitAmerica/Argentina/Jujuy-10800Argentinische ZeitAmerica/Argentina/La_Rioja-10800Argentinische ZeitAmerica/Argentina/Mendoza-10800Argentinische ZeitAmerica/Argentina/Rio_Gallegos-10800Argentinische ZeitAmerica/Argentina/Salta-10800Argentinische ZeitAmerica/Argentina/San_Juan-10800Argentinische ZeitAmerica/Argentina/Tucuman-10800Argentinische ZeitAmerica/Argentina/Ushuaia-10800Brasilianische ZeitAmerica/Bahia-10800Brasilianische ZeitAmerica/Belem-10800Argentinische ZeitAmerica/Buenos_Aires-10800Argentinische ZeitAmerica/Catamarca-10800Französisch-Guiana ZeitAmerica/Cayenne-10800Argentinische ZeitAmerica/Cordoba-10800Brasilianische ZeitAmerica/Fortaleza-10800Westgrönländische ZeitAmerica/Godthab-10800Argentinische ZeitAmerica/Jujuy-10800Brasilianische ZeitAmerica/Maceio-10800Argentinische ZeitAmerica/Mendoza-10800Pierre & Miquelon NormalzeitAmerica/Miquelon-10800Uruguayische ZeitAmerica/Montevideo-10800Suriname ZeitAmerica/Paramaribo-10800Brasilianische ZeitAmerica/Recife-10800Argentinische ZeitAmerica/Rosario-10800Brasilianische ZeitAmerica/Santarem-10800Brasilianische ZeitAmerica/Sao_Paulo-10800Rothera ZeitAntarctica/Rothera-10800Brasilianische ZeitBET-10800Brasilianische ZeitBrazil/East-10800GMT-03:00Etc/GMT+3-10800Fernando de Noronha ZeitAmerica/Noronha-7200South Georgia NormalzeitAtlantic/South_Georgia-7200Fernando de Noronha ZeitBrazil/DeNoronha-7200GMT-02:00Etc/GMT+2-7200Ostgrönländische ZeitAmerica/Scoresbysund-3600Azoren ZeitAtlantic/Azores-3600Kap Verde ZeitAtlantic/Cape_Verde-3600GMT-01:00Etc/GMT+1-3600Greenwich ZeitAfrica/Abidjan0Ghanaische NormalzeitAfrica/Accra0Greenwich ZeitAfrica/Bamako0Greenwich ZeitAfrica/Banjul0Greenwich ZeitAfrica/Bissau0Westeuropäische ZeitAfrica/Casablanca0Greenwich ZeitAfrica/Conakry0Greenwich ZeitAfrica/Dakar0Westeuropäische ZeitAfrica/El_Aaiun0Greenwich NormalzeitAfrica/Freetown0Greenwich ZeitAfrica/Lome0Greenwich ZeitAfrica/Monrovia0Greenwich ZeitAfrica/Nouakchott0Greenwich ZeitAfrica/Ouagadougou0Greenwich ZeitAfrica/Sao_Tome0Greenwich ZeitAfrica/Timbuktu0Greenwich ZeitAmerica/Danmarkshavn0Westeuropäische ZeitAtlantic/Canary0Westeuropäische ZeitAtlantic/Faeroe0Westeuropäische ZeitAtlantic/Faroe0Westeuropäische ZeitAtlantic/Madeira0Greenwich ZeitAtlantic/Reykjavik0Greenwich ZeitAtlantic/St_Helena0Greenwich ZeitEire0GMT+00:00Etc/GMT0GMT+00:00Etc/GMT+00GMT+00:00Etc/GMT-00GMT+00:00Etc/GMT00Greenwich ZeitEtc/Greenwich0Koordinierte UniversalzeitEtc/UCT0Koordinierte UniversalzeitEtc/UTC0Koordinierte UniversalzeitEtc/Universal0Koordinierte UniversalzeitEtc/Zulu0Greenwich ZeitEurope/Belfast0Greenwich ZeitEurope/Dublin0Greenwich ZeitEurope/Guernsey0Greenwich ZeitEurope/Isle_of_Man0Greenwich ZeitEurope/Jersey0Westeuropäische ZeitEurope/Lisbon0Greenwich ZeitEurope/London0Greenwich ZeitGB0Greenwich ZeitGB-Eire0Greenwich ZeitGMT0GMT+00:00GMT00Greenwich ZeitGreenwich0Greenwich ZeitIceland0Westeuropäische ZeitPortugal0Koordinierte UniversalzeitUCT0Koordinierte UniversalzeitUTC0Koordinierte UniversalzeitUniversal0Westeuropäische ZeitWET0Koordinierte UniversalzeitZulu0Mitteleuropäische ZeitAfrica/Algiers3600Westafrikanische ZeitAfrica/Bangui3600Westafrikanische ZeitAfrica/Brazzaville3600Mitteleuropäische ZeitAfrica/Ceuta3600Westafrikanische ZeitAfrica/Douala3600Westafrikanische ZeitAfrica/Kinshasa3600Westafrikanische ZeitAfrica/Lagos3600Westafrikanische ZeitAfrica/Libreville3600Westafrikanische ZeitAfrica/Luanda3600Westafrikanische ZeitAfrica/Malabo3600Westafrikanische ZeitAfrica/Ndjamena3600Westafrikanische ZeitAfrica/Niamey3600Westafrikanische ZeitAfrica/Porto-Novo3600Mitteleuropäische ZeitAfrica/Tunis3600Westafrikanische ZeitAfrica/Windhoek3600Mitteleuropäische ZeitArctic/Longyearbyen3600Mitteleuropäische ZeitAtlantic/Jan_Mayen3600Mitteleuropäische ZeitCET3600Mitteleuropäische ZeitECT3600GMT+01:00Etc/GMT-13600Mitteleuropäische ZeitEurope/Amsterdam3600Mitteleuropäische ZeitEurope/Andorra3600Mitteleuropäische ZeitEurope/Belgrade3600Mitteleuropäische ZeitEurope/Berlin3600Mitteleuropäische ZeitEurope/Bratislava3600Mitteleuropäische ZeitEurope/Brussels3600Mitteleuropäische ZeitEurope/Budapest3600Mitteleuropäische ZeitEurope/Copenhagen3600Mitteleuropäische ZeitEurope/Gibraltar3600Mitteleuropäische ZeitEurope/Ljubljana3600Mitteleuropäische ZeitEurope/Luxembourg3600Mitteleuropäische ZeitEurope/Madrid3600Mitteleuropäische ZeitEurope/Malta3600Mitteleuropäische ZeitEurope/Monaco3600Mitteleuropäische ZeitEurope/Oslo3600Mitteleuropäische ZeitEurope/Paris3600Mitteleuropäische ZeitEurope/Podgorica3600Mitteleuropäische ZeitEurope/Prague3600Mitteleuropäische ZeitEurope/Rome3600Mitteleuropäische ZeitEurope/San_Marino3600Mitteleuropäische ZeitEurope/Sarajevo3600Mitteleuropäische ZeitEurope/Skopje3600Mitteleuropäische ZeitEurope/Stockholm3600Mitteleuropäische ZeitEurope/Tirane3600Mitteleuropäische ZeitEurope/Vaduz3600Mitteleuropäische ZeitEurope/Vatican3600Mitteleuropäische ZeitEurope/Vienna3600Mitteleuropäische ZeitEurope/Warsaw3600Mitteleuropäische ZeitEurope/Zagreb3600Mitteleuropäische ZeitEurope/Zurich3600Zentraleuropäische ZeitMET3600Mitteleuropäische ZeitPoland3600Osteuropäische ZeitART7200Zentralafrikanische ZeitAfrica/Blantyre7200Zentralafrikanische ZeitAfrica/Bujumbura7200Osteuropäische ZeitAfrica/Cairo7200Zentralafrikanische ZeitAfrica/Gaborone7200Zentralafrikanische ZeitAfrica/Harare7200Südafrikanische NormalzeitAfrica/Johannesburg7200Zentralafrikanische ZeitAfrica/Kigali7200Zentralafrikanische ZeitAfrica/Lubumbashi7200Zentralafrikanische ZeitAfrica/Lusaka7200Zentralafrikanische ZeitAfrica/Maputo7200Südafrikanische NormalzeitAfrica/Maseru7200Südafrikanische NormalzeitAfrica/Mbabane7200Osteuropäische ZeitAfrica/Tripoli7200Osteuropäische ZeitAsia/Amman7200Osteuropäische ZeitAsia/Beirut7200Osteuropäische ZeitAsia/Damascus7200Osteuropäische ZeitAsia/Gaza7200Osteuropäische ZeitAsia/Istanbul7200Israelische NormalzeitAsia/Jerusalem7200Osteuropäische ZeitAsia/Nicosia7200Israelische NormalzeitAsia/Tel_Aviv7200Zentralafrikanische ZeitCAT7200Osteuropäische ZeitEET7200Osteuropäische ZeitEgypt7200GMT+02:00Etc/GMT-27200Osteuropäische ZeitEurope/Athens7200Osteuropäische ZeitEurope/Bucharest7200Osteuropäische ZeitEurope/Chisinau7200Osteuropäische ZeitEurope/Helsinki7200Osteuropäische ZeitEurope/Istanbul7200Osteuropäische ZeitEurope/Kaliningrad7200Osteuropäische ZeitEurope/Kiev7200Osteuropäische ZeitEurope/Mariehamn7200Osteuropäische ZeitEurope/Minsk7200Osteuropäische ZeitEurope/Nicosia7200Osteuropäische ZeitEurope/Riga7200Osteuropäische ZeitEurope/Simferopol7200Osteuropäische ZeitEurope/Sofia7200Osteuropäische ZeitEurope/Tallinn7200Osteuropäische ZeitEurope/Tiraspol7200Osteuropäische ZeitEurope/Uzhgorod7200Osteuropäische ZeitEurope/Vilnius7200Osteuropäische ZeitEurope/Zaporozhye7200Israelische NormalzeitIsrael7200Osteuropäische ZeitLibya7200Osteuropäische ZeitTurkey7200Ostafrikanische ZeitAfrica/Addis_Ababa10800Ostafrikanische ZeitAfrica/Asmara10800Ostafrikanische ZeitAfrica/Asmera10800Ostafrikanische ZeitAfrica/Dar_es_Salaam10800Ostafrikanische ZeitAfrica/Djibouti10800Ostafrikanische ZeitAfrica/Kampala10800Ostafrikanische ZeitAfrica/Khartoum10800Ostafrikanische ZeitAfrica/Mogadishu10800Ostafrikanische ZeitAfrica/Nairobi10800Syowa ZeitAntarctica/Syowa10800Arabische NormalzeitAsia/Aden10800Arabische NormalzeitAsia/Baghdad10800Arabische NormalzeitAsia/Bahrain10800Arabische NormalzeitAsia/Kuwait10800Arabische NormalzeitAsia/Qatar10800Arabische NormalzeitAsia/Riyadh10800Ostafrikanische ZeitEAT10800GMT+03:00Etc/GMT-310800Moskauer NormalzeitEurope/Moscow10800Wolgograder ZeitEurope/Volgograd10800Ostafrikanische ZeitIndian/Antananarivo10800Ostafrikanische ZeitIndian/Comoro10800Ostafrikanische ZeitIndian/Mayotte10800Moskauer NormalzeitW-SU10800GMT+03:07Asia/Riyadh8711224GMT+03:07Asia/Riyadh8811224GMT+03:07Asia/Riyadh8911224GMT+03:07Mideast/Riyadh8711224GMT+03:07Mideast/Riyadh8811224GMT+03:07Mideast/Riyadh8911224Iranische NormalzeitAsia/Tehran12600Iranische NormalzeitIran12600Aserbaidschanische ZeitAsia/Baku14400Golf NormalzeitAsia/Dubai14400Golf NormalzeitAsia/Muscat14400Georgische ZeitAsia/Tbilisi14400Armenische ZeitAsia/Yerevan14400GMT+04:00Etc/GMT-414400Samarische ZeitEurope/Samara14400Seychellen ZeitIndian/Mahe14400Mauritius ZeitIndian/Mauritius14400Reunion ZeitIndian/Reunion14400Armenische ZeitNET14400Afghanistanische ZeitAsia/Kabul16200Davis ZeitAntarctica/Davis18000Mawson ZeitAntarctica/Mawson18000Aqtau ZeitAsia/Aqtau18000Aqtobe ZeitAsia/Aqtobe18000Turkmenische ZeitAsia/Ashgabat18000Turkmenische ZeitAsia/Ashkhabad18000Tadschikische ZeitAsia/Dushanbe18000Pakistanische ZeitAsia/Karachi18000Oral ZeitAsia/Oral18000Usbekistan ZeitAsia/Samarkand18000Usbekistan ZeitAsia/Tashkent18000Jekaterinburger ZeitAsia/Yekaterinburg18000GMT+05:00Etc/GMT-518000Französisch Süd- u. Antarktische LandzeitIndian/Kerguelen18000Maledivische ZeitIndian/Maldives18000Pakistanische ZeitPLT18000Indische NormalzeitAsia/Calcutta19800Indische NormalzeitAsia/Colombo19800Indische NormalzeitAsia/Kolkata19800Indische NormalzeitIST19800Nepalesische ZeitAsia/Kathmandu20700Nepalesische ZeitAsia/Katmandu20700Vostok ZeitAntarctica/Vostok21600Alma Ata ZeitAsia/Almaty21600Kirgisische ZeitAsia/Bishkek21600Bangladesch ZeitAsia/Dacca21600Bangladesch ZeitAsia/Dhaka21600Nowosibirsker ZeitAsia/Novokuznetsk21600Nowosibirsker ZeitAsia/Novosibirsk21600Omsk ZeitAsia/Omsk21600Qyzylorda ZeitAsia/Qyzylorda21600Bhutanische ZeitAsia/Thimbu21600Bhutanische ZeitAsia/Thimphu21600Bangladesch ZeitBST21600GMT+06:00Etc/GMT-621600Indischer Ozean Territorium ZeitIndian/Chagos21600Myanmar ZeitAsia/Rangoon23400Cocos Islands ZeitIndian/Cocos23400Indochina ZeitAsia/Bangkok25200Indochina ZeitAsia/Ho_Chi_Minh25200Hovd ZeitAsia/Hovd25200Westindonesische ZeitAsia/Jakarta25200Krasnojarsker ZeitAsia/Krasnoyarsk25200Indochina ZeitAsia/Phnom_Penh25200Westindonesische ZeitAsia/Pontianak25200Indochina ZeitAsia/Saigon25200Indochina ZeitAsia/Vientiane25200GMT+07:00Etc/GMT-725200Christmas Island ZeitIndian/Christmas25200Indochina ZeitVST25200Brunei ZeitAsia/Brunei28800Choibalsan ZeitAsia/Choibalsan28800Chinesische NormalzeitAsia/Chongqing28800Chinesische NormalzeitAsia/Chungking28800Chinesische NormalzeitAsia/Harbin28800Hongkong ZeitAsia/Hong_Kong28800Irkutsk ZeitAsia/Irkutsk28800Chinesische NormalzeitAsia/Kashgar28800Malaysische ZeitAsia/Kuala_Lumpur28800Malaysische ZeitAsia/Kuching28800Chinesische NormalzeitAsia/Macao28800Chinesische NormalzeitAsia/Macau28800Zentralindonesische ZeitAsia/Makassar28800Philippinische ZeitAsia/Manila28800Chinesische NormalzeitAsia/Shanghai28800Singapur ZeitAsia/Singapore28800Chinesische NormalzeitAsia/Taipei28800Zentralindonesische ZeitAsia/Ujung_Pandang28800Ulaanbaatar ZeitAsia/Ulaanbaatar28800Ulaanbaatar ZeitAsia/Ulan_Bator28800Chinesische NormalzeitAsia/Urumqi28800Westliche Normalzeit (Australien)Australia/Perth28800Westliche Normalzeit (Australien)Australia/West28800Chinesische NormalzeitCTT28800GMT+08:00Etc/GMT-828800Hongkong ZeitHongkong28800Chinesische NormalzeitPRC28800Singapur ZeitSingapore28800Zentral-Westliche Normalzeit (Australien)Australia/Eucla31500Timor-Leste NormalzeitAsia/Dili32400Ostindonesische ZeitAsia/Jayapura32400Koreanische NormalzeitAsia/Pyongyang32400Koreanische NormalzeitAsia/Seoul32400Japanische NormalzeitAsia/Tokyo32400Jakutsk ZeitAsia/Yakutsk32400GMT+09:00Etc/GMT-932400Japanische NormalzeitJST32400Japanische NormalzeitJapan32400Palau ZeitPacific/Palau32400Koreanische NormalzeitROK32400Zentrale Normalzeit (Northern Territory)ACT34200Zentrale Normalzeit (Südaustralien)Australia/Adelaide34200Zentrale Normalzeit (Südaustralien/New South Wales)Australia/Broken_Hill34200Zentrale Normalzeit (Northern Territory)Australia/Darwin34200Zentrale Normalzeit (Northern Territory)Australia/North34200Zentrale Normalzeit (Südaustralien)Australia/South34200Zentrale Normalzeit (Südaustralien/New South Wales)Australia/Yancowinna34200Östliche Normalzeit (New South Wales)AET36000Dumont-d'Urville ZeitAntarctica/DumontDUrville36000Sakhalin ZeitAsia/Sakhalin36000Wladiwostok ZeitAsia/Vladivostok36000Östliche Normalzeit (New South Wales)Australia/ACT36000Östliche Normalzeit (Queensland)Australia/Brisbane36000Östliche Normalzeit (New South Wales)Australia/Canberra36000Östliche Normalzeit (New South Wales)Australia/Currie36000Östliche Normalzeit (Tasmanien)Australia/Hobart36000Östliche Normalzeit (Queensland)Australia/Lindeman36000Östliche Normalzeit (Victoria)Australia/Melbourne36000Östliche Normalzeit (New South Wales)Australia/NSW36000Östliche Normalzeit (Queensland)Australia/Queensland36000Östliche Normalzeit (New South Wales)Australia/Sydney36000Östliche Normalzeit (Tasmanien)Australia/Tasmania36000Östliche Normalzeit (Victoria)Australia/Victoria36000GMT+10:00Etc/GMT-1036000Chamorro NormalzeitPacific/Guam36000Papua-Neuguinea ZeitPacific/Port_Moresby36000Chamorro NormalzeitPacific/Saipan36000Truk ZeitPacific/Truk36000Truk ZeitPacific/Yap36000Lord Howe NormalzeitAustralia/LHI37800Lord Howe NormalzeitAustralia/Lord_Howe37800Casey TimeAntarctica/Casey39600Magadanische ZeitAsia/Magadan39600GMT+11:00Etc/GMT-1139600Vanuatu ZeitPacific/Efate39600Salomoninseln ZeitPacific/Guadalcanal39600Kosrae ZeitPacific/Kosrae39600Neukaledonische ZeitPacific/Noumea39600Ponape ZeitPacific/Ponape39600Salomoninseln ZeitSST39600Norfolk ZeitPacific/Norfolk41400Neuseeland NormalzeitAntarctica/McMurdo43200Neuseeland NormalzeitAntarctica/South_Pole43200Anadyr ZeitAsia/Anadyr43200Petropawlowsk-Kamtschatkische ZeitAsia/Kamchatka43200GMT+12:00Etc/GMT-1243200Marshallinseln ZeitKwajalein43200Neuseeland NormalzeitNST43200Neuseeland NormalzeitNZ43200Neuseeland NormalzeitPacific/Auckland43200Fidschi ZeitPacific/Fiji43200Tuvalu ZeitPacific/Funafuti43200Marshallinseln ZeitPacific/Kwajalein43200Marshallinseln ZeitPacific/Majuro43200Nauru ZeitPacific/Nauru43200Gilbert-Inseln ZeitPacific/Tarawa43200Wake ZeitPacific/Wake43200Wallis u. Futuna ZeitPacific/Wallis43200Chatham NormalzeitNZ-CHAT45900Chatham NormalzeitPacific/Chatham45900GMT+13:00Etc/GMT-1346800Phoenix Inseln ZeitPacific/Enderbury46800Tonga ZeitPacific/Tongatapu46800GMT+14:00Etc/GMT-1450400Line Inseln ZeitPacific/Kiritimati50400
]]>parseDate
Converts a string into date using pre-defined date formats
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")parseDateAdvanced
Converts a string into date using any format.
ExecuteServicesThe ExecuteService bundles local and remote command
execution operations. Its WSDL is located at
http://server:port/XServices/ExecuteService?wsdlrExec
provides remote execution facilities with authentication based on
user names and passwords.Input parameters
rExec
input parameters
parametertyperequireddescriptionhostHostConnectionYes
Host where to execute the command. See
HostConnection
.
commandStringNoAny command including argumentstimeoutLongYesTimeout in milliseconds. The command is forcefully terminated when timeout is reached.
Output parameters
ReturnCode type
The ReturnCode type is used as the generic answer type for most of the
BruteXservices
operations.
The defining Java class is
net.brutex.xservices.types.ReturnCode
.
Schema definitiontns:antProperty
]]>
Example XML
<ReturnCode
xmlns:ns2="http://ws.xservices.brutex.net">
<returnCode>0</returnCode>
<stdOut/>
<stdErr/>
<propertyList>
See
tns:antProperty
for details about the <propertyList> elements.
<name>key1</name>
<value>value1</value>
</propertyList>
<propertyList>
<name>key2</name>
<value>value2</value>
</propertyList>
</ReturnCode>
runCommandRun an executable with arguments on the server providing the web
service. The command is run within the environment and under the user
privileges of the user who is running the Tomcat Server.Input parameters
runCommand input parametersparametertyperequireddescriptionexecutableStringYesCommand to be run. The command may be specified with full
path using forward slash "/" as path separator.arglineStringNoAny command line argumentstimeoutLongYesTimeout in milliseconds. The command is forcefully terminated when timeout is reached.
Output parameters
ReturnCode type
The ReturnCode type is used as the generic answer type for most of the
BruteXservices
operations.
The defining Java class is
net.brutex.xservices.types.ReturnCode
.
Schema definitiontns:antProperty
]]>
Example XML
<ReturnCode
xmlns:ns2="http://ws.xservices.brutex.net">
<returnCode>0</returnCode>
<stdOut/>
<stdErr/>
<propertyList>
See
tns:antProperty
for details about the <propertyList> elements.
<name>key1</name>
<value>value1</value>
</propertyList>
<propertyList>
<name>key2</name>
<value>value2</value>
</propertyList>
</ReturnCode>
Sample request: Start Windows Command Interpreter and print "Hello World" to STDOUT.
c:/windows/system32/cmd.exe/C "echo Hallo Welt!"3000
]]>
Sample response:
0ExecuteService.result0ExecuteService.stdoutHallo Welt!ExecuteService.stderr
]]>
Sample request: Start notepad.exe and close it after 15 seconds.
c:/windows/system32/notepad.exe15000
]]>runCommandAsyncRun an executable with arguments on the server providing the web
service and don't wait for the executable to finish.
The command is run within the environment and under the user
privileges of the user who is running the Tomcat Server.runCommandAsyncWithArgsRun an executable with arguments on the server providing the web
service and don't wait for the executable to finish.
The command is run within the environment and under the user
privileges of the user who is running the Tomcat Server.runCommandWithArgsRun an executable with arguments on the server providing the web
service. The command is run within the environment and under the user
privileges of the user who is running the Tomcat Server.runCommandWithSSHExecutes a command through a SSH session.Input parameters
runCommandWithSSH input parametersparametertyperequireddescriptionhostHostConnectionYes
Host to connect to (see:
tns:HostConnection
)
commandStringNoThe command to execute.timeoutLongYesTimeout in milliseconds. The command is forcefully terminated when timeout is reached.
Output parameters
ReturnCode type
The ReturnCode type is used as the generic answer type for most of the
BruteXservices
operations.
The defining Java class is
net.brutex.xservices.types.ReturnCode
.
Schema definitiontns:antProperty
]]>
Example XML
<ReturnCode
xmlns:ns2="http://ws.xservices.brutex.net">
<returnCode>0</returnCode>
<stdOut/>
<stdErr/>
<propertyList>
See
tns:antProperty
for details about the <propertyList> elements.
<name>key1</name>
<value>value1</value>
</propertyList>
<propertyList>
<name>key2</name>
<value>value2</value>
</propertyList>
</ReturnCode>
Sample Request:ssh.brutex.net22rogerxxxls /etc/30000
]]>runCommandWithSSHKeyAuthExecutes a command through a SSH session.runJavaScriptExecute a JavaScript and or Java program using Mozilla Rhino JIT-Compiler.telnetRuns a telnet session with an "expect shell" like behaviour.Input parameters
telnet input parametersparametertyperequireddescriptionhostHostConnectionYesHost to connect to (see: tns:HostConnection)promptStringNoThe prompt string to expect after login. This is used to recognize when
the session is open.commandStringNoThe command to execute.expectStringNoThe prompt to expect after the command has been executed successfully.timeoutLongYesTimeout in milliseconds. The command is forcefully terminated when timeout is reached.
Output parametersReturnCode type
The ReturnCode type is used as the generic answer type for most of the
BruteXservices
operations.
The defining Java class is
net.brutex.xservices.types.ReturnCode
.
Schema definitiontns:antProperty
]]>
Example XML
<ReturnCode
xmlns:ns2="http://ws.xservices.brutex.net">
<returnCode>0</returnCode>
<stdOut/>
<stdErr/>
<propertyList>
See
tns:antProperty
for details about the <propertyList> elements.
<name>key1</name>
<value>value1</value>
</propertyList>
<propertyList>
<name>key2</name>
<value>value2</value>
</propertyList>
</ReturnCode>
Sample Request:localhost23brosenbergerC:\Users\brosenberger>dir c:\tempenberger>60000
]]>FileServicesThe FileServces bundles various file operations. Its WSDL is located at
http://server:port/XServices/FileService?wsdldownloadFileDownloads a file as base64 encoded.
Sample request:
FILEc:\temp\test.docx
]]>
Sample response:
ADQBNA[... snipp ...]wAApzcAAAAAtest.docx
]]>Encoding files as base64 is very memory consuming!encodeFileEncodes a file as base64.
Sample request:
FILEc:\temp\test.docx
]]>
Sample response:
ADQBNA[... snipp ...]wAApzcAAAAAtest.docx
]]>DEPRECATED: Encoding files as base64 is very memory consuming!JobServicesThe JobService bundles re-occuring or scheduled operations. Its WSDL is located at
http://server:port/XServices/JobService?wsdlMailServicesThe MailService contains mail send and receive operations. Its WSDL is located at
http://server:port/XServices/MailService?wsdlsendMailSimpleSend email.MiscServicesThe MiscService bundles various operations. Its WSDL is located at
http://server:port/XServices/MiscService?wsdlgenerateUUIDGenerates a UUID that represents a 128-bit value. This operation does not require any
input parameters. The output has the format:
0xFFFFFFFF00000000 time_low
0x00000000FFFF0000 time_mid
0x000000000000F000 version
0x0000000000000FFF time_hi
The least significant long consists of the following unsigned fields:
0xC000000000000000 variant
0x3FFF000000000000 clock_seq
0x0000FFFFFFFFFFFF node
Sample response:
]]>33b9e5c8-9102-423b-88af-bbee479ebea8
]]>getHostinfoCollect information about a host address.
Sample request:
]]>google.com
]]>
Sample response:
]]>1e100.net]]>173.194.66.105]]>::]]>we-in-f105
]]>sleepDelays the response by the given minutes/ seconds. Please note,
that it may take more time to perform the server roundtrip (network
delays, parsing, etc.). Also you may have a network timeout set up in
Tomcat or your client that prevents this web service to respond
correctly.
StorageServicesThe StorageService will provide get/ push operations to store and retrieve data from various backends.
This is currently under development and not yet released.
Its WSDL is located at
http://server:port/XServices/StorageService?wsdl ...
Description hereInput parameters
Input parameters
parametertyperequireddescriptionhostHostConnectionYes
Host where to execute the command. See
HostConnection
.
commandStringNoAny command including argumentstimeoutLongYesTimeout in milliseconds. The command is forcefully terminated when timeout is reached.
Output parameters
ReturnCode type
The ReturnCode type is used as the generic answer type for most of the
BruteXservices
operations.
The defining Java class is
net.brutex.xservices.types.ReturnCode
.
Schema definitiontns:antProperty
]]>
Example XML
<ReturnCode
xmlns:ns2="http://ws.xservices.brutex.net">
<returnCode>0</returnCode>
<stdOut/>
<stdErr/>
<propertyList>
See
tns:antProperty
for details about the <propertyList> elements.
<name>key1</name>
<value>value1</value>
</propertyList>
<propertyList>
<name>key2</name>
<value>value2</value>
</propertyList>
</ReturnCode>
StringServicesThe StringService provides String manipulation capabilities.
Its WSDL is located at
http://server:port/XServices/StringService?wsdlreplaceRegExSearch and Replace using regular expression.
Sample request:
Hallo WeltW.*Brianig
]]>
Sample response:
Hallo Brian1
]]>Allowed regexflags are case-insensitive (i) and global search (g).XmlServicesThe XmlService provides operations to manipulate XML structures.
Its WSDL is located at
http://server:port/XServices/XmlService?wsdlinsertNodesInsert an xml fragment into other elements specified by an XPath expression.
This operation is namespace aware.
Sample request:
MensiokBelloSchwabRumsauDollibertRach
]]]]>utf-8/books/author]]]]>
]]>
Sample response:
MensiokBelloSchwabRumsauDollibertRach]]]]>!>
]]>insertNodes2Insert an xml fragment into xml resource (i.e. file, URL) specified by an XPath expression.
This operation is namespace aware.
Sample request:
Sample response:
replaceNodesReplace an xml fragment with another xml fragment. This operation is namespace aware.
Sample request:
MensiokBelloSchwabRumsauDollibertRach
]]]]>
utf-8*/name[text()='Schwab']Meyer45]]]]>
]]>
Sample response:
MensiokBelloMeyer45RumsauDollibertRach]]]]>
]]>replaceNodes2Replace an xml fragment with another xml fragment read from a resource (i.e. file, URL). This operation is namespace aware.
Sample request:
...
Sample response:
selectXPathSelects xmlfragements, nodes, attribute or text from xml data using an XPath expression.
This function requires namespaces to be declared correctly.
Sample request:
LenaJaniReminder ABC
Don't forget me this weekend!
JohnLenaCall Mr. ABC
Please call back
BrianJJohnReminder XServices
How to use selectXPath?
]]]]>
utf-8nshttp://demo.brutex.netbxhttp://bx.brutex.net*/bx:note/ns:heading/text()
]]>
Sample response:
Reminder ABCReminder XServices2
]]>setAttributeSet an attribute into elements matched by an XPath expression.
Sample request:
LenaJaniReminder ABC
Don't forget me this weekend!
JohnLenaCall Mr. ABC
Please call back
]]]]>utf-8bxhttp://demo.brutex.net*/bx:notepriorityhigh
]]>
Sample response:
LenaJaniReminder ABC
Don't forget me this weekend!
JohnLenaCall Mr. ABC
Please call back
]]]]>
]]>wrapInCDATASimply wraps any data fragment into <![CDATA[ ... ]]> section. This can be useful if you
want to preserve indentation or line breaks.
Sample request:
Hello World, here is some <xml> data
]]>
Sample response:
<![CDATA[Hello World, here is some <xml> data]]>
]]>Available RESTful ServicesList of available web services and their operations.CVSInfoServiceRESTful service to query a CVS repository, search files and content. Includes caching mechanism.
Endpoint address: http://localhost:8080/XServices/cvsinfoWADL : http://localhost:8080/XServices/cvsinfo?_wadlFileInfoServiceThe FileInfoService allows listing/ searching/ browsing and download of files and directories. Includes caching mechanism.
Endpoint address: http://localhost:8080/XServices/fileinfoWADL : http://localhost:8080/XServices/fileinfo?_wadlXML TypesThis chapter bundles the documentation for common XML types used
by XServices web service.AntProperty typeThe AntProperty type defines a list of key/value pairs.
The defining Java class is
net.brutex.xservices.types.AntProperty
.
]]>
key2value2
]]>
DateInfoType typeDifferent presentation of a date time value.
The defining Java class is
net.brutex.xservices.types.DateInfoType
.
FileResource typeThe FileResource type defines an URI to a file with optional on-the-fly decompression.
The defining Java class is
net.brutex.xservices.types.FileResource
.
]]>
Available types:FILE: URI points to a local file resource. Examples: c:\temp\something.txt, c:/dir/another.file, /home/brian/fileURL: File from URL (http, https, ftp, ...). Example: http://brutex.net/file.pdfGZIP and BZIP2: File from a local file system with on-the-fly decompression.FILEc:\temp\xservices.war
]]>
HostConnection typeThe HostConnection type identifies a server resource and login
credentials.
The defining Java class is
net.brutex.xservices.types.HostConnection
.
Schema definition
]]>
Example XMLserver.brutex.net512briansomepass
]]>
PatternElement typeThe PatternElement type defines single string pattern for file/
directory matching.
The defining Java class is
net.brutex.xservices.types.PatternElement
.
These patterns look exactly like those used in Apache Ant
Patterns.
The '*' matches zero or more characters and the
'?' will match a single character.
Both symbols can be combined in one pattern. The '**'
symbol can be used to match any directory deepth.
Some example patterns:**/mydir/**Match all file that are located in any directory that has
"mydir" string in its pathname. Also applies to files with
"mydir" in their name./mydir/The
parser will automatically append an '**' symbol, thus the
resulting pattern is
/mydir/**.
All files below the "/mydir/" directory (including its
sub-directories will be chosen.
The pattern is OS independent. You should always use
"/" as path separator, even on windows based systems.
Schema definition
]]>Example XML**/*]]>PatternSetType typeThe PatternSetType exposes various filters/ selectors for the
selection of resources (files).
The defining Java class is
net.brutex.xservices.types.PatternSetType
.
Schema definitiontns:patternElement
tns:patternElement
tns:selectorType
]]>
Example XMLReturnCode type
The ReturnCode type is used as the generic answer type for most of the
BruteXservices
operations.
The defining Java class is
net.brutex.xservices.types.ReturnCode
.
Schema definitiontns:antProperty
]]>
Example XML
<ReturnCode
xmlns:ns2="http://ws.xservices.brutex.net">
<returnCode>0</returnCode>
<stdOut/>
<stdErr/>
<propertyList>
See
tns:antProperty
for details about the <propertyList> elements.
<name>key1</name>
<value>value1</value>
</propertyList>
<propertyList>
<name>key2</name>
<value>value2</value>
</propertyList>
</ReturnCode>
SelectorType typeThe SelectorType exposes various selectors for the selection of resources (files).The defining Java class is
net.brutex.xservices.types.SelectorType.Schema definition
]]>
Example XML