Ignore:
Timestamp:
Jun 15, 2015, 1:47:59 PM (9 years ago)
Author:
djay
Message:

Initial support for WPS 2.0.0 including the Dismiss extension.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/response_print.h

    r641 r654  
    134134
    135135  /**
     136   * Definitions of acceptable final status
     137   */
     138  static char wpsStatus[2][11]={
     139    "Succeeded",
     140    "Failed"
     141  };
     142  /**
    136143   * Definitions of schemas depending on the WPS version
    137144   */
    138   static const char* schemas[2][5]={
    139     {"1.0.0","http://www.opengis.net/ows/1.1","http://www.opengis.net/wps/1.0.0","http://schemas.opengis.net/wps/1.0.0","%s %s/wps%s_response.xsd"},
    140     {"2.0.0","http://www.opengis.net/ows/2.0","http://www.opengis.net/wps/2.0","http://schemas.opengis.net/wps/2.0","%s %s/wps%s.xsd"},
     145  static const char* schemas[2][7]={
     146    {"1.0.0","http://www.opengis.net/ows/1.1","http://www.opengis.net/wps/1.0.0","http://schemas.opengis.net/wps/1.0.0","%s %s/wps%s_response.xsd","http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd","1.1.0"},
     147    {"2.0.0","http://www.opengis.net/ows/2.0","http://www.opengis.net/wps/2.0","http://schemas.opengis.net/wps/2.0","%s %s/wps%s.xsd","http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd","2.0.2"},
    141148  };
    142149  /**
     
    152159  };
    153160  /**
     161   * Definitions requests requiring identifier (depending on the WPS version)
     162   */
     163  static int nbReqIdentifier=2;
     164  /**
     165   * Definitions requests requiring jobid (only for WPS version 2.0.0)
     166   */
     167  static int nbReqJob=3;
     168  /**
    154169   * Definitions of root node for response depending on the request and the WPS version
    155170   */
    156   static const char* root_nodes[2][6]={
    157     {"ProcessOfferings","ProcessDescriptions",NULL},
    158     {"Contents","ProcessOfferings",NULL}
     171  static const char root_nodes[2][4][20]={
     172    {"ProcessOfferings","ProcessDescriptions","ExecuteResponse",NULL},
     173    {"Contents","ProcessOfferings","Result",NULL}
    159174  };
    160175
     
    198213  void printDocument(maps*,xmlDocPtr,int);
    199214  void printDescription(xmlNodePtr,xmlNsPtr,const char*,map*,int);
    200   void printIOType(xmlDocPtr,xmlNodePtr,xmlNsPtr,xmlNsPtr,xmlNsPtr,elements*,maps*,const char*);
     215  void printIOType(xmlDocPtr,xmlNodePtr,xmlNsPtr,xmlNsPtr,xmlNsPtr,elements*,maps*,const char*,int);
    201216  map* parseBoundingBox(const char*);
    202217  void printBoundingBox(xmlNsPtr,xmlNodePtr,map*);
    203218  void printBoundingBoxDocument(maps*,maps*,FILE*);
    204219  void printOutputDefinitions(xmlDocPtr,xmlNodePtr,xmlNsPtr,xmlNsPtr,elements*,maps*,const char*);
     220  void printStatusInfo(maps*,map*,char*);
    205221
    206222  void outputResponse(service*,maps*,maps*,map*,int,maps*,int);
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png