2008/6/22 Amila Suriarachchi <[EMAIL PROTECTED]>:

>> So instead I'm planning on keeping them in separate services, and
>> writing a custom Ant task that runs the code generator three times and
>> deploys three separate services to the server.
>
> If you have three services you don't have to do this. Wsdl2java tool will
> generate three skeltons and three  services in service.xml.

Wow, I had no idea that worked. I'd just been using the Eclipse
plugin, which forces you to choose between the services in the WSDL.
(At least it does in 1.3, is this changed in 1.4?)

Thanks for the tip. One thing I've noticed though -- the generated
WSDLs in the target resources directory are a little bit strange.
Although each one contains just one service definition, they all
contain all the bindings and port types for all of the services in the
original WSDL, even the ones that aren't in use. I've attached one of
mine for reference, in case anyone who is working on the codegen tools
wants to have a look.

I doubt it's a problem, but it's the kind of thing I could see
badly-designed clients throwing errors over...

Now to get it all working in Ant.

Cheers,

Andrew.
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="Submit" targetNamespace="http://ws.cathdb.info/Grid"; xmlns="http://ws.cathdb.info/Grid"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:types="http://ws.cathdb.info/Types";>
  <wsdl:types>
    <xsd:schema>
			<xsd:import namespace="http://ws.cathdb.info/Types"; schemaLocation="xsd0.xsd"/>
		</xsd:schema>
  </wsdl:types>
  <wsdl:message name="SubmitNwResponse">
    <wsdl:part name="parameters" element="types:SubmitNwResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="SubmitSamResponse">
    <wsdl:part name="parameters" element="types:SubmitSamResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="SubmitNwRequest">
    <wsdl:part name="parameters" element="types:SubmitNw">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="MonitorJobResponse">
    <wsdl:part name="parameters" element="types:MonitorJobResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="SubmitBlastRequest">
    <wsdl:part name="parameters" element="types:SubmitBlast">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="SubmitHmmerRequest">
    <wsdl:part name="parameters" element="types:SubmitHmmer">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="SubmitBlastResponse">
    <wsdl:part name="parameters" element="types:SubmitBlastResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="SubmitHmmerDfResponse">
    <wsdl:part name="parameters" element="types:SubmitHmmerDfResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="SubmitSamDfRequest">
    <wsdl:part name="parameters" element="types:SubmitSamDf">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="SubmitHmmerDfRequest">
    <wsdl:part name="parameters" element="types:SubmitHmmerDf">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="RetrieveJobResponse">
    <wsdl:part name="parameters" element="xsd:string">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="RetrieveJobRequest">
    <wsdl:part name="parameters" element="xsd:string">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="MonitorJobRequest">
    <wsdl:part name="parameters" element="types:MonitorJob">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="SubmitHmmerResponse">
    <wsdl:part name="parameters" element="types:SubmitHmmerResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="SubmitSamRequest">
    <wsdl:part name="parameters" element="types:SubmitSam">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="SubmitSamDfResponse">
    <wsdl:part name="parameters" element="types:SubmitSamDfResponse">
    </wsdl:part>
  </wsdl:message>
  <wsdl:portType name="Retrieve">
    <wsdl:operation name="RetrieveJob">
<wsdl:documentation>
				TODO.
			</wsdl:documentation>
      <wsdl:input message="RetrieveJobRequest">
    </wsdl:input>
      <wsdl:output message="RetrieveJobResponse">
    </wsdl:output>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:portType name="Monitor">
    <wsdl:operation name="MonitorJob">
<wsdl:documentation>
				Check the status of a job: -1 = failure, 1 = complete, &lt;1 = running.
				The higher the number, the closer to completion the job is.
			</wsdl:documentation>
      <wsdl:input message="MonitorJobRequest">
    </wsdl:input>
      <wsdl:output message="MonitorJobResponse">
    </wsdl:output>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:portType name="Submit">
    <wsdl:operation name="SubmitBlast">
<wsdl:documentation>
				Scan a given protein sequence against the representative sequences (Sreps)
				for each of CATH's 35% sequence identity (S35) clusters, using BLASTP.
			</wsdl:documentation>
      <wsdl:input message="SubmitBlastRequest">
    </wsdl:input>
      <wsdl:output message="SubmitBlastResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="SubmitNw">
<wsdl:documentation>
				Scan a given protein sequence against the representative sequences (Sreps)
				for each of CATH's 35% sequence identity (S35) clusters, using the
				Needleman-Wunsch algorithm.
			</wsdl:documentation>
      <wsdl:input message="SubmitNwRequest">
    </wsdl:input>
      <wsdl:output message="SubmitNwResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="SubmitHmmer">
<wsdl:documentation>
				Scan a given protein sequence against CATH's library of HMMER profiles,
				with an e-value cutoff of 0.001.
			</wsdl:documentation>
      <wsdl:input message="SubmitHmmerRequest">
    </wsdl:input>
      <wsdl:output message="SubmitHmmerResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="SubmitHmmerDf">
<wsdl:documentation>
				Scan a given protein sequence against CATH's library of HMMER profiles,
				then runs DomainFinder over the hits.
			</wsdl:documentation>
      <wsdl:input message="SubmitHmmerDfRequest">
    </wsdl:input>
      <wsdl:output message="SubmitHmmerDfResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="SubmitSam">
<wsdl:documentation>
				TODO.
			</wsdl:documentation>
      <wsdl:input message="SubmitSamRequest">
    </wsdl:input>
      <wsdl:output message="SubmitSamResponse">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="SubmitSamDf">
<wsdl:documentation>
				TODO.
			</wsdl:documentation>
      <wsdl:input message="SubmitSamDfRequest">
    </wsdl:input>
      <wsdl:output message="SubmitSamDfResponse">
    </wsdl:output>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="MonitorSOAP" type="Monitor">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="MonitorJob">
      <soap:operation soapAction="http://ws.cathdb.info/Grid/MonitorJob"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="RetrieveSOAP" type="Retrieve">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="RetrieveJob">
      <soap:operation soapAction="http://ws.cathdb.info/Grid/RetrieveJob"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="SubmitSOAP" type="Submit">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="SubmitBlast">
      <soap:operation soapAction="http://ws.cathdb.info/Grid/SubmitBlast"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="SubmitNw">
      <soap:operation soapAction="http://ws.cathdb.info/Grid/SubmitNw"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="SubmitHmmer">
      <soap:operation soapAction="http://ws.cathdb.info/Grid/SubmitHmmer"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="SubmitHmmerDf">
      <soap:operation soapAction="http://ws.cathdb.info/Grid/SubmitHmmerDf"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="SubmitSam">
      <soap:operation soapAction="http://ws.cathdb.info/Grid/SubmitSam"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="SubmitSamDf">
      <soap:operation soapAction="http://ws.cathdb.info/Grid/SubmitSamDf"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="Submit">
<wsdl:documentation>
			This is the web service interface onto the CATH database, allowing various useful processing stages
			from the CATH production pipeline to be invoked individually. All jobs are run asynchronously on our
			server farm (FILL IN DETAILS). Each job is started via a Submit... operation which returns a JobID. This
			can be used to monitor the status of the job via MonitorJob, which returns a value between 0 and 1
			representing (roughly) percentage complete, or -1 to indicate that the job has failed. After MonitorJob
			for a given job returns 1, the job is done, and its results can be retrieved via the corresponding
			Retrieve... operation. Please contact [EMAIL PROTECTED] with any comments or questions.
		</wsdl:documentation>
    <wsdl:port name="SubmitSOAP" binding="SubmitSOAP">
      <soap:address location="http://ws.cathdb.info/Grid"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to