Major rework in the DateService

git-svn-id: https://brutex.net/svn/xservices/trunk@83 e7e49efb-446e-492e-b9ec-fcafc1997a86
tag-20130205r
Brian Rosenberger 2012-01-23 18:54:01 +00:00
parent 5b522551d1
commit 8bb9747db3
35 changed files with 8516 additions and 1113 deletions

View File

@ -34,4 +34,16 @@
</xslt> </xslt>
</target> </target>
<target name="create-webdoc" depends="clean-doc, merge">
<xslt force="true" style="${docbookdir}/../fo/docbook.xsl"
in="${docbooksource}/BruteXServices_User_Guide.dbk"
out="${htmldir}/xservices.fo">
<factory name="${xalan}" />
<param name="base.dir" expression="${htmldir}/"/>
<param name="use.id.as.filename" expression="1" />
<param name="fop.extensions" expression="0" />
</xslt>
</target>
</project> </project>

View File

@ -1,9 +1,8 @@
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xi="http://www.w3.org/2001/XInclude" <section xmlns="http://docbook.org/ns/docbook" version="5.0"
id="archiveservices"> xmlns:xi="http://www.w3.org/2001/XInclude" id="archiveservices">
<title>ArchiveServices</title> <title>ArchiveServices</title>
<para>The ArchiveService bundles file packing operations. Its <para>The ArchiveService bundles file packing operations. Its
WSDL is WSDL is located at
located at
http://server:port/XServices/ArchiveService?wsdl</para> http://server:port/XServices/ArchiveService?wsdl</para>
</section> </section>

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +1,28 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0" <section xmlns="http://docbook.org/ns/docbook" version="5.0"
xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xi="http://www.w3.org/2001/XInclude" id="dateservices">
id="dateservices">
<title>DateServices</title> <title>DateServices</title>
<para>The DateService bundles various date and time related operations. Its WSDL is located at <para>The DateService bundles various date and time related operations.
http://server:port/XServices/DateService?wsdl</para> </para>
<para>Its WSDL is located at http://server:port/XServices/DateService?wsdl</para>
<para>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.
<itemizedlist>
<listitem>
<para>ISO8601 (example: "2012-01-17T23:50:00+01:00")</para>
</listitem>
<listitem>
<para>RFC822 (example: "2012-01-17T23:50:00+0100")</para>
</listitem>
</itemizedlist>
</para>
<xi:include href="DateServices/getDate.xml" />
<xi:include href="DateServices/getDateExtended.xml" />
<xi:include href="DateServices/formatDate.xml" />
<xi:include href="DateServices/getInTimezone.xml" />
<xi:include href="DateServices/getTimestamp.xml" />
<xi:include href="DateServices/getTimestamp2.xml" />
<xi:include href="DateServices/getTimezones.xml" />
</section> </section>

View File

@ -0,0 +1,26 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE section [
<!ENTITY % myent SYSTEM "../entities.ent">
%myent;
]>
<section xmlns="http://docbook.org/ns/docbook" version="5.0"
xmlns:xi="http://www.w3.org/2001/XInclude">
<title>formatDate</title>
<para>
Transform date/time representation from ISO8601 or RFC822 format to
<itemizedlist>
<listitem>
<para>ISO8601 (example: "2012-01-17T23:50:00+01:00")</para>
</listitem>
<listitem>
<para>RFC822 (example: "2012-01-17T23:50:00+0100")</para>
</listitem>
<listitem>
<para>YYYYMMDD (example: "2012/01/17")</para>
</listitem>
<listitem>
<para>DDMMYYYY (example: "17.01.2012")</para>
</listitem>
</itemizedlist>
</para>
</section>

View File

@ -0,0 +1,39 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE section [
<!ENTITY % myent SYSTEM "../entities.ent">
%myent;
]>
<section xmlns="http://docbook.org/ns/docbook" version="5.0"
xmlns:xi="http://www.w3.org/2001/XInclude">
<title>getDate</title>
<para>Get current time and date.
Sample request:
<screen><![CDATA[
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:getDate/>
</soapenv:Body>
</soapenv:Envelop
]]></screen>
Sample response:
<programlisting language="xml"><![CDATA[
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:getDateResponse xmlns:ns1="http://ws.xservices.brutex.net">
<ns1:return>
<ns1:formats>
<ns1:format1>02.01.2012</ns1:format1>
<ns1:format2>2012/01/02</ns1:format2>
<ns1:format3>08:14:40+0100</ns1:format3>
</ns1:formats>
<ns1:iso8601date>2012-01-02T08:14:40+0100</ns1:iso8601date>
<ns1:timestamp>1325488480957</ns1:timestamp>
</ns1:return>
</ns1:getDateResponse>
</soap:Body>
</soap:Envelope>]]></programlisting>
</para>
</section>

View File

@ -0,0 +1,31 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE section [
<!ENTITY % myent SYSTEM "../entities.ent">
%myent;
]>
<section xmlns="http://docbook.org/ns/docbook" version="5.0"
xmlns:xi="http://www.w3.org/2001/XInclude">
<title>getDateExtended</title>
<para>Get current time and date (extended Version).
Sample response:
<screen>
<![CDATA[
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:getDateExtendedResponse xmlns:ns2="http://ws.xservices.brutex.net">
<return>
<iso8601date>2012-01-23T08:30:00.333+01:00</iso8601date>
<rfc822date>2012-01-23T08:30:00.333+0100</rfc822date>
<timestamp>1327303800333</timestamp>
<format1>23.01.2012</format1>
<format2>2012/01/23</format2>
<format3>08:30:00</format3>
</return>
</ns2:getDateExtendedResponse>
</soap:Body>
</soap:Envelope>
]]>
</screen>
</para>
</section>

View File

@ -0,0 +1,14 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE section [
<!ENTITY % myent SYSTEM "../entities.ent">
%myent;
]>
<section xmlns="http://docbook.org/ns/docbook" version="5.0"
xmlns:xi="http://www.w3.org/2001/XInclude">
<title>getInTimezone</title>
<para>
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.
</para>
<para>The web service operation "getTimezones" returns a full list of all supported time zones.</para>
</section>

View File

@ -0,0 +1,31 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE section [
<!ENTITY % myent SYSTEM "../entities.ent">
%myent;
]>
<section xmlns="http://docbook.org/ns/docbook" version="5.0"
xmlns:xi="http://www.w3.org/2001/XInclude">
<title>getTimestamp</title>
<para>Get current timestamp in milliseconds (epoch).
Sample request:
<screen><![CDATA[
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:getTimestamp/>
</soapenv:Body>
</soapenv:Envelop
]]></screen>
Sample response:
<screen><![CDATA[
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:getTimestampResponse xmlns:ns1="http://ws.xservices.brutex.net">
<ns1:return>]]><emphasis>1325488875703</emphasis><![CDATA[</ns1:return>
</ns1:getTimestampResponse>
</soap:Body>
</soap:Envelope>]]></screen>
</para>
</section>

View File

@ -0,0 +1,31 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE section [
<!ENTITY % myent SYSTEM "../entities.ent">
%myent;
]>
<section xmlns="http://docbook.org/ns/docbook" version="5.0"
xmlns:xi="http://www.w3.org/2001/XInclude">
<title>getTimestamp2</title>
<para>Get current timestamp in seconds (unix timestamp).
Sample request:
<screen><![CDATA[
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:getTimestamp2/>
</soapenv:Body>
</soapenv:Envelop
]]></screen>
Sample response:
<screen><![CDATA[
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:getTimestamp2Response xmlns:ns1="http://ws.xservices.brutex.net">
<ns1:return>]]><emphasis>1325488876</emphasis><![CDATA[</ns1:return>
</ns1:getTimestamp2Response>
</soap:Body>
</soap:Envelope>]]></screen>
</para>
</section>

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,7 @@
xmlns:xi="http://www.w3.org/2001/XInclude"> xmlns:xi="http://www.w3.org/2001/XInclude">
<!-- Sort alphabetically --> <!-- Sort alphabetically -->
<xi:include href="types/AntProperty.xml" /> <xi:include href="types/AntProperty.xml" />
<xi:include href="types/DateInfoType.xml" />
<xi:include href="types/FileResource.xml" /> <xi:include href="types/FileResource.xml" />
<xi:include href="types/HostConnection.xml" /> <xi:include href="types/HostConnection.xml" />
<xi:include href="types/PatternElement.xml" /> <xi:include href="types/PatternElement.xml" />

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<section> <section id="antproperty">
<title>AntProperty type</title> <title>AntProperty type</title>
<para>The AntProperty type defines a list of key/value pairs.</para> <para>The AntProperty type defines a list of key/value pairs.</para>
<para> <para>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0"
xmlns:xi="http://www.w3.org/2001/XInclude">
<title>DateInfoType type</title>
<para>Different presentation of a date time value.</para>
<para>
The defining Java class is
<ulink url="javadoc/net/brutex/xservices/types/DateInfoType.html">
<classname>net.brutex.xservices.types.DateInfoType</classname>
</ulink>
.
</para>
</section>

View File

@ -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.");
}
}

View File

@ -15,33 +15,53 @@
*/ */
package net.brutex.xservices.types; 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.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
import net.brutex.xservices.util.BrutexNamespaces;
/** /**
* Different pre-defined date formats. * Different pre-defined date formats.
* *
* @author Brian Rosenberger, bru@brutex.de * @author Brian Rosenberger, bru@brutex.de
*/ */
@XmlEnum(value = String.class) @XmlEnum()
public enum DateFormatType { public enum DateFormatType {
/** /**
* ISO 8601 format (2011-05-24T14:39Z) * ISO 8601 format (2011-05-24T14:39+01:00)
*/ */
@XmlEnumValue("ISO 8601") @XmlEnumValue("ISO 8601")
ISO8601("ISO 8601", "yyyy-MM-dd'T'HH:mm:ssZ"), 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 * yyyy/mm/dd
*/ */
@XmlEnumValue("yyyy/mm/dd") @XmlEnumValue("DateOnly-slashed")
YYYYMMDD("yyyy/mm/dd", "yyyy/MM/dd"), YYYYMMDD("DateOnly-slashed", "yyyy/MM/dd"),
/** /**
* dd.mm.yyyy * dd.mm.yyyy
*/ */
@XmlEnumValue("dd.mm.yyyy") @XmlEnumValue("DateOnly-dotted")
DDMMYY("dd.mm.yyyy", "dd.MM.yyyy"); DDMMYYYY("DateOnly-dotted", "dd.MM.yyyy"),
/**
* dd.mm.yyyy
*/
@XmlEnumValue("DateOnly-dashed")
DDMMYYYYdashed("DateOnly-dashed", "dd-MM-yyyy");
private String value; private String value;
private String format; private String format;
@ -59,7 +79,33 @@ public enum DateFormatType {
return value; return value;
} }
public String format() { public String format(Date date, Locale locale, TimeZone timezone) {
return format; 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;
} }
} }

View File

@ -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
}

View File

@ -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);
}
}

View File

@ -53,7 +53,10 @@ public enum DateTimeUnits {
* days * days
*/ */
@XmlEnumValue("days") @XmlEnumValue("days")
DAYS("days"); DAYS("days"),
@XmlEnumValue("years")
YEARS("years");
private String value; private String value;

View File

@ -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;
}
}

View File

@ -19,8 +19,9 @@ import java.io.ByteArrayOutputStream;
import java.io.PrintStream; import java.io.PrintStream;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import net.brutex.xservices.types.AntProperty;
import net.brutex.xservices.types.ReturnCode; import net.brutex.xservices.types.ReturnCode;
import net.brutex.xservices.types.ant.AntProperty;
import org.apache.tools.ant.BuildException; import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project; import org.apache.tools.ant.Project;
import org.apache.tools.ant.Target; import org.apache.tools.ant.Target;

View File

@ -18,12 +18,12 @@ package net.brutex.xservices.ws;
import javax.jws.WebMethod; import javax.jws.WebMethod;
import javax.jws.WebParam; import javax.jws.WebParam;
import javax.jws.WebService; import javax.jws.WebService;
import net.brutex.xservices.types.ArchiveResource;
import net.brutex.xservices.types.CompressionType; 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.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; import net.brutex.xservices.util.BrutexNamespaces;

View File

@ -17,17 +17,24 @@
package net.brutex.xservices.ws; package net.brutex.xservices.ws;
import java.math.BigInteger; import java.math.BigInteger;
import java.util.Date;
import java.util.GregorianCalendar; import java.util.GregorianCalendar;
import java.util.List;
import javax.jws.WebMethod; import javax.jws.WebMethod;
import javax.jws.WebParam; import javax.jws.WebParam;
import javax.jws.WebService; import javax.jws.WebService;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
import javax.xml.datatype.XMLGregorianCalendar;
import net.brutex.xservices.types.DateFormatType; 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.DateTimeUnits;
import net.brutex.xservices.types.TimeZoneType;
import net.brutex.xservices.util.BrutexNamespaces; import net.brutex.xservices.util.BrutexNamespaces;
import org.apache.cxf.annotations.WSDLDocumentation; import org.apache.cxf.annotations.WSDLDocumentation;
import org.apache.cxf.annotations.WSDLDocumentationCollection; import org.apache.cxf.annotations.WSDLDocumentationCollection;
@ -45,7 +52,9 @@ import org.apache.cxf.annotations.WSDLDocumentationCollection;
public interface DateService { public interface DateService {
public static final String SERVICE_NAME = "DateService"; public static final String SERVICE_NAME = "DateService";
final String OPERATION_GETDATE = "getDate"; final String OPERATION_GETDATE = "getDate";
final String OPERATION_GETDATEEXTENDED = "getDateExtended";
final String OPERATION_GETTIMESTAMP = "getTimestamp"; final String OPERATION_GETTIMESTAMP = "getTimestamp";
final String OPERATION_GETTIMESTAMP2 = "getTimestamp2"; final String OPERATION_GETTIMESTAMP2 = "getTimestamp2";
final String OPERATION_GETINTIMEZONE = "getInTimezone"; final String OPERATION_GETINTIMEZONE = "getInTimezone";
@ -56,7 +65,7 @@ public interface DateService {
final String OPERATION_DATETIMEDIFF = "dateTimeDiff"; final String OPERATION_DATETIMEDIFF = "dateTimeDiff";
final String OPERATION_DATETIMEDIFF2 = "dateTimeDiff2"; final String OPERATION_DATETIMEDIFF2 = "dateTimeDiff2";
final String OPERATION_DATEADD = "dateAdd"; final String OPERATION_DATEADD = "dateAdd";
final String OPERATION_GETTIMEZONES = "getTimezones";
final String PARAM_TIMEZONE = "timezone"; final String PARAM_TIMEZONE = "timezone";
final String PARAM_DATETIME = "datetime"; final String PARAM_DATETIME = "datetime";
final String PARAM_FORMAT = "format"; final String PARAM_FORMAT = "format";
@ -65,14 +74,24 @@ public interface DateService {
/** /**
* Get current date and time. * Get current date and time.
* *
* @param timezone Optional timezone. Defaults to server timezone.
* @return Current date and time. * @return Current date and time.
* @throws XServicesFault * @throws XServicesFault
*/ */
@WebMethod(operationName=OPERATION_GETDATE) @WebMethod(operationName=OPERATION_GETDATE)
@WSDLDocumentation(value="Get current date and time.") @WSDLDocumentation(value="Get current date and time.")
public abstract GregorianCalendar getDate( public abstract DateInfoType getDate()
@WebParam(name=PARAM_TIMEZONE) String timezone) throws XServicesFault; 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. * Get milliseconds since 01.01.1970.
@ -102,23 +121,26 @@ public interface DateService {
* @throws XServicesFault * @throws XServicesFault
*/ */
@WebMethod(operationName=OPERATION_GETINTIMEZONE) @WebMethod(operationName=OPERATION_GETINTIMEZONE)
public abstract GregorianCalendar getInTimezone( public abstract String getInTimezone(
@WebParam(name=PARAM_DATETIME) @XmlElement(required=true) GregorianCalendar cal, @WebParam(name=PARAM_DATETIME) @XmlElement(required=true) Date cal,
@WebParam(name=PARAM_TIMEZONE) @XmlElement(required=true) String timezone) throws XServicesFault; @WebParam(name=PARAM_TIMEZONE) @XmlElement(required=true) String timezone) throws XServicesFault;
/** /**
* Formats a date with pre-defined patterns. * 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 * @param format Pattern to be used for date formating
* @return formatted date/time string * @return formatted date/time string
* @throws XServicesFault * @throws XServicesFault
*/ */
@WebMethod(operationName=OPERATION_FORMATDATE) @WebMethod(operationName=OPERATION_FORMATDATE)
public abstract String 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; @WebParam(name=PARAM_FORMAT) @XmlElement(required=true) DateFormatType format) throws XServicesFault;
@WebMethod(operationName=OPERATION_GETTIMEZONES)
public abstract List<TimeZoneType> getTimezones() throws XServicesFault;
/** /**
* Formats a date with a free form pattern. * Formats a date with a free form pattern.
* Uses SimpleDateFormat patterns * Uses SimpleDateFormat patterns
@ -151,7 +173,7 @@ public interface DateService {
*/ */
@WebMethod(operationName=OPERATION_FORMATDATEADVANCED) @WebMethod(operationName=OPERATION_FORMATDATEADVANCED)
public abstract String 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; @WebParam(name=PARAM_FORMAT) @XmlElement(required=true) String format) throws XServicesFault;
/** /**
@ -164,7 +186,8 @@ public interface DateService {
* @throws XServicesFault * @throws XServicesFault
*/ */
@WebMethod(operationName=OPERATION_PARSEDATE) @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_DATETIME) @XmlElement(required=true) String s,
@WebParam(name=PARAM_FORMAT) @XmlElement(required=true) DateFormatType format, @WebParam(name=PARAM_FORMAT) @XmlElement(required=true) DateFormatType format,
@WebParam(name=PARAM_TIMEZONE) String timezone) throws XServicesFault; @WebParam(name=PARAM_TIMEZONE) String timezone) throws XServicesFault;
@ -192,8 +215,8 @@ public interface DateService {
*/ */
@WebMethod(operationName=OPERATION_DATETIMEDIFF) @WebMethod(operationName=OPERATION_DATETIMEDIFF)
public abstract BigInteger dateTimeDiff( public abstract BigInteger dateTimeDiff(
@WebParam(name="fromDateTime") @XmlElement(required=true) GregorianCalendar fromCal, @WebParam(name="fromDateTime") @XmlElement(required=true) Date fromCal,
@WebParam(name="toDateTime") @XmlElement(required=true) GregorianCalendar toCal) throws XServicesFault; @WebParam(name="toDateTime") @XmlElement(required=true) Date toCal) throws XServicesFault;
/** /**
* Fully elapsed units between two dates. * Fully elapsed units between two dates.
@ -208,9 +231,9 @@ public interface DateService {
@WebMethod(operationName=OPERATION_DATETIMEDIFF2) @WebMethod(operationName=OPERATION_DATETIMEDIFF2)
@WSDLDocumentation(value="Get elapsed time between to dates.") @WSDLDocumentation(value="Get elapsed time between to dates.")
public abstract BigInteger dateTimeDiff2( public abstract BigInteger dateTimeDiff2(
@WebParam(name="fromDateTime") @XmlElement(required=true) GregorianCalendar fromCal, @WebParam(name="fromDateTime") @XmlElement(required=true) Date fromCal,
@WebParam(name="toDateTime") @XmlElement(required=true) GregorianCalendar toCal, @WebParam(name="toDateTime") @XmlElement(required=true) Date toCal,
@WebParam(name="PARAM_UNIT") DateTimeUnits unit) throws XServicesFault; @WebParam(name=PARAM_UNIT) DateTimeUnits unit) throws XServicesFault;
/** /**
* Add or subtract a time span from a date. * Add or subtract a time span from a date.

View File

@ -26,12 +26,12 @@ import javax.xml.bind.annotation.XmlElement;
import org.apache.cxf.annotations.WSDLDocumentation; import org.apache.cxf.annotations.WSDLDocumentation;
import org.apache.cxf.annotations.WSDLDocumentationCollection; 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.ReplacePattern;
import net.brutex.xservices.types.ReturnCode; 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.BrutexNamespaces;
import net.brutex.xservices.util.XServicesDocumentation; import net.brutex.xservices.util.XServicesDocumentation;
/** /**

View File

@ -18,14 +18,15 @@ package net.brutex.xservices.ws;
import javax.jws.WebMethod; import javax.jws.WebMethod;
import javax.jws.WebParam; import javax.jws.WebParam;
import javax.jws.WebService; import javax.jws.WebService;
import net.brutex.xservices.types.FileSetResource;
import net.brutex.xservices.types.HostConnection; import net.brutex.xservices.types.HostConnection;
import net.brutex.xservices.types.HostinfoType; import net.brutex.xservices.types.HostinfoType;
import net.brutex.xservices.types.MailMimeType; import net.brutex.xservices.types.MailMimeType;
import net.brutex.xservices.types.ReturnCode; import net.brutex.xservices.types.ReturnCode;
import net.brutex.xservices.types.ant.FileSetResource;
import net.brutex.xservices.util.BrutexNamespaces; import net.brutex.xservices.util.BrutexNamespaces;
import org.apache.cxf.aegis.type.java5.XmlElement; import org.apache.cxf.aegis.type.java5.XmlElement;
import org.apache.cxf.aegis.type.java5.XmlReturnType;
import org.apache.cxf.annotations.WSDLDocumentation; import org.apache.cxf.annotations.WSDLDocumentation;
/** /**

View File

@ -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;
}

View File

@ -19,11 +19,11 @@ import java.io.File;
import javax.jws.WebMethod; import javax.jws.WebMethod;
import javax.jws.WebParam; import javax.jws.WebParam;
import javax.jws.WebService; import javax.jws.WebService;
import net.brutex.xservices.types.ArchiveResource;
import net.brutex.xservices.types.CompressionType; 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.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.BrutexNamespaces;
import net.brutex.xservices.util.RunTask; import net.brutex.xservices.util.RunTask;
import net.brutex.xservices.util.UnRarTask; import net.brutex.xservices.util.UnRarTask;

View File

@ -18,48 +18,44 @@ package net.brutex.xservices.ws.impl;
import java.math.BigInteger; import java.math.BigInteger;
import java.text.ParseException; import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.GregorianCalendar; import java.util.GregorianCalendar;
import java.util.List;
import java.util.TimeZone; import java.util.TimeZone;
import javax.jws.WebService; import javax.jws.WebService;
import net.brutex.xservices.types.DateFormatType; 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.DateTimeUnits;
import net.brutex.xservices.types.TimeZoneType;
import net.brutex.xservices.util.BrutexNamespaces; import net.brutex.xservices.util.BrutexNamespaces;
import net.brutex.xservices.ws.DateService; import net.brutex.xservices.ws.DateService;
import net.brutex.xservices.ws.XServicesFault; import net.brutex.xservices.ws.XServicesFault;
/** /**
* @author Brian Rosenberger * @author Brian Rosenberger
* *
*/ */
@WebService( @WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES, endpointInterface = "net.brutex.xservices.ws.DateService", serviceName = DateService.SERVICE_NAME)
targetNamespace = BrutexNamespaces.WS_XSERVICES,
endpointInterface = "net.brutex.xservices.ws.DateService",
serviceName = DateService.SERVICE_NAME
)
public class DateServiceImpl implements DateService { public class DateServiceImpl implements DateService {
private static String ERR_INVALIDFORMAT = "Invalid format pattern."; private static String ERR_INVALIDFORMAT = "Invalid format pattern.";
private static String ERR_INVALIDTIMEZONE = "Invalid timezone."; private static String ERR_INVALIDTIMEZONE = "Invalid timezone.";
public GregorianCalendar getDate(String timezone) throws XServicesFault { public DateInfoType getDate() throws XServicesFault {
if (! isValidTimezone(timezone) ) { GregorianCalendar c = new GregorianCalendar();
String valid_ids = ""; DateInfoType dateinfo = new DateInfoType(c, TimeZone.getDefault());
String[] tid = TimeZone.getAvailableIDs(); return dateinfo;
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 DateInfoExtendedType getDateExtended() throws XServicesFault {
GregorianCalendar c = new GregorianCalendar();
DateInfoExtendedType dateinfo = new DateInfoExtendedType(c,
TimeZone.getDefault());
return dateinfo;
}
public BigInteger getTimestamp() { public BigInteger getTimestamp() {
Date d = new Date(); Date d = new Date();
@ -69,56 +65,61 @@ public class DateServiceImpl implements DateService {
public BigInteger getTimestamp2() { public BigInteger getTimestamp2() {
Date d = new Date(); Date d = new Date();
long l = d.getTime()/1000; long l = d.getTime() / 1000;
return new BigInteger(Long.toString(l)); return new BigInteger(Long.toString(l));
} }
public String getInTimezone(Date date, String timezone)
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)
throws XServicesFault { throws XServicesFault {
String result= null; if (!isValidTimezone(timezone))
try { throw new XServicesFault(ERR_INVALIDTIMEZONE);
SimpleDateFormat f = new SimpleDateFormat(format); TimeZone targetzone = TimeZone.getTimeZone(timezone);
result = f.format(cal.getTime()); String targetstring = DateFormatType.ISO8601.format(date, null, targetzone);
} catch (IllegalArgumentException e) { return targetstring;
throw new XServicesFault(ERR_INVALIDFORMAT + e.getMessage());
} }
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; return result;
} }
public Date parseDate(String s, DateFormatType format, String timezone)
public GregorianCalendar parseDate(String s, DateFormatType format, String timezone) throws XServicesFault { throws XServicesFault {
return parseDateAdvanced(s, format.format(), timezone); 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,
public GregorianCalendar parseDateAdvanced(String s, String format, String timezone) throws XServicesFault { String timezone) throws XServicesFault {
SimpleDateFormat f = null; SimpleDateFormat f = null;
Date date = null; Date date = null;
if(timezone==null | timezone.equals("")) timezone = TimeZone.getDefault().getID(); if (timezone == null | timezone.equals(""))
if(! isValidTimezone(timezone)) throw new XServicesFault(ERR_INVALIDTIMEZONE); timezone = TimeZone.getDefault().getID();
if (!isValidTimezone(timezone))
throw new XServicesFault(ERR_INVALIDTIMEZONE);
try { try {
f = new SimpleDateFormat(format); f = new SimpleDateFormat(format);
date = f.parse(s); date = f.parse(s);
} catch(IllegalArgumentException e) { } catch (IllegalArgumentException e) {
throw new XServicesFault(ERR_INVALIDFORMAT + e.getMessage()); throw new XServicesFault(ERR_INVALIDFORMAT + e.getMessage());
} catch (ParseException e) { } catch (ParseException e) {
throw new XServicesFault("Cannot parse date: "+ e.getMessage()); throw new XServicesFault("Cannot parse date: " + e.getMessage());
} }
GregorianCalendar cal = new GregorianCalendar(); GregorianCalendar cal = new GregorianCalendar();
cal.setTimeZone(TimeZone.getTimeZone(timezone)); cal.setTimeZone(TimeZone.getTimeZone(timezone));
@ -126,17 +127,15 @@ public class DateServiceImpl implements DateService {
return cal; return cal;
} }
public BigInteger dateTimeDiff(Date fromCal, Date toCal)
public BigInteger dateTimeDiff(GregorianCalendar fromCal, throws XServicesFault {
GregorianCalendar toCal) throws XServicesFault { long diff = toCal.getTime() - fromCal.getTime();
long diff = toCal.getTimeInMillis() - fromCal.getTimeInMillis();
BigInteger d = new BigInteger(String.valueOf(diff), 10); BigInteger d = new BigInteger(String.valueOf(diff), 10);
return d; return d;
} }
public BigInteger dateTimeDiff2(Date fromCal, Date toCal, DateTimeUnits unit)
public BigInteger dateTimeDiff2(GregorianCalendar fromCal, throws XServicesFault {
GregorianCalendar toCal, DateTimeUnits unit) throws XServicesFault {
BigInteger d = dateTimeDiff(fromCal, toCal); BigInteger d = dateTimeDiff(fromCal, toCal);
switch (unit) { switch (unit) {
case SECONDS: case SECONDS:
@ -150,13 +149,16 @@ public class DateServiceImpl implements DateService {
break; break;
case DAYS: case DAYS:
d = d.divide(new BigInteger("86400000")); d = d.divide(new BigInteger("86400000"));
break;
case YEARS:
d = d.divide(new BigInteger("31536000000"));
break;
} }
return d; return d;
} }
public GregorianCalendar dateAdd(GregorianCalendar cal, BigInteger value,
public GregorianCalendar dateAdd(GregorianCalendar cal, BigInteger value, DateTimeUnits unit) DateTimeUnits unit) throws XServicesFault {
throws XServicesFault {
switch (unit) { switch (unit) {
case SECONDS: case SECONDS:
cal.add(GregorianCalendar.SECOND, value.intValue()); cal.add(GregorianCalendar.SECOND, value.intValue());
@ -170,6 +172,9 @@ public class DateServiceImpl implements DateService {
case DAYS: case DAYS:
cal.add(GregorianCalendar.DAY_OF_MONTH, value.intValue()); cal.add(GregorianCalendar.DAY_OF_MONTH, value.intValue());
break; break;
case YEARS:
cal.add(GregorianCalendar.YEAR, value.intValue());
break;
default: default:
cal.add(GregorianCalendar.MILLISECOND, value.intValue()); cal.add(GregorianCalendar.MILLISECOND, value.intValue());
} }
@ -178,8 +183,8 @@ public class DateServiceImpl implements DateService {
private boolean isValidTimezone(String id) { private boolean isValidTimezone(String id) {
boolean yes = false; boolean yes = false;
for( String s: TimeZone.getAvailableIDs()) { for (String s : TimeZone.getAvailableIDs()) {
if(s.equals(id)) { if (s.equals(id)) {
yes = true; yes = true;
break; break;
} }
@ -187,4 +192,11 @@ public class DateServiceImpl implements DateService {
return yes; return yes;
} }
public List<TimeZoneType> getTimezones() {
List<TimeZoneType> output = new ArrayList<TimeZoneType>();
for (String s : TimeZone.getAvailableIDs()) {
output.add(new TimeZoneType(TimeZone.getTimeZone(s)));
}
return output;
}
} }

View File

@ -27,12 +27,12 @@ import javax.jws.WebMethod;
import javax.jws.WebParam; import javax.jws.WebParam;
import javax.jws.WebService; 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.ReplacePattern;
import net.brutex.xservices.types.ReturnCode; 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.BrutexNamespaces;
import net.brutex.xservices.util.RunTask; import net.brutex.xservices.util.RunTask;
import net.brutex.xservices.ws.FileService; import net.brutex.xservices.ws.FileService;

View File

@ -21,11 +21,11 @@ import java.util.Properties;
import java.util.UUID; import java.util.UUID;
import javax.jws.WebService; import javax.jws.WebService;
import net.brutex.xservices.types.FileSetResource;
import net.brutex.xservices.types.HostConnection; import net.brutex.xservices.types.HostConnection;
import net.brutex.xservices.types.HostinfoType; import net.brutex.xservices.types.HostinfoType;
import net.brutex.xservices.types.MailMimeType; import net.brutex.xservices.types.MailMimeType;
import net.brutex.xservices.types.ReturnCode; import net.brutex.xservices.types.ReturnCode;
import net.brutex.xservices.types.ant.FileSetResource;
import net.brutex.xservices.util.BrutexNamespaces; import net.brutex.xservices.util.BrutexNamespaces;
import net.brutex.xservices.util.RunTask; import net.brutex.xservices.util.RunTask;
import net.brutex.xservices.ws.MiscService; import net.brutex.xservices.ws.MiscService;

View File

@ -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
}
}

View File

@ -1,5 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project name="DateService" resourceRoot="" soapui-version="3.6.1" abortOnError="false" runType="SEQUENTIAL" xmlns:con="http://eviware.com/soapui/config"><con:settings/><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="DateServiceSoapBinding" type="wsdl" bindingName="{http://ws.xservices.brutex.net}DateServiceSoapBinding" soapVersion="1_1" anonymous="optional" definition="http://localhost:8080/XServices/DateService?wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="http://localhost:8080/XServices/DateService?wsdl"><con:part><con:url>http://localhost:8080/XServices/DateService?wsdl</con:url><con:content><![CDATA[<wsdl:definitions name="DateService" targetNamespace="http://ws.xservices.brutex.net" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://ws.xservices.brutex.net" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <con:soapui-project name="DateService" resourceRoot="" soapui-version="3.6.1" abortOnError="false" runType="SEQUENTIAL" xmlns:con="http://eviware.com/soapui/config"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.actions.iface.tools.soapui.TestRunnerAction@values-local"><![CDATA[<xml-fragment xmlns:con="http://eviware.com/soapui/config">
<con:entry key="Global Properties" value=""/>
<con:entry key="TestSuite" value="Basic Call Tests"/>
<con:entry key="Report to Generate" value=""/>
<con:entry key="Password" value=""/>
<con:entry key="soapui-setings.xml Password" value=""/>
<con:entry key="TestRunner Path" value=""/>
<con:entry key="Tool Args" value=""/>
<con:entry key="Ignore Errors" value="false"/>
<con:entry key="Host:Port" value=""/>
<con:entry key="WSS Password Type" value=""/>
<con:entry key="Save Project" value="true"/>
<con:entry key="Enable UI" value="false"/>
<con:entry key="System Properties" value=""/>
<con:entry key="Domain" value=""/>
<con:entry key="Coverage Report" value="false"/>
<con:entry key="Export JUnit Results" value="false"/>
<con:entry key="Open Report" value="false"/>
<con:entry key="Project Properties" value=""/>
<con:entry key="Project Password" value=""/>
<con:entry key="Export All" value="false"/>
<con:entry key="Report Format(s)" value=""/>
<con:entry key="TestCase" value="getDate"/>
<con:entry key="Print Report" value="false"/>
<con:entry key="Username" value=""/>
<con:entry key="Root Folder" value=""/>
<con:entry key="Save After" value="false"/>
<con:entry key="Add Settings" value="false"/>
<con:entry key="Endpoint" value=""/>
</xml-fragment>]]></con:setting></con:settings><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="DateServiceSoapBinding" type="wsdl" bindingName="{http://ws.xservices.brutex.net}DateServiceSoapBinding" soapVersion="1_1" anonymous="optional" definition="http://localhost:8080/XServices/DateService?wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="http://localhost:8080/XServices/DateService?wsdl"><con:part><con:url>http://localhost:8080/XServices/DateService?wsdl</con:url><con:content><![CDATA[<wsdl:definitions name="DateService" targetNamespace="http://ws.xservices.brutex.net" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://ws.xservices.brutex.net" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:documentation>/* <wsdl:documentation>/*
* Copyright 2010 Brian Rosenberger (Brutex Network) * Copyright 2010 Brian Rosenberger (Brutex Network)
* *
@ -28,15 +57,29 @@
<xs:element name="formatDateAdvancedResponse" type="tns:formatDateAdvancedResponse"/> <xs:element name="formatDateAdvancedResponse" type="tns:formatDateAdvancedResponse"/>
<xs:element name="formatDateResponse" type="tns:formatDateResponse"/> <xs:element name="formatDateResponse" type="tns:formatDateResponse"/>
<xs:element name="getDate" type="tns:getDate"/> <xs:element name="getDate" type="tns:getDate"/>
<xs:element name="getDateExtended" type="tns:getDateExtended"/>
<xs:element name="getDateExtendedResponse" type="tns:getDateExtendedResponse"/>
<xs:element name="getDateResponse" type="tns:getDateResponse"/> <xs:element name="getDateResponse" type="tns:getDateResponse"/>
<xs:element name="getInTimezone" type="tns:getInTimezone"/> <xs:element name="getInTimezone" type="tns:getInTimezone"/>
<xs:element name="getInTimezoneResponse" type="tns:getInTimezoneResponse"/> <xs:element name="getInTimezoneResponse" type="tns:getInTimezoneResponse"/>
<xs:element name="getTimestamp" type="tns:getTimestamp"/> <xs:element name="getTimestamp" type="tns:getTimestamp"/>
<xs:element name="getTimestamp2" type="tns:getTimestamp2"/>
<xs:element name="getTimestamp2Response" type="tns:getTimestamp2Response"/>
<xs:element name="getTimestampResponse" type="tns:getTimestampResponse"/> <xs:element name="getTimestampResponse" type="tns:getTimestampResponse"/>
<xs:element name="getTimezones" type="tns:getTimezones"/>
<xs:element name="getTimezonesResponse" type="tns:getTimezonesResponse"/>
<xs:element name="parseDate" type="tns:parseDate"/> <xs:element name="parseDate" type="tns:parseDate"/>
<xs:element name="parseDateAdvanced" type="tns:parseDateAdvanced"/> <xs:element name="parseDateAdvanced" type="tns:parseDateAdvanced"/>
<xs:element name="parseDateAdvancedResponse" type="tns:parseDateAdvancedResponse"/> <xs:element name="parseDateAdvancedResponse" type="tns:parseDateAdvancedResponse"/>
<xs:element name="parseDateResponse" type="tns:parseDateResponse"/> <xs:element name="parseDateResponse" type="tns:parseDateResponse"/>
<xs:complexType name="getTimestamp2">
<xs:sequence/>
</xs:complexType>
<xs:complexType name="getTimestamp2Response">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:integer"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="dateAdd"> <xs:complexType name="dateAdd">
<xs:sequence> <xs:sequence>
<xs:element name="datetime" type="xs:dateTime"/> <xs:element name="datetime" type="xs:dateTime"/>
@ -50,13 +93,18 @@
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
<xs:complexType name="getDate"> <xs:complexType name="getDate">
<xs:sequence> <xs:sequence/>
<xs:element minOccurs="0" name="timezone" type="xs:string"/>
</xs:sequence>
</xs:complexType> </xs:complexType>
<xs:complexType name="getDateResponse"> <xs:complexType name="getDateResponse">
<xs:sequence> <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:dateTime"/> <xs:element minOccurs="0" name="return" type="tns:DateInfoType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="DateInfoType">
<xs:sequence>
<xs:element minOccurs="0" name="iso8601date" type="xs:dateTime"/>
<xs:element minOccurs="0" name="rfc822date" type="xs:string"/>
<xs:element name="timestamp" type="xs:long"/>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
<xs:complexType name="getInTimezone"> <xs:complexType name="getInTimezone">
@ -67,7 +115,7 @@
</xs:complexType> </xs:complexType>
<xs:complexType name="getInTimezoneResponse"> <xs:complexType name="getInTimezoneResponse">
<xs:sequence> <xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:dateTime"/> <xs:element minOccurs="0" name="return" type="xs:string"/>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
<xs:complexType name="formatDate"> <xs:complexType name="formatDate">
@ -81,11 +129,45 @@
<xs:element minOccurs="0" name="return" type="xs:string"/> <xs:element minOccurs="0" name="return" type="xs:string"/>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
<xs:complexType name="getTimezones">
<xs:sequence/>
</xs:complexType>
<xs:complexType name="getTimezonesResponse">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="tns:timezone"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="timezone">
<xs:sequence>
<xs:element minOccurs="0" name="displayname" type="xs:string"/>
<xs:element minOccurs="0" name="id" type="xs:string"/>
<xs:element name="offset" type="xs:long"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="getDateExtended">
<xs:sequence/>
</xs:complexType>
<xs:complexType name="getDateExtendedResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="tns:dateInfoExtendedType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="dateInfoExtendedType">
<xs:complexContent>
<xs:extension base="tns:DateInfoType">
<xs:sequence>
<xs:element minOccurs="0" name="format1" type="xs:string"/>
<xs:element minOccurs="0" name="format2" type="xs:string"/>
<xs:element minOccurs="0" name="format3" type="xs:string"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="dateTimeDiff2"> <xs:complexType name="dateTimeDiff2">
<xs:sequence> <xs:sequence>
<xs:element name="fromDateTime" type="xs:dateTime"/> <xs:element name="fromDateTime" type="xs:dateTime"/>
<xs:element name="toDateTime" type="xs:dateTime"/> <xs:element name="toDateTime" type="xs:dateTime"/>
<xs:element minOccurs="0" name="PARAM_UNIT" type="tns:dateTimeUnits"/> <xs:element minOccurs="0" name="unit" type="tns:dateTimeUnits"/>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
<xs:complexType name="dateTimeDiff2Response"> <xs:complexType name="dateTimeDiff2Response">
@ -154,13 +236,16 @@
<xs:enumeration value="minutes"/> <xs:enumeration value="minutes"/>
<xs:enumeration value="hours"/> <xs:enumeration value="hours"/>
<xs:enumeration value="days"/> <xs:enumeration value="days"/>
<xs:enumeration value="years"/>
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="dateFormatType"> <xs:simpleType name="dateFormatType">
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:enumeration value="ISO 8601"/> <xs:enumeration value="ISO 8601"/>
<xs:enumeration value="yyyy/mm/dd"/> <xs:enumeration value="RFC 822"/>
<xs:enumeration value="dd.mm.yyyy"/> <xs:enumeration value="DateOnly-slashed"/>
<xs:enumeration value="DateOnly-dotted"/>
<xs:enumeration value="DateOnly-dashed"/>
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
<xs:complexType name="XServicesFault"> <xs:complexType name="XServicesFault">
@ -181,17 +266,44 @@
<wsdl:message name="getDate"> <wsdl:message name="getDate">
<wsdl:part element="tns:getDate" name="parameters"></wsdl:part> <wsdl:part element="tns:getDate" name="parameters"></wsdl:part>
</wsdl:message> </wsdl:message>
<wsdl:message name="getTimestamp"> <wsdl:message name="getTimezonesResponse">
<wsdl:part element="tns:getTimestamp" name="parameters"></wsdl:part> <wsdl:part element="tns:getTimezonesResponse" name="parameters"></wsdl:part>
</wsdl:message> </wsdl:message>
<wsdl:message name="parseDateAdvancedResponse"> <wsdl:message name="getInTimezoneResponse">
<wsdl:part element="tns:parseDateAdvancedResponse" name="parameters"></wsdl:part> <wsdl:part element="tns:getInTimezoneResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="parseDateAdvanced">
<wsdl:part element="tns:parseDateAdvanced" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="getTimestamp2">
<wsdl:part element="tns:getTimestamp2" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="formatDateResponse">
<wsdl:part element="tns:formatDateResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="getDateExtendedResponse">
<wsdl:part element="tns:getDateExtendedResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="dateTimeDiff2">
<wsdl:part element="tns:dateTimeDiff2" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="getTimestampResponse">
<wsdl:part element="tns:getTimestampResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="dateAddResponse">
<wsdl:part element="tns:dateAddResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="getDateExtended">
<wsdl:part element="tns:getDateExtended" name="parameters"></wsdl:part>
</wsdl:message> </wsdl:message>
<wsdl:message name="formatDateAdvanced"> <wsdl:message name="formatDateAdvanced">
<wsdl:part element="tns:formatDateAdvanced" name="parameters"></wsdl:part> <wsdl:part element="tns:formatDateAdvanced" name="parameters"></wsdl:part>
</wsdl:message> </wsdl:message>
<wsdl:message name="parseDateResponse"> <wsdl:message name="parseDateAdvancedResponse">
<wsdl:part element="tns:parseDateResponse" name="parameters"></wsdl:part> <wsdl:part element="tns:parseDateAdvancedResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="getTimestamp">
<wsdl:part element="tns:getTimestamp" name="parameters"></wsdl:part>
</wsdl:message> </wsdl:message>
<wsdl:message name="getDateResponse"> <wsdl:message name="getDateResponse">
<wsdl:part element="tns:getDateResponse" name="parameters"></wsdl:part> <wsdl:part element="tns:getDateResponse" name="parameters"></wsdl:part>
@ -199,46 +311,42 @@
<wsdl:message name="formatDateAdvancedResponse"> <wsdl:message name="formatDateAdvancedResponse">
<wsdl:part element="tns:formatDateAdvancedResponse" name="parameters"></wsdl:part> <wsdl:part element="tns:formatDateAdvancedResponse" name="parameters"></wsdl:part>
</wsdl:message> </wsdl:message>
<wsdl:message name="parseDateResponse">
<wsdl:part element="tns:parseDateResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="parseDate"> <wsdl:message name="parseDate">
<wsdl:part element="tns:parseDate" name="parameters"></wsdl:part> <wsdl:part element="tns:parseDate" name="parameters"></wsdl:part>
</wsdl:message> </wsdl:message>
<wsdl:message name="getInTimezoneResponse">
<wsdl:part element="tns:getInTimezoneResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="dateTimeDiff2Response"> <wsdl:message name="dateTimeDiff2Response">
<wsdl:part element="tns:dateTimeDiff2Response" name="parameters"></wsdl:part> <wsdl:part element="tns:dateTimeDiff2Response" name="parameters"></wsdl:part>
</wsdl:message> </wsdl:message>
<wsdl:message name="parseDateAdvanced">
<wsdl:part element="tns:parseDateAdvanced" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="XServicesFault"> <wsdl:message name="XServicesFault">
<wsdl:part element="tns:XServicesFault" name="XServicesFault"></wsdl:part> <wsdl:part element="tns:XServicesFault" name="XServicesFault"></wsdl:part>
</wsdl:message> </wsdl:message>
<wsdl:message name="getTimestamp2Response">
<wsdl:part element="tns:getTimestamp2Response" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="formatDate"> <wsdl:message name="formatDate">
<wsdl:part element="tns:formatDate" name="parameters"></wsdl:part> <wsdl:part element="tns:formatDate" name="parameters"></wsdl:part>
</wsdl:message> </wsdl:message>
<wsdl:message name="formatDateResponse">
<wsdl:part element="tns:formatDateResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="dateTimeDiff"> <wsdl:message name="dateTimeDiff">
<wsdl:part element="tns:dateTimeDiff" name="parameters"></wsdl:part> <wsdl:part element="tns:dateTimeDiff" name="parameters"></wsdl:part>
</wsdl:message> </wsdl:message>
<wsdl:message name="getTimestampResponse">
<wsdl:part element="tns:getTimestampResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:message name="getInTimezone"> <wsdl:message name="getInTimezone">
<wsdl:part element="tns:getInTimezone" name="parameters"></wsdl:part> <wsdl:part element="tns:getInTimezone" name="parameters"></wsdl:part>
</wsdl:message> </wsdl:message>
<wsdl:message name="dateTimeDiff2"> <wsdl:message name="getTimezones">
<wsdl:part element="tns:dateTimeDiff2" name="parameters"></wsdl:part> <wsdl:part element="tns:getTimezones" name="parameters"></wsdl:part>
</wsdl:message> </wsdl:message>
<wsdl:message name="dateTimeDiffResponse"> <wsdl:message name="dateTimeDiffResponse">
<wsdl:part element="tns:dateTimeDiffResponse" name="parameters"></wsdl:part> <wsdl:part element="tns:dateTimeDiffResponse" name="parameters"></wsdl:part>
</wsdl:message> </wsdl:message>
<wsdl:message name="dateAddResponse">
<wsdl:part element="tns:dateAddResponse" name="parameters"></wsdl:part>
</wsdl:message>
<wsdl:portType name="DateService"> <wsdl:portType name="DateService">
<wsdl:operation name="getTimestamp2">
<wsdl:documentation>Get seconds since 01.01.1970 (Unix timestap).</wsdl:documentation>
<wsdl:input message="tns:getTimestamp2" name="getTimestamp2"></wsdl:input>
<wsdl:output message="tns:getTimestamp2Response" name="getTimestamp2Response"></wsdl:output>
</wsdl:operation>
<wsdl:operation name="dateAdd"> <wsdl:operation name="dateAdd">
<wsdl:documentation>Add or substract a time span from a date.</wsdl:documentation> <wsdl:documentation>Add or substract a time span from a date.</wsdl:documentation>
<wsdl:input message="tns:dateAdd" name="dateAdd"></wsdl:input> <wsdl:input message="tns:dateAdd" name="dateAdd"></wsdl:input>
@ -261,6 +369,17 @@
<wsdl:output message="tns:formatDateResponse" name="formatDateResponse"></wsdl:output> <wsdl:output message="tns:formatDateResponse" name="formatDateResponse"></wsdl:output>
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> <wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault>
</wsdl:operation> </wsdl:operation>
<wsdl:operation name="getTimezones">
<wsdl:input message="tns:getTimezones" name="getTimezones"></wsdl:input>
<wsdl:output message="tns:getTimezonesResponse" name="getTimezonesResponse"></wsdl:output>
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault>
</wsdl:operation>
<wsdl:operation name="getDateExtended">
<wsdl:documentation>Get current date and time in different formats.</wsdl:documentation>
<wsdl:input message="tns:getDateExtended" name="getDateExtended"></wsdl:input>
<wsdl:output message="tns:getDateExtendedResponse" name="getDateExtendedResponse"></wsdl:output>
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault>
</wsdl:operation>
<wsdl:operation name="dateTimeDiff2"> <wsdl:operation name="dateTimeDiff2">
<wsdl:documentation>Get elapsed time between to dates.</wsdl:documentation> <wsdl:documentation>Get elapsed time between to dates.</wsdl:documentation>
<wsdl:input message="tns:dateTimeDiff2" name="dateTimeDiff2"></wsdl:input> <wsdl:input message="tns:dateTimeDiff2" name="dateTimeDiff2"></wsdl:input>
@ -273,6 +392,7 @@
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> <wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault>
</wsdl:operation> </wsdl:operation>
<wsdl:operation name="parseDate"> <wsdl:operation name="parseDate">
<wsdl:documentation>Converts a string into date using pre-defined date formats.</wsdl:documentation>
<wsdl:input message="tns:parseDate" name="parseDate"></wsdl:input> <wsdl:input message="tns:parseDate" name="parseDate"></wsdl:input>
<wsdl:output message="tns:parseDateResponse" name="parseDateResponse"></wsdl:output> <wsdl:output message="tns:parseDateResponse" name="parseDateResponse"></wsdl:output>
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> <wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault>
@ -295,6 +415,15 @@
</wsdl:portType> </wsdl:portType>
<wsdl:binding name="DateServiceSoapBinding" type="tns:DateService"> <wsdl:binding name="DateServiceSoapBinding" type="tns:DateService">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getTimestamp2">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="getTimestamp2">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getTimestamp2Response">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="dateAdd"> <wsdl:operation name="dateAdd">
<soap:operation soapAction="" style="document"/> <soap:operation soapAction="" style="document"/>
<wsdl:input name="dateAdd"> <wsdl:input name="dateAdd">
@ -343,6 +472,30 @@
<soap:fault name="XServicesFault" use="literal"/> <soap:fault name="XServicesFault" use="literal"/>
</wsdl:fault> </wsdl:fault>
</wsdl:operation> </wsdl:operation>
<wsdl:operation name="getTimezones">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="getTimezones">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getTimezonesResponse">
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="XServicesFault">
<soap:fault name="XServicesFault" use="literal"/>
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="getDateExtended">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="getDateExtended">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getDateExtendedResponse">
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="XServicesFault">
<soap:fault name="XServicesFault" use="literal"/>
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="dateTimeDiff2"> <wsdl:operation name="dateTimeDiff2">
<soap:operation soapAction="" style="document"/> <soap:operation soapAction="" style="document"/>
<wsdl:input name="dateTimeDiff2"> <wsdl:input name="dateTimeDiff2">
@ -421,8 +574,7 @@
</wsdl:definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint></con:endpoints><con:operation isOneWay="false" action="" name="getDate" bindingOperationName="getDate" type="Request-Response" outputName="getDateResponse" inputName="getDate" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net"> </wsdl:definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint></con:endpoints><con:operation isOneWay="false" action="" name="getDate" bindingOperationName="getDate" type="Request-Response" outputName="getDateResponse" inputName="getDate" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/> <soapenv:Header/>
<soapenv:Body> <soapenv:Body>
<ws:getDate> <ws:getDate/>
</ws:getDate>
</soapenv:Body> </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/getDate"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="getTimestamp" bindingOperationName="getTimestamp" type="Request-Response" outputName="getTimestampResponse" inputName="getTimestamp" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net"> </soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/getDate"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="getTimestamp" bindingOperationName="getTimestamp" type="Request-Response" outputName="getTimestampResponse" inputName="getTimestamp" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/> <soapenv:Header/>
@ -433,16 +585,24 @@
<soapenv:Header/> <soapenv:Header/>
<soapenv:Body> <soapenv:Body>
<ws:getInTimezone> <ws:getInTimezone>
<datetime>2011-05-30T16:05:36-11:00</datetime> <datetime>2012-01-19T21:05:58.940+09:00</datetime>
<timezone>Europe/Amsterdam</timezone> <timezone>Pacific/Honolulu</timezone>
</ws:getInTimezone>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/getInTimezone"/><con:wsrmConfig version="1.2"/></con:call><con:call name="Copy of Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:getInTimezone>
<datetime>2012-01-19T21:05:58.940+09:00</datetime>
<timezone>UTC</timezone>
</ws:getInTimezone> </ws:getInTimezone>
</soapenv:Body> </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/getInTimezone"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="formatDate" bindingOperationName="formatDate" type="Request-Response" outputName="formatDateResponse" inputName="formatDate" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net"> </soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/getInTimezone"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="formatDate" bindingOperationName="formatDate" type="Request-Response" outputName="formatDateResponse" inputName="formatDate" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/> <soapenv:Header/>
<soapenv:Body> <soapenv:Body>
<ws:formatDate> <ws:formatDate>
<datetime>2010-06-15Z</datetime> <datetime>2012-01-19T21:05:58.940+09:00</datetime>
<format>ISO 8601</format> <format>ISO8601</format>
</ws:formatDate> </ws:formatDate>
</soapenv:Body> </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/formatDate"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="formatDateAdvanced" bindingOperationName="formatDateAdvanced" type="Request-Response" outputName="formatDateAdvancedResponse" inputName="formatDateAdvanced" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net"> </soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/formatDate"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="formatDateAdvanced" bindingOperationName="formatDateAdvanced" type="Request-Response" outputName="formatDateAdvancedResponse" inputName="formatDateAdvanced" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
@ -457,24 +617,36 @@
<soapenv:Header/> <soapenv:Header/>
<soapenv:Body> <soapenv:Body>
<ws:parseDate> <ws:parseDate>
<datetime>30.05..2011</datetime> <datetime>30.04.2012</datetime>
<format>dd.mm.yyyy</format> <format>DateOnly-dotted</format>
<!--Optional:-->
<timezone></timezone>
</ws:parseDate> </ws:parseDate>
</soapenv:Body> </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/parseDate"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="parseDateAdvanced" bindingOperationName="parseDateAdvanced" type="Request-Response" outputName="parseDateAdvancedResponse" inputName="parseDateAdvanced" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net"> </soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/parseDate"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="parseDateAdvanced" bindingOperationName="parseDateAdvanced" type="Request-Response" outputName="parseDateAdvancedResponse" inputName="parseDateAdvanced" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/> <soapenv:Header/>
<soapenv:Body> <soapenv:Body>
<ws:parseDateAdvanced> <ws:parseDateAdvanced>
<datetime>?</datetime> <datetime>12.4.2012 um 23:00 Uhr</datetime>
<format>?</format> <format>dd.M.yyyy 'um' hh:mm 'Uhr'</format>
<!--Optional:-->
<timezone>Europe/Berlin</timezone>
</ws:parseDateAdvanced> </ws:parseDateAdvanced>
</soapenv:Body> </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/parseDateAdvanced"/></con:call></con:operation><con:operation isOneWay="false" action="" name="dateTimeDiff" bindingOperationName="dateTimeDiff" type="Request-Response" outputName="dateTimeDiffResponse" inputName="dateTimeDiff" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net"> </soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/parseDateAdvanced"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="dateTimeDiff" bindingOperationName="dateTimeDiff" type="Request-Response" outputName="dateTimeDiffResponse" inputName="dateTimeDiff" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/> <soapenv:Header/>
<soapenv:Body> <soapenv:Body>
<ws:dateTimeDiff> <ws:dateTimeDiff>
<fromDateTime>2011-05-24T19:59:29.233+02:00</fromDateTime> <ws:fromDateTime>2011-05-24T19:59:29+02:00</ws:fromDateTime>
<toDateTime>2011-05-24T19:59:34.233+03:00</toDateTime> <ws:toDateTime>2012-05-24T19:59:34+03:00</ws:toDateTime>
</ws:dateTimeDiff>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/dateTimeDiff"/><con:wsrmConfig version="1.2"/></con:call><con:call name="Request 2"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:dateTimeDiff>
<fromDateTime>2012-01-23</fromDateTime>
<toDateTime>2012-06-06T08:45:00+01:00</toDateTime>
</ws:dateTimeDiff> </ws:dateTimeDiff>
</soapenv:Body> </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/dateTimeDiff"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="dateTimeDiff2" bindingOperationName="dateTimeDiff2" type="Request-Response" outputName="dateTimeDiff2Response" inputName="dateTimeDiff2" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net"> </soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/dateTimeDiff"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="dateTimeDiff2" bindingOperationName="dateTimeDiff2" type="Request-Response" outputName="dateTimeDiff2Response" inputName="dateTimeDiff2" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
@ -489,9 +661,220 @@
<soapenv:Header/> <soapenv:Header/>
<soapenv:Body> <soapenv:Body>
<ws:dateAdd> <ws:dateAdd>
<datetime>2012-05-24T19:59:29.233+02:00</datetime> <datetime>2012-05-24T19:59:29.233+0200</datetime>
<value>365</value> <value>365</value>
<unit>hours</unit> <unit>hours</unit>
</ws:dateAdd> </ws:dateAdd>
</soapenv:Body> </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/dateAdd"/><con:wsrmConfig version="1.2"/></con:call></con:operation></con:interface><con:properties/><con:wssContainer/></con:soapui-project> </soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/dateAdd"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="getTimestamp2" bindingOperationName="getTimestamp2" type="Request-Response" outputName="getTimestamp2Response" inputName="getTimestamp2" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:getTimestamp2/>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/getTimestamp2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="getTimezones" bindingOperationName="getTimezones" type="Request-Response" outputName="getTimezonesResponse" inputName="getTimezones" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:getTimezones/>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/getTimezones"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="getDateExtended" bindingOperationName="getDateExtended" type="Request-Response" outputName="getDateExtendedResponse" inputName="getDateExtended" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:getDateExtended/>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/DateService/getDateExtended"/><con:wsrmConfig version="1.2"/></con:call></con:operation></con:interface><con:testSuite name="Basic Call Tests"><con:settings/><con:runType>PARALLELL</con:runType><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="true" maxResults="0" name="Pull WSDL" searchProperties="true" id="0244ade4-dcf3-4012-bc98-b7fd0ebb1774"><con:settings/><con:testStep type="httprequest" name="http://localhost:8080/XServices/DateServices?wsdl"><con:settings/><con:config method="GET" xsi:type="con:HttpRequest" name="http://localhost:8080/XServices/DateServices?wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:endpoint>http://localhost:8080/XServices/DateServices?wsdl</con:endpoint><con:request/><con:assertion type="HTTP Download all resources" name="HTTP Download all resources"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters/></con:config></con:testStep><con:testStep type="httprequest" name="Http Test Step 2 [/XServices/DateServices]"><con:settings/><con:config method="GET" xsi:type="con:HttpRequest" name="Http Test Step 2 [/XServices/DateServices]" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><![CDATA[<xml-fragment xmlns:con="http://eviware.com/soapui/config">
<con:entry key="Accept-Language" value="en-us,en;q=0.5"/>
<con:entry key="Host" value="localhost:8080"/>
<con:entry key="Accept-Charset" value="ISO-8859-1,utf-8;q=0.7,*;q=0.7"/>
<con:entry key="Accept-Encoding" value="gzip,deflate"/>
<con:entry key="User-Agent" value="Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2) Gecko"/>
<con:entry key="Accept" value="text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"/>
</xml-fragment>]]></con:setting></con:settings><con:endpoint>http://localhost:8080/XServices/DateServices</con:endpoint><con:request/><con:parameters><con:parameter><con:name>wsdl</con:name><con:value/><con:style>QUERY</con:style><con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type><con:default/><con:description xsi:nil="true"/></con:parameter></con:parameters></con:config></con:testStep><con:properties/></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="getDate" searchProperties="true" id="824f4cc3-c144-45d5-86e0-d38538bc453c"><con:settings/><con:testStep type="request" name="Date Request"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>getDate</con:operation><con:request name="Date Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:getDate/>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="Date Extended Request"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>getDateExtended</con:operation><con:request name="Date Extended Request"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:getDateExtended/>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="Timestamp"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>getTimestamp</con:operation><con:request name="Timestamp"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:getTimestamp/>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="TimeZones"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>getTimezones</con:operation><con:request name="TimeZones"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:getTimezones/>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="Timestamp2"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>getTimestamp2</con:operation><con:request name="Timestamp2"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:getTimestamp2/>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:loadTest name="Basic Load"><con:settings><con:setting id="HttpSettings@close-connections">false</con:setting></con:settings><con:threadCount>5</con:threadCount><con:startDelay>0</con:startDelay><con:sampleInterval>250</con:sampleInterval><con:calculateTPSOnTimePassed>true</con:calculateTPSOnTimePassed><con:resetStatisticsOnThreadCountChange>true</con:resetStatisticsOnThreadCountChange><con:historyLimit>-1</con:historyLimit><con:testLimit>60</con:testLimit><con:limitType>TIME</con:limitType><con:loadStrategy><con:type>Simple</con:type></con:loadStrategy><con:assertion type="Step Status" name="Step Status"/><con:maxAssertionErrors>100</con:maxAssertionErrors><con:cancelExcessiveThreads>true</con:cancelExcessiveThreads><con:strategyInterval>500</con:strategyInterval></con:loadTest><con:properties><con:property><con:name>Loops</con:name><con:value>0</con:value></con:property></con:properties></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="Parse and Format" searchProperties="true" id="5731f78f-5f0b-4a86-9ec1-fe7c7825e91c"><con:settings/><con:testStep type="request" name="formatDate ISO8601"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>formatDate</con:operation><con:request name="formatDate ISO8601"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:formatDate>
<datetime>2012-01-23T13:05:20+05:30</datetime>
<format>ISO 8601</format>
</ws:formatDate>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="formatDate RFC622"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>formatDate</con:operation><con:request name="formatDate RFC622"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:formatDate>
<datetime>2012-01-23T13:05:20+05:30</datetime>
<format>RFC 822</format>
</ws:formatDate>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="formatDate DateOnly-dashed"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>formatDate</con:operation><con:request name="formatDate DateOnly-dashed"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:formatDate>
<datetime>2012-01-23T13:05:20+05:30</datetime>
<format>DateOnly-dashed</format>
</ws:formatDate>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="formatDate DateOnly-dotted"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>formatDate</con:operation><con:request name="formatDate DateOnly-dotted"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:formatDate>
<datetime>2012-01-23T13:05:20+05:30</datetime>
<format>DateOnly-dotted</format>
</ws:formatDate>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="formatDate advanced"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>formatDateAdvanced</con:operation><con:request name="formatDate advanced"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:formatDateAdvanced>
<datetime>2001-06-20T00:23:05Z</datetime>
<!--Uses locale of JVM -->
<format>'Year:' yyyy 'Week:' WW 'in Month:' MMMM</format>
</ws:formatDateAdvanced>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="formatDate DateOnly-slashed"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>formatDate</con:operation><con:request name="formatDate DateOnly-slashed"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:formatDate>
<datetime>2012-01-23T13:05:20+05:30</datetime>
<format>DateOnly-slashed</format>
</ws:formatDate>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="parse DateOnly dotted"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>parseDate</con:operation><con:request name="parse DateOnly dotted"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:parseDate>
<datetime>14.3.1946</datetime>
<format>DateOnly-dotted</format>
<!--Optional:-->
<timezone>Europe/Helsinki</timezone>
</ws:parseDate>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="parse Advanced"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>parseDateAdvanced</con:operation><con:request name="parse Advanced"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:parseDateAdvanced>
<datetime>Ich werde um 8:30 Uhr am 17.01.2012 da sein.</datetime>
<format>'Ich werde um' h:mm 'Uhr am' dd.MM.yyyy 'da sein.'</format>
<!--Optional:-->
<timezone>Europe/Berlin</timezone>
</ws:parseDateAdvanced>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="parse Advanced with Locale"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>parseDateAdvanced</con:operation><con:request name="parse Advanced with Locale"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:parseDateAdvanced>
<datetime>Im Juni am 4. Tag im Jahr 2014 ist ein Fest</datetime>
<format>'Im' MMMM 'am' d. 'Tag im Jahr' yyyy 'ist ein Fest'</format>
<!--Optional:-->
<timezone>Europe/Berlin</timezone>
</ws:parseDateAdvanced>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:loadTest name="Basic Load"><con:settings><con:setting id="HttpSettings@close-connections">false</con:setting></con:settings><con:threadCount>20</con:threadCount><con:startDelay>0</con:startDelay><con:sampleInterval>250</con:sampleInterval><con:calculateTPSOnTimePassed>true</con:calculateTPSOnTimePassed><con:resetStatisticsOnThreadCountChange>true</con:resetStatisticsOnThreadCountChange><con:historyLimit>-1</con:historyLimit><con:testLimit>180</con:testLimit><con:limitType>TIME</con:limitType><con:loadStrategy><con:type>Variance</con:type><con:config><interval>60000</interval><variance>0.5</variance></con:config></con:loadStrategy><con:assertion type="Step Status" name="Step Status"/><con:maxAssertionErrors>100</con:maxAssertionErrors><con:cancelExcessiveThreads>true</con:cancelExcessiveThreads><con:strategyInterval>500</con:strategyInterval></con:loadTest><con:properties/></con:testCase><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="Date Math" searchProperties="true" id="dfebf092-9cc3-45ea-b903-d212fc5515da"><con:settings/><con:testStep type="request" name="DateDiff forward"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>dateTimeDiff</con:operation><con:request name="DateDiff forward"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:dateTimeDiff>
<fromDateTime>2012-01-23</fromDateTime>
<toDateTime>2012-06-06T08:45:00+01:00</toDateTime>
</ws:dateTimeDiff>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DateDiff backwards"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>dateTimeDiff</con:operation><con:request name="DateDiff backwards"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:dateTimeDiff>
<fromDateTime>2012-06-06T08:45:00+01:00</fromDateTime>
<toDateTime>2012-01-23</toDateTime>
</ws:dateTimeDiff>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DateDiff days"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>dateTimeDiff2</con:operation><con:request name="DateDiff days"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:dateTimeDiff2>
<fromDateTime>1948-04-30T00:00:00Z</fromDateTime>
<toDateTime>2012-01-01T13:45:00Z</toDateTime>
<!--Optional:-->
<unit>days</unit>
</ws:dateTimeDiff2>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DateDiff years"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>dateTimeDiff2</con:operation><con:request name="DateDiff years"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:dateTimeDiff2>
<fromDateTime>1948-04-30T00:00:00Z</fromDateTime>
<toDateTime>2012-01-01T13:45:00Z</toDateTime>
<!--Optional:-->
<unit>years</unit>
</ws:dateTimeDiff2>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DateDiff minutes"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>dateTimeDiff2</con:operation><con:request name="DateDiff minutes"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:dateTimeDiff2>
<fromDateTime>1948-04-30T00:00:00Z</fromDateTime>
<toDateTime>2012-01-01T13:45:00Z</toDateTime>
<!--Optional:-->
<unit>minutes</unit>
</ws:dateTimeDiff2>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DateDiff milliseconds"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>dateTimeDiff2</con:operation><con:request name="DateDiff milliseconds"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:dateTimeDiff2>
<fromDateTime>1948-04-30T00:00:00Z</fromDateTime>
<toDateTime>2012-01-01T13:45:00Z</toDateTime>
<!--Optional:-->
<unit>milliseconds</unit>
</ws:dateTimeDiff2>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DateDiff seconds"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>dateTimeDiff2</con:operation><con:request name="DateDiff seconds"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:dateTimeDiff2>
<fromDateTime>1948-04-30T00:00:00Z</fromDateTime>
<toDateTime>2012-01-01T13:45:00Z</toDateTime>
<!--Optional:-->
<unit>seconds</unit>
</ws:dateTimeDiff2>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DateDiff milliseconds wide range"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>dateTimeDiff2</con:operation><con:request name="DateDiff milliseconds wide range"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:dateTimeDiff2>
<fromDateTime>0001-04-30T00:00:00Z</fromDateTime>
<toDateTime>9999-01-01T13:45:00Z</toDateTime>
<!--Optional:-->
<unit>milliseconds</unit>
</ws:dateTimeDiff2>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:testStep type="request" name="DateAdd"><con:settings/><con:config xsi:type="con:RequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>DateServiceSoapBinding</con:interface><con:operation>dateAdd</con:operation><con:request name="DateAdd"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/DateService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:dateAdd>
<datetime>2000-01-01</datetime>
<value>-50</value>
<unit>seconds</unit>
</ws:dateAdd>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"/><con:assertion type="Schema Compliance"><con:configuration/></con:assertion><con:assertion type="SOAP Fault Assertion"/><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508"/><con:wsrmConfig version="1.2"/></con:request></con:config></con:testStep><con:loadTest name="Basic Load"><con:settings><con:setting id="HttpSettings@close-connections">false</con:setting></con:settings><con:threadCount>30</con:threadCount><con:startDelay>0</con:startDelay><con:sampleInterval>250</con:sampleInterval><con:calculateTPSOnTimePassed>true</con:calculateTPSOnTimePassed><con:resetStatisticsOnThreadCountChange>true</con:resetStatisticsOnThreadCountChange><con:historyLimit>-1</con:historyLimit><con:testLimit>180</con:testLimit><con:limitType>TIME</con:limitType><con:loadStrategy><con:type>Burst</con:type><con:config><burstDelay>60000</burstDelay><burstDuration>10000</burstDuration></con:config></con:loadStrategy><con:assertion type="Step Status" name="Step Status"/><con:maxAssertionErrors>100</con:maxAssertionErrors><con:cancelExcessiveThreads>true</con:cancelExcessiveThreads><con:strategyInterval>500</con:strategyInterval></con:loadTest><con:properties/></con:testCase><con:properties/></con:testSuite><con:properties/><con:wssContainer/></con:soapui-project>

View File

@ -1,177 +1,137 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project name="MiscService" resourceRoot="" soapui-version="3.6.1" abortOnError="false" runType="SEQUENTIAL" xmlns:con="http://eviware.com/soapui/config"><con:settings/><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="MiscServiceSoapBinding" type="wsdl" bindingName="{http://ws.xservices.brutex.net}MiscServiceSoapBinding" soapVersion="1_1" anonymous="optional" definition="http://localhost:8080/XServices/MiscService?WSDL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="http://localhost:8080/XServices/MiscService?WSDL"><con:part><con:url>http://localhost:8080/XServices/MiscService?WSDL</con:url><con:content><![CDATA[<wsdl:definitions name="MiscService" targetNamespace="http://ws.xservices.brutex.net" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://ws.xservices.brutex.net" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <con:soapui-project name="MiscService" resourceRoot="" soapui-version="3.6.1" abortOnError="false" runType="SEQUENTIAL" xmlns:con="http://eviware.com/soapui/config"><con:settings/><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="MiscServiceSoapBinding" type="wsdl" bindingName="{http://ws.xservices.brutex.net}MiscServiceSoapBinding" soapVersion="1_1" anonymous="optional" definition="http://localhost:8080/XServices/MiscService?WSDL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="http://localhost:8080/XServices/MiscService?WSDL"><con:part><con:url>http://localhost:8080/XServices/MiscService?WSDL</con:url><con:content><![CDATA[<wsdl:definitions name="MiscService" targetNamespace="http://ws.xservices.brutex.net" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://ws.xservices.brutex.net" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types> <wsdl:types>
<xs:schema elementFormDefault="unqualified" targetNamespace="http://ws.xservices.brutex.net" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://ws.xservices.brutex.net" xmlns:ns0="http://types.xservices.brutex.net">
<xs:element name="antProperty" type="tns:antProperty"/> <xsd:import namespace="http://types.xservices.brutex.net"/>
<xs:element name="generateUUID" type="tns:generateUUID"/> <xsd:complexType name="FileSetType">
<xs:element name="generateUUIDResponse" type="tns:generateUUIDResponse"/> <xsd:sequence/>
<xs:element name="getHostinfo" type="tns:getHostinfo"/> </xsd:complexType>
<xs:element name="getHostinfoResponse" type="tns:getHostinfoResponse"/> <xsd:complexType name="hostinfo">
<xs:element name="getInfo" type="tns:getInfo"/> <xsd:sequence>
<xs:element name="getInfoResponse" type="tns:getInfoResponse"/> <xsd:element minOccurs="0" name="domain" nillable="true" type="xsd:string"/>
<xs:element name="sendMail" type="tns:sendMail"/> <xsd:element minOccurs="0" name="ip4" nillable="true" type="xsd:string"/>
<xs:element name="sendMailResponse" type="tns:sendMailResponse"/> <xsd:element minOccurs="0" name="ip6" nillable="true" type="xsd:string"/>
<xs:element name="sendMailSimple" type="tns:sendMailSimple"/> <xsd:element minOccurs="0" name="name" nillable="true" type="xsd:string"/>
<xs:element name="sendMailSimpleResponse" type="tns:sendMailSimpleResponse"/> </xsd:sequence>
<xs:element name="sendMailSimpleWithAttachment" type="tns:sendMailSimpleWithAttachment"/> </xsd:complexType>
<xs:element name="sendMailSimpleWithAttachmentResponse" type="tns:sendMailSimpleWithAttachmentResponse"/> <xsd:complexType name="ReturnCodeType">
<xs:element name="sleep" type="tns:sleep"/> <xsd:sequence>
<xs:element name="sleepResponse" type="tns:sleepResponse"/> <xsd:element minOccurs="0" name="stdOut" nillable="true" type="xsd:string"/>
<xs:complexType name="sendMailSimpleWithAttachment"> </xsd:sequence>
<xs:sequence> </xsd:complexType>
<xs:element minOccurs="0" name="mailhost" type="tns:connection"/> <xsd:element name="sendMailSimpleWithAttachment" type="tns:sendMailSimpleWithAttachment"/>
<xs:element minOccurs="0" name="from" type="xs:string"/> <xsd:complexType name="sendMailSimpleWithAttachment">
<xs:element minOccurs="0" name="to" type="xs:string"/> <xsd:sequence>
<xs:element minOccurs="0" name="subject" type="xs:string"/> <xsd:element name="mailhost" type="ns0:connection"/>
<xs:element minOccurs="0" name="message" type="xs:string"/> <xsd:element name="from" type="xsd:string"/>
<xs:element minOccurs="0" name="attachments" type="tns:FileSetType"/> <xsd:element name="to" type="xsd:string"/>
</xs:sequence> <xsd:element minOccurs="0" name="subject" nillable="true" type="xsd:string"/>
</xs:complexType> <xsd:element minOccurs="0" name="message" nillable="true" type="xsd:string"/>
<xs:complexType name="connection"> <xsd:element minOccurs="0" name="fileset" type="tns:FileSetType"/>
<xs:sequence> </xsd:sequence>
<xs:element name="hostname" type="xs:string"/> </xsd:complexType>
<xs:element name="port" type="xs:int"/> <xsd:element name="sendMailSimpleWithAttachmentResponse" type="tns:sendMailSimpleWithAttachmentResponse"/>
<xs:element minOccurs="0" name="user" type="xs:string"/> <xsd:complexType name="sendMailSimpleWithAttachmentResponse">
<xs:element minOccurs="0" name="password" type="xs:string"/> <xsd:sequence>
</xs:sequence> <xsd:element minOccurs="0" name="return" type="tns:ReturnCodeType"/>
</xs:complexType> </xsd:sequence>
<xs:complexType name="FileSetType"> </xsd:complexType>
<xs:sequence> <xsd:element name="sendMailSimple" type="tns:sendMailSimple"/>
<xs:element default="FILES" name="FileSetType" type="tns:resourcetype"/> <xsd:complexType name="sendMailSimple">
<xs:element name="source" type="xs:string"/> <xsd:sequence>
<xs:element name="filter" nillable="true" type="tns:patternSetType"/> <xsd:element name="mailhost" type="ns0:connection"/>
<xs:element default="" minOccurs="0" name="excludes" nillable="true" type="xs:string"/> <xsd:element name="from" type="xsd:string"/>
<xs:element default="true" name="casesensitive" type="xs:boolean"/> <xsd:element name="to" type="xsd:string"/>
</xs:sequence> <xsd:element minOccurs="0" name="subject" nillable="true" type="xsd:string"/>
</xs:complexType> <xsd:element minOccurs="0" name="message" nillable="true" type="xsd:string"/>
<xs:complexType name="patternSetType"> </xsd:sequence>
<xs:sequence> </xsd:complexType>
<xs:element default="**/*" maxOccurs="unbounded" minOccurs="0" name="include" type="tns:patternElement"/> <xsd:element name="sendMailSimpleResponse" type="tns:sendMailSimpleResponse"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="exclude" type="tns:patternElement"/> <xsd:complexType name="sendMailSimpleResponse">
<xs:element minOccurs="0" name="selector" nillable="true" type="tns:selectorType"/> <xsd:sequence>
</xs:sequence> <xsd:element minOccurs="0" name="return" type="tns:ReturnCodeType"/>
</xs:complexType> </xsd:sequence>
<xs:simpleType name="patternElement"> </xsd:complexType>
<xs:restriction base="xs:string"/> <xsd:element name="getHostinfo" type="tns:getHostinfo"/>
</xs:simpleType> <xsd:complexType name="getHostinfo">
<xs:complexType abstract="true" name="selectorType"> <xsd:sequence>
<xs:sequence> <xsd:element name="hostname" type="xsd:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="contains" nillable="true" type="tns:containsSelectorType"/> </xsd:sequence>
</xs:sequence> </xsd:complexType>
</xs:complexType> <xsd:element name="getHostinfoResponse" type="tns:getHostinfoResponse"/>
<xs:complexType name="containsSelectorType"> <xsd:complexType name="getHostinfoResponse">
<xs:sequence> <xsd:sequence>
<xs:element name="text" type="xs:string"/> <xsd:element minOccurs="0" name="return" type="tns:hostinfo"/>
<xs:element default="true" name="casesensitive" type="xs:boolean"/> </xsd:sequence>
<xs:element default="false" name="ignorewhitespace" type="xs:boolean"/> </xsd:complexType>
</xs:sequence> <xsd:element name="sendMail" type="tns:sendMail"/>
</xs:complexType> <xsd:complexType name="sendMail">
<xs:complexType name="sendMailSimpleWithAttachmentResponse"> <xsd:sequence>
<xs:sequence> <xsd:element name="mailhost" type="ns0:connection"/>
<xs:element minOccurs="0" name="return" type="tns:ReturnCodeType"/> <xsd:element name="from" type="xsd:string"/>
</xs:sequence> <xsd:element name="to" type="xsd:string"/>
</xs:complexType> <xsd:element minOccurs="0" name="cc" nillable="true" type="xsd:string"/>
<xs:complexType name="ReturnCodeType"> <xsd:element minOccurs="0" name="bcc" nillable="true" type="xsd:string"/>
<xs:sequence> <xsd:element minOccurs="0" name="subject" nillable="true" type="xsd:string"/>
<xs:element name="returnCode" type="xs:int"/> <xsd:element minOccurs="0" name="mimetype" nillable="true" type="ns0:MailMimeType"/>
<xs:element minOccurs="0" name="stdOut" type="xs:string"/> <xsd:element minOccurs="0" name="charset" nillable="true" type="xsd:string"/>
<xs:element minOccurs="0" name="stdErr" type="xs:string"/> <xsd:element minOccurs="0" name="message" nillable="true" type="xsd:string"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="propertyList" nillable="true" type="tns:antProperty"/> <xsd:element minOccurs="0" name="attachments" type="tns:FileSetType"/>
</xs:sequence> <xsd:element name="useSSL" type="xsd:boolean"/>
</xs:complexType> <xsd:element name="useStartTLS" type="xsd:boolean"/>
<xs:complexType name="antProperty"> </xsd:sequence>
<xs:sequence> </xsd:complexType>
<xs:element name="name" type="xs:string"/> <xsd:element name="sendMailResponse" type="tns:sendMailResponse"/>
<xs:element name="value" type="xs:string"/> <xsd:complexType name="sendMailResponse">
</xs:sequence> <xsd:sequence>
</xs:complexType> <xsd:element minOccurs="0" name="return" type="tns:ReturnCodeType"/>
<xs:complexType name="sendMailSimple"> </xsd:sequence>
<xs:sequence> </xsd:complexType>
<xs:element minOccurs="0" name="mailhost" type="tns:connection"/> <xsd:element name="sleep" type="tns:sleep"/>
<xs:element minOccurs="0" name="from" type="xs:string"/> <xsd:complexType name="sleep">
<xs:element minOccurs="0" name="to" type="xs:string"/> <xsd:sequence>
<xs:element minOccurs="0" name="subject" type="xs:string"/> <xsd:element name="minutes" type="xsd:int"/>
<xs:element minOccurs="0" name="message" type="xs:string"/> <xsd:element name="seconds" type="xsd:int"/>
</xs:sequence> </xsd:sequence>
</xs:complexType> </xsd:complexType>
<xs:complexType name="sendMailSimpleResponse"> <xsd:element name="sleepResponse" type="tns:sleepResponse"/>
<xs:sequence> <xsd:complexType name="sleepResponse">
<xs:element minOccurs="0" name="return" type="tns:ReturnCodeType"/> <xsd:sequence>
</xs:sequence> <xsd:element minOccurs="0" name="return" type="tns:ReturnCodeType"/>
</xs:complexType> </xsd:sequence>
<xs:complexType name="getHostinfo"> </xsd:complexType>
<xs:sequence> <xsd:element name="generateUUID" type="tns:generateUUID"/>
<xs:element minOccurs="0" name="hostname" type="xs:string"/> <xsd:complexType name="generateUUID">
</xs:sequence> <xsd:sequence/>
</xs:complexType> </xsd:complexType>
<xs:complexType name="getHostinfoResponse"> <xsd:element name="generateUUIDResponse" type="tns:generateUUIDResponse"/>
<xs:sequence> <xsd:complexType name="generateUUIDResponse">
<xs:element minOccurs="0" name="return" type="tns:ReturnCodeType"/> <xsd:sequence>
</xs:sequence> <xsd:element minOccurs="0" name="return" nillable="true" type="xsd:string"/>
</xs:complexType> </xsd:sequence>
<xs:complexType name="sendMail"> </xsd:complexType>
<xs:sequence> <xsd:element name="getInfo" type="tns:getInfo"/>
<xs:element minOccurs="0" name="mailhost" type="tns:connection"/> <xsd:complexType name="getInfo">
<xs:element minOccurs="0" name="from" type="xs:string"/> <xsd:sequence/>
<xs:element minOccurs="0" name="to" type="xs:string"/> </xsd:complexType>
<xs:element minOccurs="0" name="cc" type="xs:string"/> <xsd:element name="getInfoResponse" type="tns:getInfoResponse"/>
<xs:element minOccurs="0" name="bcc" type="xs:string"/> <xsd:complexType name="getInfoResponse">
<xs:element minOccurs="0" name="subject" type="xs:string"/> <xsd:sequence>
<xs:element minOccurs="0" name="mimetype" type="tns:mailMimeType"/> <xsd:element minOccurs="0" name="return" type="tns:ReturnCodeType"/>
<xs:element minOccurs="0" name="charset" type="xs:string"/> </xsd:sequence>
<xs:element minOccurs="0" name="message" type="xs:string"/> </xsd:complexType>
<xs:element minOccurs="0" name="attachments" type="tns:FileSetType"/> </xsd:schema>
<xs:element name="useSSL" type="xs:boolean"/> <xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://types.xservices.brutex.net" xmlns:tns="http://types.xservices.brutex.net">
<xs:element name="useStartTLS" type="xs:boolean"/> <xsd:complexType name="connection">
</xs:sequence> <xsd:sequence/>
</xs:complexType> </xsd:complexType>
<xs:complexType name="sendMailResponse"> <xsd:simpleType name="MailMimeType">
<xs:sequence> <xsd:restriction base="xsd:string">
<xs:element minOccurs="0" name="return" type="tns:ReturnCodeType"/> <xsd:enumeration value="PLAIN"/>
</xs:sequence> <xsd:enumeration value="HTML"/>
</xs:complexType> </xsd:restriction>
<xs:complexType name="sleep"> </xsd:simpleType>
<xs:sequence> </xsd:schema>
<xs:element name="minutes" type="xs:int"/>
<xs:element name="seconds" type="xs:int"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="sleepResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="tns:ReturnCodeType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="generateUUID">
<xs:sequence/>
</xs:complexType>
<xs:complexType name="generateUUIDResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="getInfo">
<xs:sequence/>
</xs:complexType>
<xs:complexType name="getInfoResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="tns:ReturnCodeType"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="resourcetype">
<xs:restriction base="xs:string">
<xs:enumeration value="FILES"/>
<xs:enumeration value="ZIP"/>
<xs:enumeration value="TAR"/>
<xs:enumeration value="GZTAR"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="mailMimeType">
<xs:restriction base="xs:string">
<xs:enumeration value="text/plain"/>
<xs:enumeration value="text/html"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
</wsdl:types> </wsdl:types>
<wsdl:message name="sendMailSimple"> <wsdl:message name="sendMailSimple">
<wsdl:part element="tns:sendMailSimple" name="parameters"></wsdl:part> <wsdl:part element="tns:sendMailSimple" name="parameters"></wsdl:part>
@ -324,7 +284,22 @@
<soap:address location="http://localhost:8080/XServices/MiscService"/> <soap:address location="http://localhost:8080/XServices/MiscService"/>
</wsdl:port> </wsdl:port>
</wsdl:service> </wsdl:service>
</wsdl:definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://localhost:8080/xservices/MiscService</con:endpoint><con:endpoint>http://localhost:8080/XServices/MiscService</con:endpoint></con:endpoints><con:operation isOneWay="false" action="" name="getHostinfo" bindingOperationName="getHostinfo" type="Request-Response" outputName="getHostinfoResponse" inputName="getHostinfo" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/></con:operation><con:operation isOneWay="false" action="" name="sendMail" bindingOperationName="sendMail" type="Request-Response" outputName="sendMailResponse" inputName="sendMail" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/MiscService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net"> </wsdl:definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://localhost:8080/xservices/MiscService</con:endpoint><con:endpoint>http://localhost:8080/XServices/MiscService</con:endpoint></con:endpoints><con:operation isOneWay="false" action="" name="getHostinfo" bindingOperationName="getHostinfo" type="Request-Response" outputName="getHostinfoResponse" inputName="getHostinfo" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/MiscService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:getHostinfo>
<!--Optional:-->
<hostname>de3433</hostname>
</ws:getHostinfo>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/MiscService/getHostinfo"/><con:wsrmConfig version="1.2"/></con:call><con:call name="Request 2"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/MiscService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:getHostinfo>
<ws:hostname>google.com</ws:hostname>
</ws:getHostinfo>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/MiscService/getHostinfo"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="sendMail" bindingOperationName="sendMail" type="Request-Response" outputName="sendMailResponse" inputName="sendMail" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/MiscService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/> <soapenv:Header/>
<soapenv:Body> <soapenv:Body>
<ws:sendMail> <ws:sendMail>
@ -332,7 +307,99 @@
<useStartTLS>0</useStartTLS> <useStartTLS>0</useStartTLS>
</ws:sendMail> </ws:sendMail>
</soapenv:Body> </soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/MiscService/sendMail"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="sendMailSimple" bindingOperationName="sendMailSimple" type="Request-Response" outputName="sendMailSimpleResponse" inputName="sendMailSimple" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/></con:operation><con:operation isOneWay="false" action="" name="sendMailSimpleWithAttachment" bindingOperationName="sendMailSimpleWithAttachment" type="Request-Response" outputName="sendMailSimpleWithAttachmentResponse" inputName="sendMailSimpleWithAttachment" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/></con:operation><con:operation isOneWay="false" action="" name="sleep" bindingOperationName="sleep" type="Request-Response" outputName="sleepResponse" inputName="sleep" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/MiscService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net"> </soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/MiscService/sendMail"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="sendMailSimple" bindingOperationName="sendMailSimple" type="Request-Response" outputName="sendMailSimpleResponse" inputName="sendMailSimple" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/xservices/MiscService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:sendMailSimple>
<!--Optional:-->
<ws:mailhost/>
<!--Optional:-->
<ws:from>?</ws:from>
<!--Optional:-->
<ws:to>?</ws:to>
<!--Optional:-->
<ws:subject>?</ws:subject>
<!--Optional:-->
<ws:message>?</ws:message>
</ws:sendMailSimple>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/MiscService/sendMailSimple"/><con:wsrmConfig version="1.2"/></con:call><con:call name="Request 2"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/xservices/MiscService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:sendMailSimple>
<ws:mailhost/>
<ws:from>?</ws:from>
<ws:to>?</ws:to>
<!--Optional:-->
<ws:subject>?</ws:subject>
<!--Optional:-->
<ws:message>?</ws:message>
</ws:sendMailSimple>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/MiscService/sendMailSimple"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="sendMailSimpleWithAttachment" bindingOperationName="sendMailSimpleWithAttachment" type="Request-Response" outputName="sendMailSimpleWithAttachmentResponse" inputName="sendMailSimpleWithAttachment" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/xservices/MiscService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:sendMailSimpleWithAttachment>
<!--Optional:-->
<ws:mailhost/>
<!--Optional:-->
<ws:from>?</ws:from>
<!--Optional:-->
<ws:to>?</ws:to>
<!--Optional:-->
<ws:subject>?</ws:subject>
<!--Optional:-->
<ws:message>?</ws:message>
<!--Optional:-->
<ws:attachments/>
</ws:sendMailSimpleWithAttachment>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/MiscService/sendMailSimpleWithAttachment"/><con:wsrmConfig version="1.2"/></con:call><con:call name="Request 2"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/xservices/MiscService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:sendMailSimpleWithAttachment>
<ws:mailhost/>
<ws:from>?</ws:from>
<ws:to>?</ws:to>
<!--Optional:-->
<ws:subject>?</ws:subject>
<!--Optional:-->
<ws:message>?</ws:message>
<!--Optional:-->
<ws:attachments/>
</ws:sendMailSimpleWithAttachment>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/MiscService/sendMailSimpleWithAttachment"/><con:wsrmConfig version="1.2"/></con:call><con:call name="Request 3"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/xservices/MiscService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:sendMailSimpleWithAttachment>
<ws:mailhost/>
<ws:from>?</ws:from>
<ws:to>?</ws:to>
<!--Optional:-->
<ws:subject>?</ws:subject>
<!--Optional:-->
<ws:message>?</ws:message>
<!--Optional:-->
<ws:attachments/>
</ws:sendMailSimpleWithAttachment>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/MiscService/sendMailSimpleWithAttachment"/><con:wsrmConfig version="1.2"/></con:call><con:call name="Request 4"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/xservices/MiscService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/>
<soapenv:Body>
<ws:sendMailSimpleWithAttachment>
<ws:mailhost/>
<ws:from>?</ws:from>
<ws:to>?</ws:to>
<!--Optional:-->
<ws:subject>?</ws:subject>
<!--Optional:-->
<ws:message>?</ws:message>
<!--Optional:-->
<ws:fileset/>
</ws:sendMailSimpleWithAttachment>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/MiscService/sendMailSimpleWithAttachment"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="sleep" bindingOperationName="sleep" type="Request-Response" outputName="sleepResponse" inputName="sleep" receivesAttachments="false" sendsAttachments="false" anonymous="optional"><con:settings/><con:call name="Request 1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/MiscService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
<soapenv:Header/> <soapenv:Header/>
<soapenv:Body> <soapenv:Body>
<ws:sleep> <ws:sleep>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project name="StoreService" resourceRoot="" soapui-version="3.6.1" xmlns:con="http://eviware.com/soapui/config"><con:settings/><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="StorageServiceSoapBinding" type="wsdl" bindingName="{http://ws.xservices.brutex.net}StorageServiceSoapBinding" soapVersion="1_1" anonymous="optional" definition="http://localhost:8080/XServices/StorageServices?wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="http://localhost:8080/XServices/StorageServices?wsdl"><con:part><con:url>http://localhost:8080/XServices/StorageServices?wsdl</con:url><con:content><![CDATA[<wsdl:definitions name="StorageService" targetNamespace="http://ws.xservices.brutex.net" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://ws.xservices.brutex.net" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <con:soapui-project name="StoreService" resourceRoot="" soapui-version="3.6.1" abortOnError="false" runType="SEQUENTIAL" xmlns:con="http://eviware.com/soapui/config"><con:settings/><con:interface xsi:type="con:WsdlInterface" wsaVersion="NONE" name="StorageServiceSoapBinding" type="wsdl" bindingName="{http://ws.xservices.brutex.net}StorageServiceSoapBinding" soapVersion="1_1" anonymous="optional" definition="http://localhost:8080/XServices/StorageServices?wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="http://localhost:8080/XServices/StorageServices?wsdl"><con:part><con:url>http://localhost:8080/XServices/StorageServices?wsdl</con:url><con:content><![CDATA[<wsdl:definitions name="StorageService" targetNamespace="http://ws.xservices.brutex.net" xmlns:ns1="http://schemas.xmlsoap.org/soap/http" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://ws.xservices.brutex.net" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types> <wsdl:types>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://ws.xservices.brutex.net" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://ws.xservices.brutex.net" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="createCollection" type="tns:createCollection"/> <xs:element name="createCollection" type="tns:createCollection"/>

View File

@ -15,16 +15,10 @@
<jaxws:endpoint id="archiveservice" <jaxws:endpoint id="archiveservice"
implementor="net.brutex.xservices.ws.impl.ArchiveServiceImpl" address="/ArchiveService"> implementor="net.brutex.xservices.ws.impl.ArchiveServiceImpl" address="/ArchiveService">
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</jaxws:dataBinding>
</jaxws:endpoint> </jaxws:endpoint>
<jaxws:endpoint id="dateservice" <jaxws:endpoint id="dateservice"
implementor="net.brutex.xservices.ws.impl.DateServiceImpl" address="/DateService"> implementor="net.brutex.xservices.ws.impl.DateServiceImpl" address="/DateService">
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</jaxws:dataBinding>
</jaxws:endpoint> </jaxws:endpoint>
<jaxws:endpoint id="fileservice" <jaxws:endpoint id="fileservice"
@ -32,9 +26,6 @@
<jaxws:properties> <jaxws:properties>
<entry key="mtom-enabled" value="false" /> <entry key="mtom-enabled" value="false" />
</jaxws:properties> </jaxws:properties>
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</jaxws:dataBinding>
</jaxws:endpoint> </jaxws:endpoint>
<!-- This is the MTOM enabled FileServices endpoint --> <!-- This is the MTOM enabled FileServices endpoint -->
@ -45,39 +36,24 @@
<entry key="attachment-directory" value="c:\temp" /> <entry key="attachment-directory" value="c:\temp" />
<entry key="attachment-memory-threshold" value="2000" /> <entry key="attachment-memory-threshold" value="2000" />
</jaxws:properties> </jaxws:properties>
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</jaxws:dataBinding>
</jaxws:endpoint> </jaxws:endpoint>
<jaxws:endpoint id="executeservice" <jaxws:endpoint id="executeservice"
implementor="net.brutex.xservices.ws.impl.ExecuteServiceImpl" address="/ExecuteService"> implementor="net.brutex.xservices.ws.impl.ExecuteServiceImpl" address="/ExecuteService">
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</jaxws:dataBinding>
</jaxws:endpoint> </jaxws:endpoint>
<jaxws:endpoint id="jobservice" <jaxws:endpoint id="jobservice"
implementor="net.brutex.xservices.ws.impl.JobServiceImpl" address="/JobService"> implementor="net.brutex.xservices.ws.impl.JobServiceImpl" address="/JobService">
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</jaxws:dataBinding>
</jaxws:endpoint> </jaxws:endpoint>
<jaxws:endpoint id="miscservice" <jaxws:endpoint id="miscservice"
implementor="net.brutex.xservices.ws.impl.MiscServiceImpl" address="/MiscService"> implementor="net.brutex.xservices.ws.impl.MiscServiceImpl" address="/MiscService">
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</jaxws:dataBinding>
</jaxws:endpoint> </jaxws:endpoint>
<jaxws:endpoint id="storageservice" <jaxws:endpoint id="storageservice"
implementor="net.brutex.xservices.ws.impl.StorageServiceImpl" address="/StorageService"> implementor="net.brutex.xservices.ws.impl.StorageServiceImpl" address="/StorageService">
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</jaxws:dataBinding>
</jaxws:endpoint> </jaxws:endpoint>
<jaxws:endpoint id="storageservice2" <jaxws:endpoint id="storageservice2"
@ -87,8 +63,5 @@
<entry key="attachment-directory" value="c:\temp" /> <entry key="attachment-directory" value="c:\temp" />
<entry key="attachment-memory-threshold" value="2000" /> <entry key="attachment-memory-threshold" value="2000" />
</jaxws:properties> </jaxws:properties>
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</jaxws:dataBinding>
</jaxws:endpoint> </jaxws:endpoint>
</beans> </beans>