/xservices/trunk/test/JobServices-soapui-project.xml |
---|
File deleted |
\ No newline at end of file |
Property changes: |
Deleted: svn:mime-type |
-text/plain |
\ No newline at end of property |
/xservices/trunk/test/DateService-soapui-project.xml |
---|
1,5 → 1,5 |
<?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: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>/* |
* Copyright 2010 Brian Rosenberger (Brutex Network) |
* |
14,410 → 14,410 |
* 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. |
*/</wsdl:documentation> |
<wsdl:types> |
<xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://ws.xservices.brutex.net" xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
<xs:element name="dateAdd" type="tns:dateAdd"/> |
<xs:element name="dateAddResponse" type="tns:dateAddResponse"/> |
<xs:element name="dateTimeDiff" type="tns:dateTimeDiff"/> |
<xs:element name="dateTimeDiff2" type="tns:dateTimeDiff2"/> |
<xs:element name="dateTimeDiff2Response" type="tns:dateTimeDiff2Response"/> |
<xs:element name="dateTimeDiffResponse" type="tns:dateTimeDiffResponse"/> |
<xs:element name="formatDate" type="tns:formatDate"/> |
<xs:element name="formatDateAdvanced" type="tns:formatDateAdvanced"/> |
<xs:element name="formatDateAdvancedResponse" type="tns:formatDateAdvancedResponse"/> |
<xs:element name="formatDateResponse" type="tns:formatDateResponse"/> |
<xs:element name="getDate" type="tns:getDate"/> |
<xs:element name="getDateResponse" type="tns:getDateResponse"/> |
<xs:element name="getInTimezone" type="tns:getInTimezone"/> |
<xs:element name="getInTimezoneResponse" type="tns:getInTimezoneResponse"/> |
<xs:element name="getTimestamp" type="tns:getTimestamp"/> |
<xs:element name="getTimestampResponse" type="tns:getTimestampResponse"/> |
<xs:element name="parseDate" type="tns:parseDate"/> |
<xs:element name="parseDateAdvanced" type="tns:parseDateAdvanced"/> |
<xs:element name="parseDateAdvancedResponse" type="tns:parseDateAdvancedResponse"/> |
<xs:element name="parseDateResponse" type="tns:parseDateResponse"/> |
<xs:complexType name="dateAdd"> |
<xs:sequence> |
<xs:element name="datetime" type="xs:dateTime"/> |
<xs:element name="value" type="xs:integer"/> |
<xs:element name="unit" type="tns:dateTimeUnits"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="dateAddResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:dateTime"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="getDate"> |
<xs:sequence> |
<xs:element minOccurs="0" name="timezone" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="getDateResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:dateTime"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="getInTimezone"> |
<xs:sequence> |
<xs:element name="datetime" type="xs:dateTime"/> |
<xs:element name="timezone" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="getInTimezoneResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:dateTime"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="formatDate"> |
<xs:sequence> |
<xs:element name="datetime" type="xs:dateTime"/> |
<xs:element name="format" type="tns:dateFormatType"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="formatDateResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="dateTimeDiff2"> |
<xs:sequence> |
<xs:element name="fromDateTime" type="xs:dateTime"/> |
<xs:element name="toDateTime" type="xs:dateTime"/> |
<xs:element minOccurs="0" name="PARAM_UNIT" type="tns:dateTimeUnits"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="dateTimeDiff2Response"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:integer"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="formatDateAdvanced"> |
<xs:sequence> |
<xs:element name="datetime" type="xs:dateTime"/> |
<xs:element name="format" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="formatDateAdvancedResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="parseDate"> |
<xs:sequence> |
<xs:element name="datetime" type="xs:string"/> |
<xs:element name="format" type="tns:dateFormatType"/> |
<xs:element minOccurs="0" name="timezone" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="parseDateResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:dateTime"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="parseDateAdvanced"> |
<xs:sequence> |
<xs:element name="datetime" type="xs:string"/> |
<xs:element name="format" type="xs:string"/> |
<xs:element minOccurs="0" name="timezone" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="parseDateAdvancedResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:dateTime"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="getTimestamp"> |
<xs:sequence/> |
</xs:complexType> |
<xs:complexType name="getTimestampResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:integer"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="dateTimeDiff"> |
<xs:sequence> |
<xs:element name="fromDateTime" type="xs:dateTime"/> |
<xs:element name="toDateTime" type="xs:dateTime"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="dateTimeDiffResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:integer"/> |
</xs:sequence> |
</xs:complexType> |
<xs:simpleType name="dateTimeUnits"> |
<xs:restriction base="xs:string"> |
<xs:enumeration value="milliseconds"/> |
<xs:enumeration value="seconds"/> |
<xs:enumeration value="minutes"/> |
<xs:enumeration value="hours"/> |
<xs:enumeration value="days"/> |
</xs:restriction> |
</xs:simpleType> |
<xs:simpleType name="dateFormatType"> |
<xs:restriction base="xs:string"> |
<xs:enumeration value="ISO 8601"/> |
<xs:enumeration value="yyyy/mm/dd"/> |
<xs:enumeration value="dd.mm.yyyy"/> |
</xs:restriction> |
</xs:simpleType> |
<xs:complexType name="XServicesFault"> |
<xs:sequence> |
<xs:element name="faultstring" nillable="true" type="xs:string"/> |
<xs:element name="username" nillable="true" type="xs:string"/> |
<xs:element name="homedir" nillable="true" type="xs:string"/> |
<xs:element name="timestamp" nillable="true" type="xs:anySimpleType"/> |
<xs:element name="jvmruntime" nillable="true" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:element name="XServicesFault" type="tns:XServicesFault"/> |
</xs:schema> |
</wsdl:types> |
<wsdl:message name="dateAdd"> |
<wsdl:part element="tns:dateAdd" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="getDate"> |
<wsdl:part element="tns:getDate" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="getTimestamp"> |
<wsdl:part element="tns:getTimestamp" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="parseDateAdvancedResponse"> |
<wsdl:part element="tns:parseDateAdvancedResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="formatDateAdvanced"> |
<wsdl:part element="tns:formatDateAdvanced" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="parseDateResponse"> |
<wsdl:part element="tns:parseDateResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="getDateResponse"> |
<wsdl:part element="tns:getDateResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="formatDateAdvancedResponse"> |
<wsdl:part element="tns:formatDateAdvancedResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="parseDate"> |
<wsdl:part element="tns:parseDate" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="getInTimezoneResponse"> |
<wsdl:part element="tns:getInTimezoneResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="dateTimeDiff2Response"> |
<wsdl:part element="tns:dateTimeDiff2Response" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="parseDateAdvanced"> |
<wsdl:part element="tns:parseDateAdvanced" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="XServicesFault"> |
<wsdl:part element="tns:XServicesFault" name="XServicesFault"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="formatDate"> |
<wsdl:part element="tns:formatDate" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="formatDateResponse"> |
<wsdl:part element="tns:formatDateResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="dateTimeDiff"> |
<wsdl:part element="tns:dateTimeDiff" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="getTimestampResponse"> |
<wsdl:part element="tns:getTimestampResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="getInTimezone"> |
<wsdl:part element="tns:getInTimezone" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="dateTimeDiff2"> |
<wsdl:part element="tns:dateTimeDiff2" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="dateTimeDiffResponse"> |
<wsdl:part element="tns:dateTimeDiffResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="dateAddResponse"> |
<wsdl:part element="tns:dateAddResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:portType name="DateService"> |
<wsdl:operation name="dateAdd"> |
<wsdl:documentation>Add or substract a time span from a date.</wsdl:documentation> |
<wsdl:input message="tns:dateAdd" name="dateAdd"></wsdl:input> |
<wsdl:output message="tns:dateAddResponse" name="dateAddResponse"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="getDate"> |
<wsdl:documentation>Get current date and time.</wsdl:documentation> |
<wsdl:input message="tns:getDate" name="getDate"></wsdl:input> |
<wsdl:output message="tns:getDateResponse" name="getDateResponse"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="getInTimezone"> |
<wsdl:input message="tns:getInTimezone" name="getInTimezone"></wsdl:input> |
<wsdl:output message="tns:getInTimezoneResponse" name="getInTimezoneResponse"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="formatDate"> |
<wsdl:input message="tns:formatDate" name="formatDate"></wsdl:input> |
<wsdl:output message="tns:formatDateResponse" name="formatDateResponse"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="dateTimeDiff2"> |
<wsdl:documentation>Get elapsed time between to dates.</wsdl:documentation> |
<wsdl:input message="tns:dateTimeDiff2" name="dateTimeDiff2"></wsdl:input> |
<wsdl:output message="tns:dateTimeDiff2Response" name="dateTimeDiff2Response"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="formatDateAdvanced"> |
<wsdl:input message="tns:formatDateAdvanced" name="formatDateAdvanced"></wsdl:input> |
<wsdl:output message="tns:formatDateAdvancedResponse" name="formatDateAdvancedResponse"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="parseDate"> |
<wsdl:input message="tns:parseDate" name="parseDate"></wsdl:input> |
<wsdl:output message="tns:parseDateResponse" name="parseDateResponse"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="parseDateAdvanced"> |
<wsdl:input message="tns:parseDateAdvanced" name="parseDateAdvanced"></wsdl:input> |
<wsdl:output message="tns:parseDateAdvancedResponse" name="parseDateAdvancedResponse"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="getTimestamp"> |
<wsdl:documentation>Get milliseconds since 01.01.1970 (Unix timestap).</wsdl:documentation> |
<wsdl:input message="tns:getTimestamp" name="getTimestamp"></wsdl:input> |
<wsdl:output message="tns:getTimestampResponse" name="getTimestampResponse"></wsdl:output> |
</wsdl:operation> |
<wsdl:operation name="dateTimeDiff"> |
<wsdl:input message="tns:dateTimeDiff" name="dateTimeDiff"></wsdl:input> |
<wsdl:output message="tns:dateTimeDiffResponse" name="dateTimeDiffResponse"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
</wsdl:portType> |
<wsdl:binding name="DateServiceSoapBinding" type="tns:DateService"> |
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> |
<wsdl:operation name="dateAdd"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="dateAdd"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="dateAddResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="getDate"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="getDate"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="getDateResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="getInTimezone"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="getInTimezone"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="getInTimezoneResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="formatDate"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="formatDate"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="formatDateResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="dateTimeDiff2"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="dateTimeDiff2"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="dateTimeDiff2Response"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="formatDateAdvanced"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="formatDateAdvanced"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="formatDateAdvancedResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="parseDate"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="parseDate"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="parseDateResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="parseDateAdvanced"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="parseDateAdvanced"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="parseDateAdvancedResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="dateTimeDiff"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="dateTimeDiff"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="dateTimeDiffResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="getTimestamp"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="getTimestamp"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="getTimestampResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
</wsdl:operation> |
</wsdl:binding> |
<wsdl:service name="DateService"> |
<wsdl:port binding="tns:DateServiceSoapBinding" name="DateServiceImplPort"> |
<soap:address location="http://localhost:8080/XServices/DateService"/> |
</wsdl:port> |
</wsdl:service> |
*/</wsdl:documentation> |
<wsdl:types> |
<xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://ws.xservices.brutex.net" xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
<xs:element name="dateAdd" type="tns:dateAdd"/> |
<xs:element name="dateAddResponse" type="tns:dateAddResponse"/> |
<xs:element name="dateTimeDiff" type="tns:dateTimeDiff"/> |
<xs:element name="dateTimeDiff2" type="tns:dateTimeDiff2"/> |
<xs:element name="dateTimeDiff2Response" type="tns:dateTimeDiff2Response"/> |
<xs:element name="dateTimeDiffResponse" type="tns:dateTimeDiffResponse"/> |
<xs:element name="formatDate" type="tns:formatDate"/> |
<xs:element name="formatDateAdvanced" type="tns:formatDateAdvanced"/> |
<xs:element name="formatDateAdvancedResponse" type="tns:formatDateAdvancedResponse"/> |
<xs:element name="formatDateResponse" type="tns:formatDateResponse"/> |
<xs:element name="getDate" type="tns:getDate"/> |
<xs:element name="getDateResponse" type="tns:getDateResponse"/> |
<xs:element name="getInTimezone" type="tns:getInTimezone"/> |
<xs:element name="getInTimezoneResponse" type="tns:getInTimezoneResponse"/> |
<xs:element name="getTimestamp" type="tns:getTimestamp"/> |
<xs:element name="getTimestampResponse" type="tns:getTimestampResponse"/> |
<xs:element name="parseDate" type="tns:parseDate"/> |
<xs:element name="parseDateAdvanced" type="tns:parseDateAdvanced"/> |
<xs:element name="parseDateAdvancedResponse" type="tns:parseDateAdvancedResponse"/> |
<xs:element name="parseDateResponse" type="tns:parseDateResponse"/> |
<xs:complexType name="dateAdd"> |
<xs:sequence> |
<xs:element name="datetime" type="xs:dateTime"/> |
<xs:element name="value" type="xs:integer"/> |
<xs:element name="unit" type="tns:dateTimeUnits"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="dateAddResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:dateTime"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="getDate"> |
<xs:sequence> |
<xs:element minOccurs="0" name="timezone" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="getDateResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:dateTime"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="getInTimezone"> |
<xs:sequence> |
<xs:element name="datetime" type="xs:dateTime"/> |
<xs:element name="timezone" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="getInTimezoneResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:dateTime"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="formatDate"> |
<xs:sequence> |
<xs:element name="datetime" type="xs:dateTime"/> |
<xs:element name="format" type="tns:dateFormatType"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="formatDateResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="dateTimeDiff2"> |
<xs:sequence> |
<xs:element name="fromDateTime" type="xs:dateTime"/> |
<xs:element name="toDateTime" type="xs:dateTime"/> |
<xs:element minOccurs="0" name="PARAM_UNIT" type="tns:dateTimeUnits"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="dateTimeDiff2Response"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:integer"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="formatDateAdvanced"> |
<xs:sequence> |
<xs:element name="datetime" type="xs:dateTime"/> |
<xs:element name="format" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="formatDateAdvancedResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="parseDate"> |
<xs:sequence> |
<xs:element name="datetime" type="xs:string"/> |
<xs:element name="format" type="tns:dateFormatType"/> |
<xs:element minOccurs="0" name="timezone" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="parseDateResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:dateTime"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="parseDateAdvanced"> |
<xs:sequence> |
<xs:element name="datetime" type="xs:string"/> |
<xs:element name="format" type="xs:string"/> |
<xs:element minOccurs="0" name="timezone" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="parseDateAdvancedResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:dateTime"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="getTimestamp"> |
<xs:sequence/> |
</xs:complexType> |
<xs:complexType name="getTimestampResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:integer"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="dateTimeDiff"> |
<xs:sequence> |
<xs:element name="fromDateTime" type="xs:dateTime"/> |
<xs:element name="toDateTime" type="xs:dateTime"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="dateTimeDiffResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="xs:integer"/> |
</xs:sequence> |
</xs:complexType> |
<xs:simpleType name="dateTimeUnits"> |
<xs:restriction base="xs:string"> |
<xs:enumeration value="milliseconds"/> |
<xs:enumeration value="seconds"/> |
<xs:enumeration value="minutes"/> |
<xs:enumeration value="hours"/> |
<xs:enumeration value="days"/> |
</xs:restriction> |
</xs:simpleType> |
<xs:simpleType name="dateFormatType"> |
<xs:restriction base="xs:string"> |
<xs:enumeration value="ISO 8601"/> |
<xs:enumeration value="yyyy/mm/dd"/> |
<xs:enumeration value="dd.mm.yyyy"/> |
</xs:restriction> |
</xs:simpleType> |
<xs:complexType name="XServicesFault"> |
<xs:sequence> |
<xs:element name="faultstring" nillable="true" type="xs:string"/> |
<xs:element name="username" nillable="true" type="xs:string"/> |
<xs:element name="homedir" nillable="true" type="xs:string"/> |
<xs:element name="timestamp" nillable="true" type="xs:anySimpleType"/> |
<xs:element name="jvmruntime" nillable="true" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:element name="XServicesFault" type="tns:XServicesFault"/> |
</xs:schema> |
</wsdl:types> |
<wsdl:message name="dateAdd"> |
<wsdl:part element="tns:dateAdd" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="getDate"> |
<wsdl:part element="tns:getDate" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="getTimestamp"> |
<wsdl:part element="tns:getTimestamp" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="parseDateAdvancedResponse"> |
<wsdl:part element="tns:parseDateAdvancedResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="formatDateAdvanced"> |
<wsdl:part element="tns:formatDateAdvanced" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="parseDateResponse"> |
<wsdl:part element="tns:parseDateResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="getDateResponse"> |
<wsdl:part element="tns:getDateResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="formatDateAdvancedResponse"> |
<wsdl:part element="tns:formatDateAdvancedResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="parseDate"> |
<wsdl:part element="tns:parseDate" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="getInTimezoneResponse"> |
<wsdl:part element="tns:getInTimezoneResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="dateTimeDiff2Response"> |
<wsdl:part element="tns:dateTimeDiff2Response" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="parseDateAdvanced"> |
<wsdl:part element="tns:parseDateAdvanced" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="XServicesFault"> |
<wsdl:part element="tns:XServicesFault" name="XServicesFault"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="formatDate"> |
<wsdl:part element="tns:formatDate" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="formatDateResponse"> |
<wsdl:part element="tns:formatDateResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="dateTimeDiff"> |
<wsdl:part element="tns:dateTimeDiff" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="getTimestampResponse"> |
<wsdl:part element="tns:getTimestampResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="getInTimezone"> |
<wsdl:part element="tns:getInTimezone" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="dateTimeDiff2"> |
<wsdl:part element="tns:dateTimeDiff2" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="dateTimeDiffResponse"> |
<wsdl:part element="tns:dateTimeDiffResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="dateAddResponse"> |
<wsdl:part element="tns:dateAddResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:portType name="DateService"> |
<wsdl:operation name="dateAdd"> |
<wsdl:documentation>Add or substract a time span from a date.</wsdl:documentation> |
<wsdl:input message="tns:dateAdd" name="dateAdd"></wsdl:input> |
<wsdl:output message="tns:dateAddResponse" name="dateAddResponse"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="getDate"> |
<wsdl:documentation>Get current date and time.</wsdl:documentation> |
<wsdl:input message="tns:getDate" name="getDate"></wsdl:input> |
<wsdl:output message="tns:getDateResponse" name="getDateResponse"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="getInTimezone"> |
<wsdl:input message="tns:getInTimezone" name="getInTimezone"></wsdl:input> |
<wsdl:output message="tns:getInTimezoneResponse" name="getInTimezoneResponse"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="formatDate"> |
<wsdl:input message="tns:formatDate" name="formatDate"></wsdl:input> |
<wsdl:output message="tns:formatDateResponse" name="formatDateResponse"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="dateTimeDiff2"> |
<wsdl:documentation>Get elapsed time between to dates.</wsdl:documentation> |
<wsdl:input message="tns:dateTimeDiff2" name="dateTimeDiff2"></wsdl:input> |
<wsdl:output message="tns:dateTimeDiff2Response" name="dateTimeDiff2Response"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="formatDateAdvanced"> |
<wsdl:input message="tns:formatDateAdvanced" name="formatDateAdvanced"></wsdl:input> |
<wsdl:output message="tns:formatDateAdvancedResponse" name="formatDateAdvancedResponse"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="parseDate"> |
<wsdl:input message="tns:parseDate" name="parseDate"></wsdl:input> |
<wsdl:output message="tns:parseDateResponse" name="parseDateResponse"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="parseDateAdvanced"> |
<wsdl:input message="tns:parseDateAdvanced" name="parseDateAdvanced"></wsdl:input> |
<wsdl:output message="tns:parseDateAdvancedResponse" name="parseDateAdvancedResponse"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="getTimestamp"> |
<wsdl:documentation>Get milliseconds since 01.01.1970 (Unix timestap).</wsdl:documentation> |
<wsdl:input message="tns:getTimestamp" name="getTimestamp"></wsdl:input> |
<wsdl:output message="tns:getTimestampResponse" name="getTimestampResponse"></wsdl:output> |
</wsdl:operation> |
<wsdl:operation name="dateTimeDiff"> |
<wsdl:input message="tns:dateTimeDiff" name="dateTimeDiff"></wsdl:input> |
<wsdl:output message="tns:dateTimeDiffResponse" name="dateTimeDiffResponse"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
</wsdl:portType> |
<wsdl:binding name="DateServiceSoapBinding" type="tns:DateService"> |
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> |
<wsdl:operation name="dateAdd"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="dateAdd"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="dateAddResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="getDate"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="getDate"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="getDateResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="getInTimezone"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="getInTimezone"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="getInTimezoneResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="formatDate"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="formatDate"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="formatDateResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="dateTimeDiff2"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="dateTimeDiff2"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="dateTimeDiff2Response"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="formatDateAdvanced"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="formatDateAdvanced"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="formatDateAdvancedResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="parseDate"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="parseDate"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="parseDateResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="parseDateAdvanced"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="parseDateAdvanced"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="parseDateAdvancedResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="dateTimeDiff"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="dateTimeDiff"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="dateTimeDiffResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="getTimestamp"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="getTimestamp"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="getTimestampResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
</wsdl:operation> |
</wsdl:binding> |
<wsdl:service name="DateService"> |
<wsdl:port binding="tns:DateServiceSoapBinding" name="DateServiceImplPort"> |
<soap:address location="http://localhost:8080/XServices/DateService"/> |
</wsdl:port> |
</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/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"><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> |
445,14 → 445,14 |
<format>ISO 8601</format> |
</ws:formatDate> |
</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"><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>2011-05-24T17:22:42+02:00</datetime> |
<format>mmddyyyy-WW</format> |
</ws:formatDateAdvanced> |
</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"><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>2011-05-24T17:22:42+02:00</datetime> |
<format>mmddyyyy-WW</format> |
</ws:formatDateAdvanced> |
</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/formatDateAdvanced"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="parseDate" bindingOperationName="parseDate" type="Request-Response" outputName="parseDateResponse" inputName="parseDate" 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"><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> |
461,22 → 461,22 |
<format>dd.mm.yyyy</format> |
</ws:parseDate> |
</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:Header/> |
<soapenv:Body> |
<ws:parseDateAdvanced> |
<datetime>?</datetime> |
<format>?</format> |
</ws:parseDateAdvanced> |
</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"><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>2011-05-24T19:59:29.233+02:00</fromDateTime> |
<toDateTime>2011-05-24T19:59:34.233+03:00</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/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:Header/> |
<soapenv:Body> |
<ws:parseDateAdvanced> |
<datetime>?</datetime> |
<format>?</format> |
</ws:parseDateAdvanced> |
</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"><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>2011-05-24T19:59:29.233+02:00</fromDateTime> |
<toDateTime>2011-05-24T19:59:34.233+03:00</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: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"><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> |
485,13 → 485,13 |
<toDateTime>2011-06-24T21:01:59.234+02:00</toDateTime> |
</ws:dateTimeDiff2> |
</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/dateTimeDiff2"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="dateAdd" bindingOperationName="dateAdd" type="Request-Response" outputName="dateAddResponse" inputName="dateAdd" 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"><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>2012-05-24T19:59:29.233+02:00</datetime> |
<value>365</value> |
<unit>hours</unit> |
</ws:dateAdd> |
</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/dateTimeDiff2"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="dateAdd" bindingOperationName="dateAdd" type="Request-Response" outputName="dateAddResponse" inputName="dateAdd" 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"><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>2012-05-24T19:59:29.233+02:00</datetime> |
<value>365</value> |
<unit>hours</unit> |
</ws:dateAdd> |
</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> |
/xservices/trunk/test/ExecuteService-soapui-project.xml |
---|
1,488 → 1,21 |
<?xml version="1.0" encoding="UTF-8"?> |
<con:soapui-project name="ExecuteService" 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="ExecuteServiceSoapBinding" type="wsdl" bindingName="{http://ws.xservices.brutex.net}ExecuteServiceSoapBinding" soapVersion="1_1" anonymous="optional" definition="http://localhost:8080/XServices/ExecuteService?wsdl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart="http://localhost:8080/XServices/ExecuteService?wsdl"><con:part><con:url>http://localhost:8080/XServices/ExecuteService?wsdl</con:url><con:content><![CDATA[<wsdl:definitions name="ExecuteService" 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> |
<xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://ws.xservices.brutex.net" xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
<xs:element name="antProperty" type="tns:antProperty"/> |
<xs:element name="rExec" type="tns:rExec"/> |
<xs:element name="rExecResponse" type="tns:rExecResponse"/> |
<xs:element name="runCommand" type="tns:runCommand"/> |
<xs:element name="runCommandAsync" type="tns:runCommandAsync"/> |
<xs:element name="runCommandAsyncResponse" type="tns:runCommandAsyncResponse"/> |
<xs:element name="runCommandAsyncWithArgs" type="tns:runCommandAsyncWithArgs"/> |
<xs:element name="runCommandAsyncWithArgsResponse" type="tns:runCommandAsyncWithArgsResponse"/> |
<xs:element name="runCommandResponse" type="tns:runCommandResponse"/> |
<xs:element name="runCommandWithArgs" type="tns:runCommandWithArgs"/> |
<xs:element name="runCommandWithArgsResponse" type="tns:runCommandWithArgsResponse"/> |
<xs:element name="runCommandWithSSH" type="tns:runCommandWithSSH"/> |
<xs:element name="runCommandWithSSHKeyAuth" type="tns:runCommandWithSSHKeyAuth"/> |
<xs:element name="runCommandWithSSHKeyAuthResponse" type="tns:runCommandWithSSHKeyAuthResponse"/> |
<xs:element name="runCommandWithSSHResponse" type="tns:runCommandWithSSHResponse"/> |
<xs:element name="runJavaScript" type="tns:runJavaScript"/> |
<xs:element name="runJavaScriptResponse" type="tns:runJavaScriptResponse"/> |
<xs:element name="telnet" type="tns:telnet"/> |
<xs:element name="telnetResponse" type="tns:telnetResponse"/> |
<xs:complexType name="runCommandWithSSHKeyAuth"> |
<xs:sequence> |
<xs:element minOccurs="0" name="host" type="tns:connection"/> |
<xs:element minOccurs="0" name="keyfile" type="xs:string"/> |
<xs:element minOccurs="0" name="command" type="xs:string"/> |
<xs:element name="timeout" type="xs:long"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="connection"> |
<xs:sequence> |
<xs:element name="hostname" type="xs:string"/> |
<xs:element name="port" type="xs:int"/> |
<xs:element minOccurs="0" name="user" type="xs:string"/> |
<xs:element minOccurs="0" name="password" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="runCommandWithSSHKeyAuthResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="tns:ReturnCodeType"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="ReturnCodeType"> |
<xs:sequence> |
<xs:element name="returnCode" type="xs:int"/> |
<xs:element minOccurs="0" name="stdOut" type="xs:string"/> |
<xs:element minOccurs="0" name="stdErr" type="xs:string"/> |
<xs:element maxOccurs="unbounded" minOccurs="0" name="propertyList" nillable="true" type="tns:antProperty"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="antProperty"> |
<xs:sequence> |
<xs:element name="name" type="xs:string"/> |
<xs:element name="value" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="runCommandWithSSH"> |
<xs:sequence> |
<xs:element minOccurs="0" name="host" type="tns:connection"/> |
<xs:element minOccurs="0" name="command" type="xs:string"/> |
<xs:element name="timeout" type="xs:long"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="runCommandWithSSHResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="tns:ReturnCodeType"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="runJavaScript"> |
<xs:sequence> |
<xs:element minOccurs="0" name="script" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="runJavaScriptResponse"> |
<xs:sequence/> |
</xs:complexType> |
<xs:complexType name="telnet"> |
<xs:sequence> |
<xs:element minOccurs="0" name="host" type="tns:connection"/> |
<xs:element minOccurs="0" name="prompt" type="xs:string"/> |
<xs:element minOccurs="0" name="command" type="xs:string"/> |
<xs:element minOccurs="0" name="expect" type="xs:string"/> |
<xs:element name="timeout" type="xs:long"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="telnetResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="tns:ReturnCodeType"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="runCommandWithArgs"> |
<xs:sequence> |
<xs:element minOccurs="0" name="executable" type="xs:string"/> |
<xs:element maxOccurs="unbounded" minOccurs="0" name="arg" type="xs:string"/> |
<xs:element name="timeout" type="xs:long"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="runCommandWithArgsResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="tns:ReturnCodeType"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="rExec"> |
<xs:sequence> |
<xs:element minOccurs="0" name="host" type="tns:connection"/> |
<xs:element minOccurs="0" name="command" type="xs:string"/> |
<xs:element name="timeout" type="xs:long"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="rExecResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="tns:ReturnCodeType"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="runCommandAsync"> |
<xs:sequence> |
<xs:element minOccurs="0" name="executable" type="xs:string"/> |
<xs:element minOccurs="0" name="argline" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="runCommandAsyncResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="tns:ReturnCodeType"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="runCommand"> |
<xs:sequence> |
<xs:element minOccurs="0" name="executable" type="xs:string"/> |
<xs:element minOccurs="0" name="argline" type="xs:string"/> |
<xs:element name="timeout" type="xs:long"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="runCommandResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="tns:ReturnCodeType"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="runCommandAsyncWithArgs"> |
<xs:sequence> |
<xs:element minOccurs="0" name="executable" type="xs:string"/> |
<xs:element maxOccurs="unbounded" minOccurs="0" name="arg" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="runCommandAsyncWithArgsResponse"> |
<xs:sequence> |
<xs:element minOccurs="0" name="return" type="tns:ReturnCodeType"/> |
</xs:sequence> |
</xs:complexType> |
<xs:complexType name="XServicesFault"> |
<xs:sequence> |
<xs:element name="faultstring" nillable="true" type="xs:string"/> |
<xs:element name="username" nillable="true" type="xs:string"/> |
<xs:element name="homedir" nillable="true" type="xs:string"/> |
<xs:element name="timestamp" nillable="true" type="xs:anySimpleType"/> |
<xs:element name="jvmruntime" nillable="true" type="xs:string"/> |
</xs:sequence> |
</xs:complexType> |
<xs:element name="XServicesFault" type="tns:XServicesFault"/> |
</xs:schema> |
</wsdl:types> |
<wsdl:message name="runCommandAsyncWithArgs"> |
<wsdl:part element="tns:runCommandAsyncWithArgs" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="runCommandWithSSHKeyAuth"> |
<wsdl:part element="tns:runCommandWithSSHKeyAuth" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="runCommandWithSSHKeyAuthResponse"> |
<wsdl:part element="tns:runCommandWithSSHKeyAuthResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="runCommandWithArgsResponse"> |
<wsdl:part element="tns:runCommandWithArgsResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="rExec"> |
<wsdl:part element="tns:rExec" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="runCommandAsync"> |
<wsdl:part element="tns:runCommandAsync" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="XServicesFault"> |
<wsdl:part element="tns:XServicesFault" name="XServicesFault"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="runJavaScript"> |
<wsdl:part element="tns:runJavaScript" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="runCommandAsyncResponse"> |
<wsdl:part element="tns:runCommandAsyncResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="runCommandWithSSH"> |
<wsdl:part element="tns:runCommandWithSSH" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="runCommandAsyncWithArgsResponse"> |
<wsdl:part element="tns:runCommandAsyncWithArgsResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="runCommand"> |
<wsdl:part element="tns:runCommand" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="telnet"> |
<wsdl:part element="tns:telnet" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="rExecResponse"> |
<wsdl:part element="tns:rExecResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="runCommandWithArgs"> |
<wsdl:part element="tns:runCommandWithArgs" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="runCommandResponse"> |
<wsdl:part element="tns:runCommandResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="runCommandWithSSHResponse"> |
<wsdl:part element="tns:runCommandWithSSHResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="runJavaScriptResponse"> |
<wsdl:part element="tns:runJavaScriptResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:message name="telnetResponse"> |
<wsdl:part element="tns:telnetResponse" name="parameters"></wsdl:part> |
</wsdl:message> |
<wsdl:portType name="ExecuteService"> |
<wsdl:operation name="runCommandWithSSHKeyAuth"> |
<wsdl:input message="tns:runCommandWithSSHKeyAuth" name="runCommandWithSSHKeyAuth"></wsdl:input> |
<wsdl:output message="tns:runCommandWithSSHKeyAuthResponse" name="runCommandWithSSHKeyAuthResponse"></wsdl:output> |
</wsdl:operation> |
<wsdl:operation name="runCommandWithSSH"> |
<wsdl:input message="tns:runCommandWithSSH" name="runCommandWithSSH"></wsdl:input> |
<wsdl:output message="tns:runCommandWithSSHResponse" name="runCommandWithSSHResponse"></wsdl:output> |
</wsdl:operation> |
<wsdl:operation name="runJavaScript"> |
<wsdl:input message="tns:runJavaScript" name="runJavaScript"></wsdl:input> |
<wsdl:output message="tns:runJavaScriptResponse" name="runJavaScriptResponse"></wsdl:output> |
<wsdl:fault message="tns:XServicesFault" name="XServicesFault"></wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="telnet"> |
<wsdl:input message="tns:telnet" name="telnet"></wsdl:input> |
<wsdl:output message="tns:telnetResponse" name="telnetResponse"></wsdl:output> |
</wsdl:operation> |
<wsdl:operation name="runCommandWithArgs"> |
<wsdl:input message="tns:runCommandWithArgs" name="runCommandWithArgs"></wsdl:input> |
<wsdl:output message="tns:runCommandWithArgsResponse" name="runCommandWithArgsResponse"></wsdl:output> |
</wsdl:operation> |
<wsdl:operation name="rExec"> |
<wsdl:input message="tns:rExec" name="rExec"></wsdl:input> |
<wsdl:output message="tns:rExecResponse" name="rExecResponse"></wsdl:output> |
</wsdl:operation> |
<wsdl:operation name="runCommandAsync"> |
<wsdl:input message="tns:runCommandAsync" name="runCommandAsync"></wsdl:input> |
<wsdl:output message="tns:runCommandAsyncResponse" name="runCommandAsyncResponse"></wsdl:output> |
</wsdl:operation> |
<wsdl:operation name="runCommand"> |
<wsdl:input message="tns:runCommand" name="runCommand"></wsdl:input> |
<wsdl:output message="tns:runCommandResponse" name="runCommandResponse"></wsdl:output> |
</wsdl:operation> |
<wsdl:operation name="runCommandAsyncWithArgs"> |
<wsdl:input message="tns:runCommandAsyncWithArgs" name="runCommandAsyncWithArgs"></wsdl:input> |
<wsdl:output message="tns:runCommandAsyncWithArgsResponse" name="runCommandAsyncWithArgsResponse"></wsdl:output> |
</wsdl:operation> |
</wsdl:portType> |
<wsdl:binding name="ExecuteServiceSoapBinding" type="tns:ExecuteService"> |
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> |
<wsdl:operation name="runCommandWithSSHKeyAuth"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="runCommandWithSSHKeyAuth"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="runCommandWithSSHKeyAuthResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
</wsdl:operation> |
<wsdl:operation name="runCommandWithSSH"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="runCommandWithSSH"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="runCommandWithSSHResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
</wsdl:operation> |
<wsdl:operation name="runJavaScript"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="runJavaScript"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="runJavaScriptResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
<wsdl:fault name="XServicesFault"> |
<soap:fault name="XServicesFault" use="literal"/> |
</wsdl:fault> |
</wsdl:operation> |
<wsdl:operation name="telnet"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="telnet"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="telnetResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
</wsdl:operation> |
<wsdl:operation name="rExec"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="rExec"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="rExecResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
</wsdl:operation> |
<wsdl:operation name="runCommandWithArgs"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="runCommandWithArgs"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="runCommandWithArgsResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
</wsdl:operation> |
<wsdl:operation name="runCommandAsync"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="runCommandAsync"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="runCommandAsyncResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
</wsdl:operation> |
<wsdl:operation name="runCommand"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="runCommand"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="runCommandResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
</wsdl:operation> |
<wsdl:operation name="runCommandAsyncWithArgs"> |
<soap:operation soapAction="" style="document"/> |
<wsdl:input name="runCommandAsyncWithArgs"> |
<soap:body use="literal"/> |
</wsdl:input> |
<wsdl:output name="runCommandAsyncWithArgsResponse"> |
<soap:body use="literal"/> |
</wsdl:output> |
</wsdl:operation> |
</wsdl:binding> |
<wsdl:service name="ExecuteService"> |
<wsdl:port binding="tns:ExecuteServiceSoapBinding" name="ExecuteServiceImplPort"> |
<soap:address location="http://localhost:8080/XServices/ExecuteService"/> |
</wsdl:port> |
</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/ExecuteService</con:endpoint></con:endpoints><con:operation isOneWay="false" action="" name="rExec" bindingOperationName="rExec" type="Request-Response" outputName="rExecResponse" inputName="rExec" 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/ExecuteService</con:endpoint><con:request><![CDATA[<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net"> |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net"> |
<soapenv:Header/> |
<soapenv:Body> |
<ws:rExec> |
<!--Optional:--> |
<host> |
<hostname>?</hostname> |
<port>?</port> |
<!--Optional:--> |
<user>?</user> |
<!--Optional:--> |
<password>?</password> |
</host> |
<!--Optional:--> |
<command>?</command> |
<timeout>?</timeout> |
</ws:rExec> |
</soapenv:Body> |
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/ExecuteService/rExec"/></con:call></con:operation><con:operation isOneWay="false" action="" name="runCommand" bindingOperationName="runCommand" type="Request-Response" outputName="runCommandResponse" inputName="runCommand" 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/ExecuteService</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:runCommand> |
<!--Optional:--> |
<executable>?</executable> |
<!--Optional:--> |
<argline>?</argline> |
<timeout>?</timeout> |
</ws:runCommand> |
</soapenv:Body> |
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/ExecuteService/runCommand"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="runCommandAsync" bindingOperationName="runCommandAsync" type="Request-Response" outputName="runCommandAsyncResponse" inputName="runCommandAsync" 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/ExecuteService</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:runCommandAsync> |
<!--Optional:--> |
<executable>?</executable> |
<!--Optional:--> |
<argline>?</argline> |
</ws:runCommandAsync> |
</soapenv:Body> |
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/ExecuteService/runCommandAsync"/></con:call></con:operation><con:operation isOneWay="false" action="" name="runCommandAsyncWithArgs" bindingOperationName="runCommandAsyncWithArgs" type="Request-Response" outputName="runCommandAsyncWithArgsResponse" inputName="runCommandAsyncWithArgs" 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/ExecuteService</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:runCommandAsyncWithArgs> |
<!--Optional:--> |
<executable>?</executable> |
<!--Zero or more repetitions:--> |
<arg>?</arg> |
</ws:runCommandAsyncWithArgs> |
</soapenv:Body> |
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/ExecuteService/runCommandAsyncWithArgs"/></con:call></con:operation><con:operation isOneWay="false" action="" name="runCommandWithArgs" bindingOperationName="runCommandWithArgs" type="Request-Response" outputName="runCommandWithArgsResponse" inputName="runCommandWithArgs" 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/ExecuteService</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:runCommandWithArgs> |
<!--Optional:--> |
<executable>?</executable> |
<!--Zero or more repetitions:--> |
<arg>?</arg> |
<timeout>?</timeout> |
</ws:runCommandWithArgs> |
</soapenv:Body> |
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/ExecuteService/runCommandWithArgs"/></con:call></con:operation><con:operation isOneWay="false" action="" name="runCommandWithSSH" bindingOperationName="runCommandWithSSH" type="Request-Response" outputName="runCommandWithSSHResponse" inputName="runCommandWithSSH" 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/ExecuteService</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:runCommandWithSSH> |
<!--Optional:--> |
<host> |
<hostname>?</hostname> |
<port>?</port> |
<!--Optional:--> |
<user>?</user> |
<!--Optional:--> |
<password>?</password> |
</host> |
<!--Optional:--> |
<command>?</command> |
<timeout>?</timeout> |
</ws:runCommandWithSSH> |
</soapenv:Body> |
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/ExecuteService/runCommandWithSSH"/></con:call></con:operation><con:operation isOneWay="false" action="" name="runCommandWithSSHKeyAuth" bindingOperationName="runCommandWithSSHKeyAuth" type="Request-Response" outputName="runCommandWithSSHKeyAuthResponse" inputName="runCommandWithSSHKeyAuth" 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/ExecuteService</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:runCommandWithSSHKeyAuth> |
<!--Optional:--> |
<host> |
<hostname>?</hostname> |
<port>?</port> |
<!--Optional:--> |
<user>?</user> |
<!--Optional:--> |
<password>?</password> |
</host> |
<!--Optional:--> |
<keyfile>?</keyfile> |
<!--Optional:--> |
<command>?</command> |
<timeout>?</timeout> |
</ws:runCommandWithSSHKeyAuth> |
</soapenv:Body> |
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/ExecuteService/runCommandWithSSHKeyAuth"/></con:call></con:operation><con:operation isOneWay="false" action="" name="runJavaScript" bindingOperationName="runJavaScript" type="Request-Response" outputName="runJavaScriptResponse" inputName="runJavaScript" 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"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/XServices/ExecuteService</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:runJavaScript> |
<!--Optional:--> |
<script><![CDATA[ |
// Equivalent in effect to the Java declaration import java.io.*; |
var bla = JavaImporter(Packages.java.util); |
var blub = JavaImporter(Packages.java.lang); |
with(blub) { |
System.out.println("Mein out: "); |
} |
]]]]>><![CDATA[</script> |
</ws:runJavaScript> |
</soapenv:Body> |
</soapenv:Envelope>]]></con:request><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/ExecuteService/runJavaScript"/><con:wsrmConfig version="1.2"/></con:call></con:operation><con:operation isOneWay="false" action="" name="telnet" bindingOperationName="telnet" type="Request-Response" outputName="telnetResponse" inputName="telnet" 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/ExecuteService</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:telnet> |
<!--Optional:--> |
<host> |
<hostname>?</hostname> |
<port>?</port> |
<hostname>localhost</hostname> |
<port>23</port> |
<!--Optional:--> |
<user>?</user> |
<user>brosenberger</user> |
<!--Optional:--> |
<password>?</password> |
<password/> |
</host> |
<!--Optional:--> |
<prompt>?</prompt> |
<!--Optional:--> |
<command>?</command> |
<!--Optional:--> |
<expect>?</expect> |
<timeout>?</timeout> |
<prompt>C:\Users\brosenberger></prompt> |
<command>dir c:\</command> |
<expect>enberger></expect> |
<timeout>30000</timeout> |
</ws:telnet> |
</soapenv:Body> |
</soapenv:Envelope>]]></con:request><con:wsaConfig mustUnderstand="NONE" version="200508" action="http://ws.xservices.brutex.net/ExecuteService/telnet"/></con:call></con:operation></con:interface><con:properties/><con:wssContainer/></con:soapui-project> |
</soapenv:Envelope> |
/xservices/trunk/src/java/log4j.properties |
---|
File deleted |
\ No newline at end of file |
Property changes: |
Deleted: svn:mime-type |
-text/plain |
\ No newline at end of property |
/xservices/trunk/src/java/quartz.properties |
---|
File deleted |
\ No newline at end of file |
Property changes: |
Deleted: svn:mime-type |
-text/plain |
\ No newline at end of property |
/xservices/trunk/src/java/net/brutex/xservices/ws/JobService.java |
---|
File deleted |
Property changes: |
Deleted: svn:mime-type |
-text/plain |
\ No newline at end of property |
/xservices/trunk/src/java/net/brutex/xservices/ws/ExecuteService.java |
---|
19,7 → 19,6 |
import javax.jws.WebMethod; |
import javax.jws.WebParam; |
import javax.jws.WebService; |
import javax.xml.bind.annotation.XmlElement; |
import net.brutex.xservices.types.HostConnection; |
import net.brutex.xservices.types.ReturnCode; |
27,7 → 26,6 |
/** |
* Task execution web service |
* |
* @author Brian Rosenberger |
* @since 0.1.0 |
* |
132,14 → 130,5 |
@WebParam(name = "command") String cmd, |
@WebParam(name = "expect") String expect, |
@WebParam(name = "timeout") long timeout); |
/** |
* @param script |
* @throws XServicesFault |
*/ |
@WebMethod(operationName = "runJavaScript") |
public abstract void runJScript( |
@WebParam(name = "script") @XmlElement(required=true) String script) throws XServicesFault; |
} |
/xservices/trunk/src/java/net/brutex/xservices/ws/DateService.java |
---|
144,15 → 144,6 |
@WebParam(name=PARAM_DATETIME) @XmlElement(required=true) GregorianCalendar cal, |
@WebParam(name=PARAM_FORMAT) @XmlElement(required=true) String format) throws XServicesFault; |
/** |
* Converts a string into date using pre-defined date formats. |
* |
* @param s Date/ time as string |
* @param format date format |
* @param timezone timezone |
* @return XML Date |
* @throws XServicesFault |
*/ |
@WebMethod(operationName=OPERATION_PARSEDATE) |
public abstract GregorianCalendar parseDate( |
@WebParam(name=PARAM_DATETIME) @XmlElement(required=true) String s, |
159,14 → 150,6 |
@WebParam(name=PARAM_FORMAT) @XmlElement(required=true) DateFormatType format, |
@WebParam(name=PARAM_TIMEZONE) String timezone) throws XServicesFault; |
/** |
* Converts a string into date using any format. |
* @param s date/ time as string |
* @param format date format |
* @param timezone timezone |
* @return XML Date |
* @throws XServicesFault |
*/ |
@WebMethod(operationName=OPERATION_PARSEDATEADVANCED) |
public abstract GregorianCalendar parseDateAdvanced( |
@WebParam(name=PARAM_DATETIME) @XmlElement(required=true) String s, |
/xservices/trunk/src/java/net/brutex/xservices/ws/impl/JobServiceImpl.java |
---|
File deleted |
Property changes: |
Deleted: svn:mime-type |
-text/plain |
\ No newline at end of property |
/xservices/trunk/src/java/net/brutex/xservices/ws/impl/DateServiceImpl.java |
---|
44,7 → 44,7 |
private static String ERR_INVALIDFORMAT = "Invalid format pattern."; |
private static String ERR_INVALIDTIMEZONE = "Invalid timezone."; |
@Override |
public GregorianCalendar getDate(String timezone) throws XServicesFault { |
if (! isValidTimezone(timezone) ) { |
String valid_ids = ""; |
60,7 → 60,7 |
return c; |
} |
@Override |
public BigInteger getTimestamp() { |
Date d = new Date(); |
long l = d.getTime(); |
68,7 → 68,7 |
return timestamp; |
} |
@Override |
public GregorianCalendar getInTimezone(GregorianCalendar cal, |
String timezone) throws XServicesFault { |
if(! isValidTimezone(timezone)) throw new XServicesFault(ERR_INVALIDTIMEZONE); |
77,12 → 77,12 |
return c; |
} |
@Override |
public String formatDate(GregorianCalendar cal, DateFormatType format) throws XServicesFault { |
return formatDateAdvanced(cal, format.format()); |
} |
@Override |
public String formatDateAdvanced(GregorianCalendar cal, String format) |
throws XServicesFault { |
String result= null; |
95,12 → 95,12 |
return result; |
} |
@Override |
public GregorianCalendar parseDate(String s, DateFormatType format, String timezone) throws XServicesFault { |
return parseDateAdvanced(s, format.format(), timezone); |
} |
@Override |
public GregorianCalendar parseDateAdvanced(String s, String format, String timezone) throws XServicesFault { |
SimpleDateFormat f = null; |
Date date = null; |
121,7 → 121,7 |
return cal; |
} |
@Override |
public BigInteger dateTimeDiff(GregorianCalendar fromCal, |
GregorianCalendar toCal) throws XServicesFault { |
long diff = toCal.getTimeInMillis() - fromCal.getTimeInMillis(); |
129,7 → 129,7 |
return d; |
} |
@Override |
public BigInteger dateTimeDiff2(GregorianCalendar fromCal, |
GregorianCalendar toCal, DateTimeUnits unit) throws XServicesFault { |
BigInteger d = dateTimeDiff(fromCal, toCal); |
149,7 → 149,7 |
return d; |
} |
@Override |
public GregorianCalendar dateAdd(GregorianCalendar cal, BigInteger value, DateTimeUnits unit) |
throws XServicesFault { |
switch (unit) { |
/xservices/trunk/src/java/net/brutex/xservices/ws/impl/FileServiceImpl.java |
---|
64,7 → 64,7 |
* @see net.brutex.xservices.ws.impl.FileService#basename(java.lang.String, |
* java.lang.String) |
*/ |
@Override |
public String basename(String filename, String suffix) { |
final String BASENAME_VALUE = "basename.value"; |
Basename basename = new Basename(); |
139,7 → 139,7 |
* net.brutex.xservices.ws.impl.FileService#base64Encode(net.brutex.xservices |
* .types.FileSetResource) |
*/ |
@Override |
public AttachmentType downloadFile(FileResource res) throws XServicesFault { |
InputStream is = null; |
try { |
163,7 → 163,7 |
* net.brutex.xservices.ws.impl.FileService#base64Decode(net.brutex.xservices |
* .types.AttachmentType) |
*/ |
@Override |
public String uploadFile(AttachmentType file) throws XServicesFault { |
DataHandler h = file.getContent(); |
File f = new File(file.getFilename()); |
188,7 → 188,7 |
* net.brutex.xservices.ws.impl.FileService#copy(net.brutex.xservices.types |
* .FileSetResource, java.lang.String, boolean, boolean, java.lang.String) |
*/ |
@Override |
public ReturnCode copy(FileSetResource src, String todir, boolean plm, |
boolean overwrite, String encoding) throws XServicesFault { |
Copy copy = new Copy(); |
213,7 → 213,7 |
return runner.postTask(); |
} |
@Override |
public ReturnCode copyFile(String fromFile, String tofile, boolean overwrite) |
throws XServicesFault { |
Copy copy = new Copy(); |
235,7 → 235,7 |
* net.brutex.xservices.ws.impl.FileService#loadRes(net.brutex.xservices |
* .types.FileResource, java.lang.String) |
*/ |
@Override |
public String loadRes(FileResource res, String encoding) |
throws XServicesFault { |
if (encoding == null || encoding.equals("")) { |
259,7 → 259,7 |
* net.brutex.xservices.ws.impl.FileService#loadResFromArchive(net.brutex |
* .xservices.types.ArchiveResource, java.lang.String) |
*/ |
@Override |
public String loadResFromArchive(ArchiveResource res, String encoding) { |
if (encoding == null || encoding.equals("")) { |
encoding = System.getProperty("file.encoding"); |
282,7 → 282,7 |
* @see net.brutex.xservices.ws.impl.FileService#echo2file(java.lang.String, |
* java.lang.String, java.lang.String, boolean) |
*/ |
@Override |
public ReturnCode echo2file(String message, String file, String encoding, |
boolean append) throws XServicesFault { |
316,7 → 316,7 |
* net.brutex.xservices.ws.impl.FileService#changeOwner(net.brutex.xservices |
* .types.FileSetResource, java.lang.String) |
*/ |
@Override |
public ReturnCode changeOwner(FileSetResource res, String owner) { |
Chown chown = new Chown(); |
chown.setTaskName("Chown"); |
335,7 → 335,7 |
* net.brutex.xservices.ws.impl.FileService#changeGroup(net.brutex.xservices |
* .types.FileSetResource, java.lang.String) |
*/ |
@Override |
public ReturnCode changeGroup(FileSetResource res, String group) { |
Chgrp chgrp = new Chgrp(); |
chgrp.setTaskName("Chgrp"); |
354,7 → 354,7 |
* net.brutex.xservices.ws.impl.FileService#changeMode(net.brutex.xservices |
* .types.FileSetResource, java.lang.String) |
*/ |
@Override |
public ReturnCode changeMode(FileSetResource res, String perm) { |
Chmod chmod = new Chmod(); |
chmod.setTaskName("Chmod"); |
/xservices/trunk/src/java/net/brutex/xservices/ws/impl/ExecuteServiceImpl.java |
---|
17,8 → 17,6 |
package net.brutex.xservices.ws.impl; |
import java.io.File; |
import java.util.UUID; |
import javax.jws.WebMethod; |
import javax.jws.WebParam; |
import javax.jws.WebService; |
25,10 → 23,8 |
import net.brutex.xservices.types.HostConnection; |
import net.brutex.xservices.types.ReturnCode; |
import net.brutex.xservices.util.BrutexNamespaces; |
import net.brutex.xservices.util.JobWrapper; |
import net.brutex.xservices.util.RunTask; |
import net.brutex.xservices.ws.ExecuteService; |
import net.brutex.xservices.ws.XServicesFault; |
import org.apache.tools.ant.taskdefs.ExecTask; |
import org.apache.tools.ant.taskdefs.optional.net.RExecTask; |
35,320 → 31,268 |
import org.apache.tools.ant.taskdefs.optional.net.TelnetTask; |
import org.apache.tools.ant.taskdefs.optional.ssh.SSHExec; |
import org.apache.tools.ant.types.Commandline; |
import org.mozilla.javascript.Context; |
import org.mozilla.javascript.Scriptable; |
import org.quartz.JobBuilder; |
import org.quartz.JobDetail; |
import org.quartz.Scheduler; |
import org.quartz.SchedulerException; |
import org.quartz.Trigger; |
import static org.quartz.TriggerBuilder.*; |
import static org.quartz.SimpleScheduleBuilder.*; |
import org.quartz.TriggerUtils; |
import org.quartz.impl.StdSchedulerFactory; |
import org.quartz.impl.triggers.SimpleTriggerImpl; |
/** |
* |
* |
* @author Brian Rosenberger, bru@brutex.de |
*/ |
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES, endpointInterface = "net.brutex.xservices.ws.ExecuteService", serviceName = "ExecuteService") |
@WebService( |
targetNamespace=BrutexNamespaces.WS_XSERVICES, |
endpointInterface="net.brutex.xservices.ws.ExecuteService", |
serviceName="ExecuteService" |
) |
public class ExecuteServiceImpl implements ExecuteService { |
/* |
* (non-Javadoc) |
* |
* @see |
* net.brutex.xservices.ws.impl.ExecuteService#runCommand(java.lang.String, |
* java.lang.String, long) |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.impl.ExecuteService#runCommand(java.lang.String, java.lang.String, long) |
*/ |
@Override |
@WebMethod(operationName = "runCommand") |
public ReturnCode runCommand(@WebParam(name = "executable") String cmd, |
@WebParam(name = "argline") String args, |
@WebParam(name = "timeout") long timeout) { |
public ReturnCode runCommand(@WebParam(name = "executable") String cmd, |
@WebParam(name = "argline") String args, |
@WebParam(name = "timeout") long timeout) { |
return executeCommand(cmd, Commandline.translateCommandline(args), |
null, false, null, false, true, false, timeout); |
} |
return executeCommand(cmd, |
Commandline.translateCommandline(args), |
null, |
false, |
null, |
false, |
true, |
false, |
timeout); |
} |
/* |
* (non-Javadoc) |
* |
* @see |
* net.brutex.xservices.ws.impl.ExecuteService#runCommandWithArgs(java.lang |
* .String, java.lang.String[], long) |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.impl.ExecuteService#runCommandWithArgs(java.lang.String, java.lang.String[], long) |
*/ |
@Override |
@WebMethod(operationName = "runCommandWithArgs") |
public ReturnCode runCommandWithArgs( |
@WebParam(name = "executable") String cmd, |
@WebParam(name = "arg") String[] args, |
@WebParam(name = "timeout") long timeout) { |
public ReturnCode runCommandWithArgs(@WebParam(name = "executable") String cmd, |
@WebParam(name = "arg") String[] args, |
@WebParam(name = "timeout") long timeout) { |
return executeCommand(cmd, args, null, false, null, false, true, false, |
timeout); |
} |
return executeCommand(cmd, |
args, |
null, |
false, |
null, |
false, |
true, |
false, |
timeout); |
} |
/* |
* (non-Javadoc) |
* |
* @see |
* net.brutex.xservices.ws.impl.ExecuteService#runCommandAsync(java.lang |
* .String, java.lang.String) |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.impl.ExecuteService#runCommandAsync(java.lang.String, java.lang.String) |
*/ |
@Override |
@WebMethod(operationName = "runCommandAsync") |
public ReturnCode runCommandAsync( |
@WebParam(name = "executable") String cmd, |
@WebParam(name = "argline") String args) { |
public ReturnCode runCommandAsync(@WebParam(name = "executable") String cmd, |
@WebParam(name = "argline") String args) { |
return executeCommand(cmd, Commandline.translateCommandline(args), |
null, true, null, false, true, false, 0); |
} |
return executeCommand(cmd, |
Commandline.translateCommandline(args), |
null, |
true, |
null, |
false, |
true, |
false, |
0); |
} |
/* |
* (non-Javadoc) |
* |
* @see |
* net.brutex.xservices.ws.impl.ExecuteService#runCommandAsyncWithArgs(java |
* .lang.String, java.lang.String[]) |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.impl.ExecuteService#runCommandAsyncWithArgs(java.lang.String, java.lang.String[]) |
*/ |
@Override |
@WebMethod(operationName = "runCommandAsyncWithArgs") |
public ReturnCode runCommandAsyncWithArgs( |
@WebParam(name = "executable") String cmd, |
@WebParam(name = "arg") String[] args) { |
public ReturnCode runCommandAsyncWithArgs(@WebParam(name = "executable") String cmd, |
@WebParam(name = "arg") String[] args) { |
return executeCommand(cmd, args, null, true, null, false, true, false, |
0); |
} |
return executeCommand(cmd, |
args, |
null, |
true, |
null, |
false, |
true, |
false, |
0); |
} |
/* |
* (non-Javadoc) |
* |
* @see |
* net.brutex.xservices.ws.impl.ExecuteService#runCommandWithSSH(java.lang |
* .String, int, java.lang.String, java.lang.String, java.lang.String, long) |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.impl.ExecuteService#runCommandWithSSH(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, long) |
*/ |
@Override |
@WebMethod(operationName = "runCommandWithSSH") |
public ReturnCode runCommandWithSSH( |
@WebParam(name = "host") HostConnection host, |
@WebParam(name = "command") String cmd, |
@WebParam(name = "timeout") long timeout) { |
public ReturnCode runCommandWithSSH(@WebParam(name = "host") HostConnection host, |
@WebParam(name = "command") String cmd, |
@WebParam(name = "timeout") long timeout) { |
return sshExec(host.hostname, host.user, host.password, host.port, cmd, |
timeout); |
} |
return sshExec(host.hostname, host.user, host.password, host.port, cmd, timeout); |
} |
/* |
* (non-Javadoc) |
* |
* @see |
* net.brutex.xservices.ws.impl.ExecuteService#runCommandWithSSHKeyAuth( |
* java.lang.String, int, java.lang.String, java.lang.String, |
* java.lang.String, java.lang.String, long) |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.impl.ExecuteService#runCommandWithSSHKeyAuth(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long) |
*/ |
@Override |
@WebMethod(operationName = "runCommandWithSSHKeyAuth") |
public ReturnCode runCommandWithSSHKeyAuth( |
@WebParam(name = "host") HostConnection host, |
@WebParam(name = "keyfile") String keyfile, |
@WebParam(name = "command") String cmd, |
@WebParam(name = "timeout") long timeout) { |
public ReturnCode runCommandWithSSHKeyAuth(@WebParam(name = "host") HostConnection host, |
@WebParam(name = "keyfile") String keyfile, |
@WebParam(name = "command") String cmd, |
@WebParam(name = "timeout") long timeout) { |
return sshExecWithCert(host.hostname, host.user, host.password, |
keyfile, host.port, cmd, timeout); |
} |
return sshExecWithCert(host.hostname, host.user, host.password, keyfile, host.port, cmd, timeout); |
} |
/* |
* (non-Javadoc) |
* |
* @see |
* net.brutex.xservices.ws.impl.ExecuteService#rExec(net.brutex.xservices |
* .types.HostConnection, java.lang.String, long) |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.impl.ExecuteService#rExec(net.brutex.xservices.types.HostConnection, java.lang.String, long) |
*/ |
@Override |
@WebMethod(operationName = "rExec") |
public ReturnCode rExec(@WebParam(name = "host") HostConnection host, |
@WebParam(name = "command") String cmd, |
@WebParam(name = "timeout") long timeout) { |
return rexec(host.hostname, host.port, host.user, host.password, cmd, |
timeout); |
} |
public ReturnCode rExec(@WebParam(name = "host") HostConnection host, |
@WebParam(name = "command") String cmd, |
@WebParam(name = "timeout") long timeout) { |
return rexec(host.hostname, host.port, host.user, host.password, cmd, timeout); |
} |
/* |
* (non-Javadoc) |
* |
* @see |
* net.brutex.xservices.ws.impl.ExecuteService#runTelnet(net.brutex.xservices |
* .types.HostConnection, java.lang.String, java.lang.String, |
* java.lang.String, long) |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.impl.ExecuteService#runTelnet(net.brutex.xservices.types.HostConnection, java.lang.String, java.lang.String, java.lang.String, long) |
*/ |
@Override |
@WebMethod(operationName = "telnet") |
public ReturnCode runTelnet(@WebParam(name = "host") HostConnection host, |
@WebParam(name = "prompt") String prompt, |
@WebParam(name = "command") String cmd, |
@WebParam(name = "expect") String expect, |
@WebParam(name = "timeout") long timeout) { |
return telnet(host.hostname, host.port, host.user, host.password, cmd, |
timeout, prompt, expect); |
} |
public ReturnCode runTelnet(@WebParam(name = "host") HostConnection host, |
@WebParam(name = "prompt") String prompt, |
@WebParam(name = "command") String cmd, |
@WebParam(name = "expect") String expect, |
@WebParam(name = "timeout") long timeout) { |
return telnet(host.hostname, host.port, host.user, host.password, cmd, timeout, prompt, expect); |
} |
public void runJScript(String script) throws XServicesFault { |
@WebMethod(exclude = true) |
private ReturnCode executeCommand(String executable, |
String[] args, |
File dir, |
boolean spawn, |
String inputstring, |
boolean newenvironment, |
boolean vmlauncher, |
boolean searchpath, |
long timeout) { |
ExecTask exe = new ExecTask(); |
RunTask runner = new RunTask(exe); |
try { |
// Create and enter a Context. A Context stores information about |
// the execution environment of a script. |
Context cx = Context.enter(); |
cx.setOptimizationLevel(0); |
cx.setLanguageVersion(Context.VERSION_1_7); |
// cx is the Context instance you're using to run scripts |
/* |
* cx.setClassShutter(new ClassShutter() { public boolean |
* visibleToScripts(String className) { |
* if(className.startsWith("adapter")) return true; |
* if(className.startsWith("java.lang.System") || |
* className.startsWith |
* ("org.apache.tomcat.util.log.SystemLogHandler")) return true; |
* System.out.println(className + " is blocked."); return false; } |
* }); |
*/ |
/* |
Commandline cmdl = new Commandline(); |
cmdl.setExecutable(executable); |
cmdl.addArguments(args); |
System.out.println(cmdl.describeCommand()); |
*/ |
exe.setExecutable(executable); |
for (String s : args) { |
exe.createArg().setValue(s); |
} |
// Initialise the standard objects (Object, Function, etc.). This |
// must be done before scripts can be |
// executed. The null parameter tells initStandardObjects |
// to create and return a scope object that we use |
// in later calls. |
Scriptable scope = cx.initStandardObjects(); |
// Object wrappedOut = Context.javaToJS(System.out, scope); |
// Object wrappedOut2 = Context.javaToJS(this, scope); |
// scope.put("out", scope, wrappedOut); |
// scope.put("exe", scope, wrappedOut2); |
exe.setDir(dir); |
if (spawn) { |
exe.setSpawn(spawn); |
} else { |
exe.setTimeout(timeout); |
exe.setInputString(inputstring); |
exe.setOutputproperty("ExecuteService.stdout"); |
exe.setErrorProperty("ExecuteService.stderr"); |
exe.setResultProperty("ExecuteService.result"); |
} |
// Execute the script |
// cx.evaluateString(scope, "importClass('java.lang.System');\n", |
// "head", 1, null); |
// cx.evaluateString(scope, "importPackage('java.util');\n", "head", |
// 2, null); |
Object obj = cx |
.evaluateString(scope, script, "TestScript", 1, null); |
exe.setNewenvironment(newenvironment); |
exe.setVMLauncher(vmlauncher); |
exe.setSearchPath(searchpath); |
} catch (Exception e) { |
System.out.println(e.getMessage()); |
} finally { |
// Exit the Context. This removes the association between the |
// Context and the current thread and is an |
// essential cleanup action. There should be a call to exit for |
// every call to enter. |
Context.exit(); |
} |
return runner.postTask(); |
} |
} |
@WebMethod(exclude = true) |
private ReturnCode sshExec(String host, |
String username, |
String password, |
int port, |
String command, |
long timeout) { |
SSHExec sshexec = new SSHExec(); |
RunTask runner = new RunTask(sshexec); |
sshexec.setHost(host); |
sshexec.setUsername(username); |
sshexec.setPassword(password); |
sshexec.setPort(port); |
sshexec.setCommand(command); |
sshexec.setTrust(true); |
sshexec.setTimeout(timeout); |
sshexec.setOutputproperty("SSHExec.stdout"); |
return runner.postTask(); |
} |
@WebMethod(exclude = true) |
private ReturnCode executeCommand(String executable, String[] args, |
File dir, boolean spawn, String inputstring, |
boolean newenvironment, boolean vmlauncher, boolean searchpath, |
long timeout) { |
ExecTask exe = new ExecTask(); |
RunTask runner = new RunTask(exe); |
@WebMethod(exclude = true) |
private ReturnCode sshExecWithCert(String host, |
String username, |
String passphrase, |
String keyfile, |
int port, |
String command, |
long timeout) { |
SSHExec sshexec = new SSHExec(); |
RunTask runner = new RunTask(sshexec); |
sshexec.setHost(host); |
sshexec.setUsername(username); |
sshexec.setKeyfile(keyfile); |
sshexec.setPassphrase(passphrase); |
sshexec.setPort(port); |
sshexec.setCommand(command); |
sshexec.setTrust(true); |
sshexec.setTimeout(timeout); |
sshexec.setOutputproperty("SSHExec.stdout"); |
return runner.postTask(); |
} |
/* |
* Commandline cmdl = new Commandline(); cmdl.setExecutable(executable); |
* cmdl.addArguments(args); System.out.println(cmdl.describeCommand()); |
*/ |
@WebMethod(exclude = true) |
private ReturnCode rexec(String host, |
int port, |
String username, |
String password, |
String command, |
long timeout) { |
RExecTask rexec = new RExecTask(); |
RunTask runner = new RunTask(rexec); |
rexec.setServer(host); |
rexec.setPort(port); |
rexec.setUserid(username); |
rexec.setPassword(password); |
rexec.setCommand(command); |
rexec.setTimeout((int) Math.round(timeout)); |
exe.setExecutable(executable); |
for (String s : args) { |
exe.createArg().setValue(s); |
} |
return runner.postTask(); |
} |
exe.setDir(dir); |
if (spawn) { |
exe.setSpawn(spawn); |
} else { |
exe.setTimeout(timeout); |
exe.setInputString(inputstring); |
exe.setOutputproperty("ExecuteService.stdout"); |
exe.setErrorProperty("ExecuteService.stderr"); |
exe.setResultProperty("ExecuteService.result"); |
} |
@WebMethod(exclude = true) |
private ReturnCode telnet(String host, |
int port, |
String username, |
String password, |
String command, |
long timeout, String prompt, String expect) { |
TelnetTask rexec = new TelnetTask(); |
RunTask runner = new RunTask(rexec); |
rexec.setServer(host); |
rexec.setPort(port); |
rexec.setUserid(username); |
rexec.setPassword(password); |
rexec.setTimeout((int) Math.round(timeout)); |
rexec.createRead().addText(prompt); |
rexec.createWrite().addText(command); |
rexec.createRead().addText(expect); |
exe.setNewenvironment(newenvironment); |
exe.setVMLauncher(vmlauncher); |
exe.setSearchPath(searchpath); |
return runner.postTask(); |
} |
@WebMethod(exclude = true) |
private ReturnCode sshExec(String host, String username, String password, |
int port, String command, long timeout) { |
SSHExec sshexec = new SSHExec(); |
RunTask runner = new RunTask(sshexec); |
sshexec.setHost(host); |
sshexec.setUsername(username); |
sshexec.setPassword(password); |
sshexec.setPort(port); |
sshexec.setCommand(command); |
sshexec.setTrust(true); |
sshexec.setTimeout(timeout); |
sshexec.setOutputproperty("SSHExec.stdout"); |
return runner.postTask(); |
} |
@WebMethod(exclude = true) |
private ReturnCode sshExecWithCert(String host, String username, |
String passphrase, String keyfile, int port, String command, |
long timeout) { |
SSHExec sshexec = new SSHExec(); |
RunTask runner = new RunTask(sshexec); |
sshexec.setHost(host); |
sshexec.setUsername(username); |
sshexec.setKeyfile(keyfile); |
sshexec.setPassphrase(passphrase); |
sshexec.setPort(port); |
sshexec.setCommand(command); |
sshexec.setTrust(true); |
sshexec.setTimeout(timeout); |
sshexec.setOutputproperty("SSHExec.stdout"); |
return runner.postTask(); |
} |
@WebMethod(exclude = true) |
private ReturnCode rexec(String host, int port, String username, |
String password, String command, long timeout) { |
RExecTask rexec = new RExecTask(); |
RunTask runner = new RunTask(rexec); |
rexec.setServer(host); |
rexec.setPort(port); |
rexec.setUserid(username); |
rexec.setPassword(password); |
rexec.setCommand(command); |
rexec.setTimeout((int) Math.round(timeout)); |
return runner.postTask(); |
} |
@WebMethod(exclude = true) |
private ReturnCode telnet(String host, int port, String username, |
String password, String command, long timeout, String prompt, |
String expect) { |
TelnetTask rexec = new TelnetTask(); |
RunTask runner = new RunTask(rexec); |
rexec.setServer(host); |
rexec.setPort(port); |
rexec.setUserid(username); |
rexec.setPassword(password); |
rexec.setTimeout((int) Math.round(timeout)); |
rexec.createRead().addText(prompt); |
rexec.createWrite().addText(command); |
rexec.createRead().addText(expect); |
return runner.postTask(); |
} |
return runner.postTask(); |
} |
} |
/xservices/trunk/src/java/net/brutex/xservices/ws/impl/ArchiveServiceImpl.java |
---|
22,7 → 22,9 |
import net.brutex.xservices.types.ArchiveResource; |
import net.brutex.xservices.types.CompressionType; |
import net.brutex.xservices.types.FileResource; |
import net.brutex.xservices.types.FileSetResource; |
import net.brutex.xservices.types.ResourceInterface; |
import net.brutex.xservices.types.ResourceSetInterface; |
import net.brutex.xservices.types.ReturnCode; |
import net.brutex.xservices.util.BrutexNamespaces; |
import net.brutex.xservices.util.RunTask; |
50,6 → 52,7 |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.ArchiveService#bzip2(net.brutex.xservices.types.FileResource, java.lang.String) |
*/ |
@Override |
@WebMethod(operationName = WS_OPERATION_BZIP2, action = WS_OPERATION_BZIP2) |
public ReturnCode bzip2(@WebParam(name = WS_PARAM_SOURCEFILE) FileResource src, |
@WebParam(name = WS_PARAM_DESTFILE) String file) { |
59,7 → 62,7 |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.ArchiveService#bzip2FromArchive(net.brutex.xservices.types.ArchiveResource, java.lang.String) |
*/ |
@Override |
@WebMethod(operationName = WS_OPERATION_BZIP2_ARCHIVE, action = WS_OPERATION_BZIP2_ARCHIVE) |
public ReturnCode bzip2FromArchive(@WebParam(name = WS_PARAM_SOURCEARCHIVE) ArchiveResource src, |
@WebParam(name = WS_PARAM_DESTFILE) String file) { |
69,7 → 72,7 |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.ArchiveService#gzip(net.brutex.xservices.types.FileResource, java.lang.String) |
*/ |
@Override |
@WebMethod(operationName = WS_OPERATION_GZIP, action = WS_OPERATION_GZIP) |
public ReturnCode gzip(@WebParam(name = WS_PARAM_SOURCEFILE) FileResource src, |
@WebParam(name = WS_PARAM_DESTFILE) String file) { |
79,7 → 82,7 |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.ArchiveService#gzipFromArchive(net.brutex.xservices.types.ArchiveResource, java.lang.String) |
*/ |
@Override |
@WebMethod(operationName = WS_OPERATION_GZIP_ARCHIVE, action = WS_OPERATION_GZIP_ARCHIVE) |
public ReturnCode gzipFromArchive(@WebParam(name = WS_PARAM_SOURCEARCHIVE) ArchiveResource src, |
@WebParam(name = WS_PARAM_DESTFILE) String file) { |
89,7 → 92,7 |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.ArchiveService#gunzip(java.lang.String, java.lang.String) |
*/ |
@Override |
@WebMethod(operationName = WS_OPERATION_GUNZIP, action = WS_OPERATION_GUNZIP) |
public ReturnCode gunzip(@WebParam(name = WS_PARAM_SOURCEFILE_STRING) String src, |
@WebParam(name = WS_PARAM_DESTDIR) String dest) { |
103,7 → 106,7 |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.ArchiveService#bunzip2(java.lang.String, java.lang.String) |
*/ |
@Override |
@WebMethod(operationName = WS_OPERATION_BUNZIP2) |
public ReturnCode bunzip2(@WebParam(name = WS_PARAM_SOURCEFILE_STRING) String src, |
@WebParam(name = WS_PARAM_DESTDIR) String dest) { |
117,7 → 120,7 |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.ArchiveService#gunzipFromURL(java.lang.String, java.lang.String) |
*/ |
@Override |
@WebMethod(operationName = "gunzipFromURL") |
public ReturnCode gunzipFromURL(@WebParam(name = WS_PARAM_SOURCEURL) String src, |
@WebParam(name = WS_PARAM_DESTDIR) String dest) { |
131,7 → 134,7 |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.ArchiveService#bunzip2FromURL(java.lang.String, java.lang.String) |
*/ |
@Override |
@WebMethod(operationName = "bunzip2FromURL") |
public ReturnCode bunzip2FromURL(@WebParam(name = WS_PARAM_SOURCEURL) String src, |
@WebParam(name = WS_PARAM_DESTDIR) String dest) { |
145,7 → 148,7 |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.ArchiveService#zip(net.brutex.xservices.types.FileResource, java.lang.String, boolean, java.lang.String, int) |
*/ |
@Override |
@WebMethod(operationName = "zip") |
public ReturnCode zip(@WebParam(name = WS_PARAM_SOURCEFILE) FileResource src, |
@WebParam(name = WS_PARAM_DESTFILE) String file, |
164,7 → 167,7 |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.ArchiveService#zipFromArchive(net.brutex.xservices.types.ArchiveResource, java.lang.String, boolean, java.lang.String, int) |
*/ |
@Override |
@WebMethod(operationName = "zipFromArchive") |
public ReturnCode zipFromArchive(@WebParam(name = WS_PARAM_SOURCEARCHIVE) ArchiveResource src, |
@WebParam(name = WS_PARAM_DESTFILE) String file, |
177,7 → 180,7 |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.ArchiveService#unzip(java.lang.String, java.lang.String, boolean, java.lang.String) |
*/ |
@Override |
@WebMethod(operationName = "unzip") |
public ReturnCode unzip(@WebParam(name = WS_PARAM_SOURCEFILE_STRING) String src, |
@WebParam(name = WS_PARAM_DESTDIR) String dest, |
189,7 → 192,7 |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.ArchiveService#unrar(java.lang.String, java.lang.String) |
*/ |
@Override |
@WebMethod(operationName = "unrar") |
public ReturnCode unrar(@WebParam(name = WS_PARAM_SOURCEFILE_STRING) String src, |
@WebParam(name = WS_PARAM_DESTDIR) String dest) { |
199,7 → 202,7 |
/* (non-Javadoc) |
* @see net.brutex.xservices.ws.ArchiveService#untar(java.lang.String, java.lang.String, boolean, net.brutex.xservices.types.CompressionType) |
*/ |
@Override |
@WebMethod(operationName = "untar") |
public ReturnCode untar(@WebParam(name = WS_PARAM_SOURCEFILE_STRING) String src, |
@WebParam(name = WS_PARAM_DESTDIR) String dest, |
/xservices/trunk/src/java/net/brutex/xservices/ws/FileService.java |
---|
26,6 → 26,8 |
import org.apache.cxf.annotations.WSDLDocumentation; |
import org.apache.cxf.annotations.WSDLDocumentationCollection; |
import com.sun.xml.internal.ws.api.model.wsdl.WSDLDescriptorKind; |
import net.brutex.xservices.types.ArchiveResource; |
import net.brutex.xservices.types.AttachmentType; |
import net.brutex.xservices.types.FileResource; |
35,10 → 37,7 |
import net.brutex.xservices.util.BrutexNamespaces; |
import net.brutex.xservices.util.XServicesDocumentation; |
/** |
* File related web service operations. |
* |
* @author Brian Rosenberger |
* @since 0.3.0 |
* |
*/ |
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES) |
49,25 → 48,21 |
) |
public interface FileService { |
final String OPERATION_BASENAME ="basename"; |
final String OPERATION_DOWNLOADFILE ="downloadFile"; |
final String OPERATION_UPLOADFILE ="uploadFile"; |
final String OPERATION_COPY ="copy"; |
final String OPERATION_COPYFILE ="copyFile"; |
final String OPERATION_LOADRESOURCE = "loadResource"; |
final String OPERATION_LOADRESOURCEFROMARCHIVE = "loadResourceFromArchive"; |
final String OPERATION_ECHOTOFILE = "echoToFile"; |
final String OPERATION_CHANGEOWNER = "changeOwner"; |
final String OPERATION_CHANGEMODE = "changeMode"; |
final String OPERATION_CHANGEGROUP = "changeGroup"; |
final String OPERATION_REPLACEINFILE = "replaceInFile"; |
final String OPERATION_REPLACEINFILE2 = "replaceInFile2"; |
final String OPERATION_REPLACEINFILEREGEX = "replaceInFileRegEx"; |
public static final String OPERATION_BASENAME ="basename"; |
public static final String OPERATION_DOWNLOADFILE ="downloadFile"; |
public static final String OPERATION_UPLOADFILE ="uploadFile"; |
public static final String OPERATION_COPY ="copy"; |
public static final String OPERATION_COPYFILE ="copyFile"; |
public static final String OPERATION_LOADRESOURCE = "loadResource"; |
public static final String OPERATION_LOADRESOURCEFROMARCHIVE = "loadResourceFromArchive"; |
public static final String OPERATION_ECHOTOFILE = "echoToFile"; |
public static final String OPERATION_CHANGEOWNER = "changeOwner"; |
public static final String OPERATION_CHANGEMODE = "changeMode"; |
public static final String OPERATION_CHANGEGROUP = "changeGroup"; |
public static final String OPERATION_REPLACEINFILE = "replaceInFile"; |
public static final String OPERATION_REPLACEINFILE2 = "replaceInFile2"; |
public static final String OPERATION_REPLACEINFILEREGEX = "replaceInFileRegEx"; |
final String PARAM_FILE = "file"; |
final String PARAM_ENCODING = "encoding"; |
final String PARAM_OVERRIDE = "override"; |
/** |
* @param filename |
* @param suffix |
76,7 → 71,7 |
@WSDLDocumentation(value = "The base name of the given file excluding the suffix.") |
@WebMethod(operationName = OPERATION_BASENAME) |
public abstract String basename( |
@WebParam(name = PARAM_FILE) @XmlElement(required=true) String filename, |
@WebParam(name = "file") @XmlElement(required=true) String filename, |
@WebParam(name = "suffix") String suffix); |
/** |
97,7 → 92,7 |
@WSDLDocumentation(XServicesDocumentation.SERVICE_OPERATION_UPLOADFILE) |
@WebMethod(operationName = OPERATION_UPLOADFILE) |
public abstract String uploadFile( |
@WebParam(name = PARAM_FILE) AttachmentType file) throws XServicesFault; |
@WebParam(name = "file") AttachmentType file) throws XServicesFault; |
/** |
* @param src |
114,8 → 109,8 |
@WebParam(name = FileSetResource.XML_NAME) @XmlElement(required=true) FileSetResource src, |
@WebParam(name = "todir") @XmlElement(required=true) String todir, |
@WebParam(name = "preservelastmodified") boolean plm, |
@WebParam(name = PARAM_OVERRIDE) boolean overwrite, |
@WebParam(name = PARAM_ENCODING) String encoding) throws XServicesFault; |
@WebParam(name = "overwrite") boolean overwrite, |
@WebParam(name = "encoding") String encoding) throws XServicesFault; |
/** |
* @param fromFile |
129,7 → 124,7 |
public abstract ReturnCode copyFile( |
@WebParam(name = "fromFile") @XmlElement(required=true) String fromFile, |
@WebParam(name = "toFile") @XmlElement(required=true) String tofile, |
@WebParam(name = PARAM_OVERRIDE) boolean overwrite) throws XServicesFault; |
@WebParam(name = "overwrite") boolean overwrite) throws XServicesFault; |
/** |
* @param res |
141,7 → 136,7 |
@WebMethod(operationName = OPERATION_LOADRESOURCE) |
public abstract String loadRes( |
@WebParam(name = FileResource.XML_NAME) FileResource res, |
@WebParam(name = PARAM_ENCODING) String encoding) throws XServicesFault; |
@WebParam(name = "encoding") String encoding) throws XServicesFault; |
/** |
* @param res |
153,7 → 148,7 |
@WebMethod(operationName = OPERATION_LOADRESOURCEFROMARCHIVE) |
public abstract String loadResFromArchive( |
@WebParam(name = "archiveresource") ArchiveResource res, |
@WebParam(name = PARAM_ENCODING) String encoding) throws XServicesFault; |
@WebParam(name = "encoding") String encoding) throws XServicesFault; |
/** |
* @param message |
167,18 → 162,14 |
@WebMethod(operationName = OPERATION_ECHOTOFILE) |
public abstract ReturnCode echo2file( |
@WebParam(name = "message") @XmlElement(required=true) String message, |
@WebParam(name = PARAM_FILE) @XmlElement(required=true) String file, |
@WebParam(name = PARAM_ENCODING) String encoding, |
@WebParam(name = "file") @XmlElement(required=true) String file, |
@WebParam(name = "encoding") String encoding, |
@WebParam(name = "append") boolean append) throws XServicesFault; |
/** |
* Changes the owner of a file or all files inside specified directories. |
* Right now it has effect only under Unix/ Linux as it is implemented through |
* the 'chown' command. |
* |
* @param res Collection of files/ directories |
* @param owner Identifier of the new owner |
* @return |
* @param res |
* @param owner |
* @return |
*/ |
@WebMethod(operationName = OPERATION_CHANGEOWNER) |
public abstract ReturnCode changeOwner( |
186,12 → 177,8 |
@WebParam(name = "owner") @XmlElement(required=true) String owner); |
/** |
* Changes the group owner of a file or all files inside specified directories. |
* Right now it has effect only under Unix/ Linux as it is implemented through |
* the 'chgrp' command. |
* |
* @param res Collection of files/ directories |
* @param group Identifier of the new group owner |
* @param res |
* @param group |
* @return |
*/ |
@WebMethod(operationName = OPERATION_CHANGEGROUP) |
/xservices/trunk/src/java/net/brutex/xservices/ws/MiscService.java |
---|
28,7 → 28,6 |
/** |
* |
* @author Brian Rosenberger, bru@brutex.de |
* @since 0.4.0 |
*/ |
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES) |
public interface MiscService { |
/xservices/trunk/src/java/net/brutex/xservices/types/ScheduledJob.java |
---|
File deleted |
Property changes: |
Deleted: svn:mime-type |
-text/plain |
\ No newline at end of property |
/xservices/trunk/src/java/net/brutex/xservices/types/ReturnCode.java |
---|
86,6 → 86,4 |
} |
return null; |
} |
public String getStdOut() { return this.stdOut; } |
} |
/xservices/trunk/src/java/net/brutex/xservices/util/JobWrapper.java |
---|
File deleted |
\ No newline at end of file |
Property changes: |
Deleted: svn:mime-type |
-text/plain |
\ No newline at end of property |
/xservices/trunk/src/java/net/brutex/xservices/util/BrutexQuartzConnectionProvider.java |
---|
File deleted |
Property changes: |
Deleted: svn:mime-type |
-text/plain |
\ No newline at end of property |
/xservices/trunk/web/WEB-INF/data/QRTZ_PAUSED_TRIGGER_GRPS.ddl |
---|
File deleted |
\ No newline at end of file |
/xservices/trunk/web/WEB-INF/data/QRTZ_SIMPROP_TRIGGERS.ddl |
---|
File deleted |
\ No newline at end of file |
/xservices/trunk/web/WEB-INF/data/QRTZ_SIMPLE_TRIGGERS.ddl |
---|
File deleted |
\ No newline at end of file |
/xservices/trunk/web/WEB-INF/data/QRTZ_FIRED_TRIGGERS.ddl |
---|
File deleted |
\ No newline at end of file |
/xservices/trunk/web/WEB-INF/data/QRTZ_JOB_DETAILS.ddl |
---|
File deleted |
\ No newline at end of file |
/xservices/trunk/web/WEB-INF/data/QRTZ_BLOB_TRIGGERS.ddl |
---|
File deleted |
\ No newline at end of file |
/xservices/trunk/web/WEB-INF/data/QRTZ_TRIGGERS.ddl |
---|
File deleted |
\ No newline at end of file |
/xservices/trunk/web/WEB-INF/data/QRTZ_CRON_TRIGGERS.ddl |
---|
File deleted |
\ No newline at end of file |
/xservices/trunk/web/WEB-INF/data/QRTZ_LOCKS.ddl |
---|
File deleted |
\ No newline at end of file |
/xservices/trunk/web/WEB-INF/data/QRTZ_CALENDARS.ddl |
---|
File deleted |
\ No newline at end of file |
/xservices/trunk/web/WEB-INF/data/QRTZ_SCHEDULER_STATE.ddl |
---|
File deleted |
\ No newline at end of file |
/xservices/trunk/web/WEB-INF/cxf-beans.xml |
---|
40,11 → 40,7 |
<jaxws:endpoint id="executeservice" |
implementor="net.brutex.xservices.ws.impl.ExecuteServiceImpl" address="/ExecuteService" /> |
<jaxws:endpoint id="jobservice" |
implementor="net.brutex.xservices.ws.impl.JobServiceImpl" address="/JobService" /> |
<jaxws:endpoint id="miscservice" |
implementor="net.brutex.xservices.ws.impl.MiscServiceImpl" address="/MiscService" /> |
</beans> |
/xservices/trunk/web/WEB-INF/web.xml |
---|
2,51 → 2,16 |
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> |
<context-param> |
<param-name>contextConfigLocation</param-name> |
<param-value>/WEB-INF/cxf-beans.xml</param-value> |
<param-value>WEB-INF/cxf-beans.xml</param-value> |
</context-param> |
<context-param> |
<param-name>quartz:config-file</param-name> |
<param-value>quartz.properties</param-value> |
</context-param> |
<context-param> |
<param-name>quartz:shutdown-on-unload</param-name> |
<param-value>true</param-value> |
</context-param> |
<context-param> |
<param-name>quartz:wait-on-shutdown</param-name> |
<param-value>false</param-value> |
</context-param> |
<context-param> |
<param-name>quartz:start-scheduler-on-load</param-name> |
<param-value>true</param-value> |
</context-param> |
<listener> |
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
</listener> |
<listener> |
<listener-class> |
org.quartz.ee.servlet.QuartzInitializerListener |
</listener-class> |
</listener> |
<servlet> |
<servlet-name>XServices</servlet-name> |
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class> |
<load-on-startup>1</load-on-startup> |
</servlet> |
<servlet> |
<servlet-name>QuartzInitializer</servlet-name> |
<servlet-class>org.quartz.ee.servlet.QuartzInitializerServlet</servlet-class> |
<init-param> |
<param-name>shutdown-on-unload</param-name> |
<param-value>true</param-value> |
</init-param> |
<load-on-startup>2</load-on-startup> |
</servlet> |
<servlet-mapping> |
<servlet-name>XServices</servlet-name> |
<url-pattern>/*</url-pattern> |
/xservices/trunk/lib/derbytools.jar |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Deleted: svn:mime-type |
-application/octet-stream |
\ No newline at end of property |
/xservices/trunk/lib/log4j-1.2.16.jar |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Deleted: svn:mime-type |
-application/octet-stream |
\ No newline at end of property |
/xservices/trunk/lib/quartz-all-2.0.1.jar |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Deleted: svn:mime-type |
-application/octet-stream |
\ No newline at end of property |
/xservices/trunk/lib/derby.jar |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Deleted: svn:mime-type |
-application/octet-stream |
\ No newline at end of property |