source: trunk/zoo-kernel/service_internal.h @ 6

Last change on this file since 6 was 1, checked in by djay, 14 years ago

Initial ZOO SVN Repository Import.

File size: 3.1 KB
Line 
1/**
2 * Author : Gérald FENOY
3 *
4 * Copyright (c) 2009-2010 GeoLabs SARL
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 * THE SOFTWARE.
23 */
24
25#ifndef ZOO_SERVICE_INTERNAL_H
26#define ZOO_SERVICE_INTERNAL_H 1
27
28#pragma once
29
30#define DEFAULT_SERVICE_URL "http://dev.geolabs.fr/zoo-wps/"
31#define TIME_SIZE 40
32
33#include <sys/types.h>
34#include <unistd.h>
35#include <time.h>
36#include <ctype.h>
37#ifndef WIN32
38#include <xlocale.h>
39#endif
40#include "service.h"
41#include <openssl/sha.h>
42#include <openssl/hmac.h>
43#include <openssl/evp.h>
44#include <openssl/bio.h>
45#include <openssl/buffer.h>
46
47extern   int getServiceFromFile(char*,service**);
48extern   int conf_read(char*,maps*);
49
50#ifdef __cplusplus
51extern "C" {
52#endif
53#include <libxml/parser.h>
54  static char* SERVICE_URL;
55
56  void URLDecode(char *);
57  char *url_encode(char *);
58 
59  void printExceptionReportResponse(maps*,map*);
60  void printProcessResponse1(maps*,map*,int,service*,char*,int,maps*,maps*);
61  void printProcessResponse(maps*,int,service*,char*,int,map*,map*);
62  void printGetCapabilitiesResponse(service**,int,char*,maps*);
63  xmlNodePtr printGetCapabilitiesHeader(xmlDocPtr,char*,maps*);
64  void printGetCapabilitiesForProcess(maps*,xmlNodePtr,service*);
65  void printGetCapabilitiesDocument(xmlDocPtr);
66  void printDescribeProcessResponse(service*,char*);
67  xmlNodePtr printDescribeProcessHeader(xmlDocPtr,char*,maps*);
68  void printDescribeProcessForProcess(maps*,xmlNodePtr,service**,int);
69  void printDescribeProcessDocument(xmlDocPtr);
70  void printDocument(xmlDocPtr);
71  void printDescription(xmlNodePtr,xmlNsPtr,char*,map*);
72  void printIOType1(xmlDocPtr,xmlNodePtr,xmlNsPtr,xmlNsPtr,elements*,maps*,char*);
73  void printIOType(xmlDocPtr,xmlNodePtr,xmlNsPtr,xmlNsPtr,elements*,map*,char*);
74  void printOutputDefinitions1(xmlDocPtr,xmlNodePtr,xmlNsPtr,xmlNsPtr,elements*,maps*,char*);
75  void printOutputDefinitions(xmlDocPtr,xmlNodePtr,xmlNsPtr,xmlNsPtr,elements*,map*,char*);
76 
77  void outputResponse(service*,maps*,maps*,map*,int,maps*,int);
78
79  char *base64(const unsigned char*,int);
80
81  void addDefaultValues(maps**,elements*,maps*,char*);
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif
Note: See TracBrowser for help on using the repository browser.

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