Changeset 654 for trunk/zoo-project/zoo-kernel/response_print.h
- Timestamp:
- Jun 15, 2015, 1:47:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/response_print.h
r641 r654 134 134 135 135 /** 136 * Definitions of acceptable final status 137 */ 138 static char wpsStatus[2][11]={ 139 "Succeeded", 140 "Failed" 141 }; 142 /** 136 143 * Definitions of schemas depending on the WPS version 137 144 */ 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"}, 141 148 }; 142 149 /** … … 152 159 }; 153 160 /** 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 /** 154 169 * Definitions of root node for response depending on the request and the WPS version 155 170 */ 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} 159 174 }; 160 175 … … 198 213 void printDocument(maps*,xmlDocPtr,int); 199 214 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); 201 216 map* parseBoundingBox(const char*); 202 217 void printBoundingBox(xmlNsPtr,xmlNodePtr,map*); 203 218 void printBoundingBoxDocument(maps*,maps*,FILE*); 204 219 void printOutputDefinitions(xmlDocPtr,xmlNodePtr,xmlNsPtr,xmlNsPtr,elements*,maps*,const char*); 220 void printStatusInfo(maps*,map*,char*); 205 221 206 222 void outputResponse(service*,maps*,maps*,map*,int,maps*,int);
Note: See TracChangeset
for help on using the changeset viewer.