Ignore:
Timestamp:
Jan 13, 2011, 1:40:10 AM (13 years ago)
Author:
djay
Message:

Fix XML request parser for embedded XML complex data. Handle Execute requests coming from the QGIS WPS Client plugin. Fix for Python support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-kernel/zoo_loader.c

    r32 r69  
    22 * Author : Gérald FENOY
    33 *
    4  *  Copyright 2008-2009 GeoLabs SARL. All rights reserved.
     4 *  Copyright 2008-2011 GeoLabs SARL. All rights reserved.
    55 *
    66 * Permission is hereby granted, free of charge, to any person obtaining a copy
     
    109109
    110110  map* tmpMap=NULL;
    111    
     111
    112112  if(strncmp(cgiContentType,"text/xml",8)==0){
    113113    char *buffer=new char[cgiContentLength+1];
     
    144144  }
    145145
     146  if(strncasecmp(cgiRequestMethod,"post",4)==0 && getMap(tmpMap,"request")==NULL){
     147    char *tmpKey=strdup(tmpMap->name);
     148    char *tmpValue=strdup(tmpMap->value);
     149    freeMap(&tmpMap);
     150    free(tmpMap);
     151    char* tmpValueFinal=(char*) malloc((strlen(tmpKey)+strlen(tmpValue)+2)*sizeof(char));
     152    sprintf(tmpValueFinal,"%s=%s",tmpKey,tmpValue);
     153    tmpMap=createMap("request",tmpValueFinal);
     154    free(tmpValueFinal);
     155  }
    146156  /**
    147157   * In case that the POST method was used, then check if params came in XML
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