[ZOO-Discuss] Multiple output process

Scott Henderson Scott.Henderson at lisasoft.com
Thu May 27 22:37:19 PDT 2010


Hi guys,

According to the WPS spec, we should be able to have multiple outputs for our processes. However, when I add a second output to my process, the first output ends up being included as an input in the describe process. Does Zoo not support multiple processes or is there a problem with my .zcfg? Below is an excerpt from my .zcfg and describe process.

[TestProcess]
 Title = TestProcess
 processVersion = 1
 storeSupported = true
 statusSupported = true
 serviceProvider = TestProcess
 serviceType = Java
 <DataInputs>
  [Param]
   Title = Param
   Abstract = GML
   minOccurs = 1
   maxOccurs = 1
   <ComplexData>
    <Default>
     mimeType = text/xml
     encoding = UTF-8
     schema = http://schemas.opengis.net/wfs/1.1.0/wfs.xsd
     asReference = true
    </Default>
   </ComplexData>
 </DataInputs>
 <DataOutputs>
  [Output1]
   Title = Output1
   <LiteralOutput>
    DataType = string
    <Default>
     mimeType = application/json
     encoding = UTF-8
    </Default>
   </LiteralOutput>
  [Output2]
   Title = Output2
   <LiteralOutput>
    DataType = string
    <Default>
     mimeType = application/json
     encoding = UTF-8
    </Default>
   </LiteralOutput>
 </DataOutputs>

Describe Process:
<wps:ProcessDescriptions xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsDescribeProcess_response.xsd" service="WPS" version="1.0.0" xml:lang="en">
  <ProcessDescription wps:processVersion="1" storeSupported="true" statusSupported="true">
    <ows:Identifier>TestProcess</ows:Identifier>
    <ows:Title>TestProcess</ows:Title>
    <DataInputs>
      <Input minOccurs="1" maxOccurs="1">
        <ows:Identifier>Param</ows:Identifier>
        <ows:Title>Param</ows:Title>
        <ows:Abstract>GML</ows:Abstract>
        <ComplexData>
          <Default>
            <Format>
              <mimeType>text/xml</mimeType>
              <encoding>UTF-8</encoding>
              <schema>http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</schema>
            </Format>
          </Default>
        </ComplexData>
      </Input>
      <Input>
        <ows:Identifier>Output1</ows:Identifier>
        <ows:Title>Output1</ows:Title>
        <LiteralOutput>
          <ows:DataType ows:reference="http://www.w3.org/TR/xmlschema-2/#string">string</ows:DataType>
          <Default>
            <Format>
              <mimeType>application/json</mimeType>
              <encoding>UTF-8</encoding>
            </Format>
          </Default>
        </LiteralOutput>
      </Input>
    </DataInputs>
    <ProcessOutputs>
      <Output>
        <ows:Identifier>Output2</ows:Identifier>
        <ows:Title>Output2</ows:Title>
        <LiteralOutput>
          <ows:DataType ows:reference="http://www.w3.org/TR/xmlschema-2/#string">string</ows:DataType>
          <UOMs>
            <Default>
              <ows:mimeType>application/json</ows:mimeType>
              <ows:encoding>UTF-8</ows:encoding>
            </Default>
          </UOMs>
        </LiteralOutput>
      </Output>
    </ProcessOutputs>
  </ProcessDescription>
</wps:ProcessDescriptions>

Thanks in advance for your assistance,

Scott.

________________________________
The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20100528/63b0022c/attachment.html>


More information about the Zoo-discuss mailing list