Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[alf-dev] CmdLine Web Service


The first pass of the CmdLine Web Service is up and running on the Catalyst Tomcat instance.
The service takes 2 parameters:

1. Working directory to cd to
2. String array of the Command Line, including the command and parameters.


For example:

Working directory:  c:\ALFWorkspace
Cmd String Array:  {"cvs", "checkout", "org.eclipse.ui.examples.rcp"}

This will checkout the org.eclipse.ui.examples.rcp CVS module assuming
that the CVSROOT environment variable is set.

Note: The Web Service will wait until the Cmd Line has finished before returning. Use { "cmd.exe", "/c", "start", .....} for the Web Service to return immediately.

Note 2: Use cmd.exe /c to run batch files.


WSDL:



<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://www.openmake.com"; xmlns:impl="http://www.openmake.com"; xmlns:apachesoap="http://xml.apache.org/xml-soap"; xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; name="OpenmakeServer" >
<wsdl:types>
<schema targetNamespace="http://www.openmake.com"; xmlns="http://www.w3.org/2001/XMLSchema"; >

    <element name="executeCmdLine" >
    <complexType>
     <sequence>
      <element name="Directory" type="xsd:string" />
      <element name="Args" type="xsd:string"   maxOccurs="unbounded" />
     </sequence>
    </complexType>
   </element>
   <element name="executeCmdLineResponse" >
    <complexType>
     <sequence>
<element name="executeCmdLineReturn" type="xsd:string" maxOccurs="unbounded" />
     </sequence>
    </complexType>
   </element>

 </schema>
 </wsdl:types>

  <wsdl:message name="executeCmdLine" >
    <wsdl:part name="parameters" element="impl:executeCmdLine" />
  </wsdl:message>
 <wsdl:message name="executeCmdLineResponse" >
   <wsdl:part name="parameters" element="impl:executeCmdLineResponse" />
 </wsdl:message>

 <wsdl:portType name="CmdLine" >
  <wsdl:operation name="executeCmdLine" >
   <wsdl:input message="impl:executeCmdLine" name="executeCmdLine" />
   <wsdl:output message="impl:executeCmdLineResponse" />
  </wsdl:operation>
 </wsdl:portType>

 <wsdl:binding name="CmdLineSOAPBinding" type="impl:CmdLine" >
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"; />
  <wsdl:operation name="executeCmdLine" >
   <wsdlsoap:operation soapAction=""  />
   <wsdl:input>
    <wsdlsoap:body use="literal" />
   </wsdl:input>
   <wsdl:output>
    <wsdlsoap:body use="literal" />
   </wsdl:output>
  </wsdl:operation>
 </wsdl:binding>

 <wsdl:service name="CmdLineServer" >
   <wsdl:port binding="impl:CmdLineSOAPBinding" name="CmdLine" >
<wsdlsoap:address location="http://localhost:8080/soap/servlet/openmakeserver"; />
  </wsdl:port>
 </wsdl:service>
</wsdl:definitions>





--

Catalyst Systems Corporation


Ph: 800-359-8049 x114
       505-424-6439
Fax: 505-424-6438


Back to the top