Ignore:
Timestamp:
Jun 15, 2015, 1:47:59 PM (6 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/zoo_loader.c

    r648 r654  
    339339            free(identifiers);
    340340          }
     341        }else{
     342          idptr=extractFromDoc(doc,"/*/*[local-name()='JobID']");
     343          if(idptr!=NULL){
     344            xmlNodeSet* id=idptr->nodesetval;
     345            if(id!=NULL){
     346              char* identifiers=NULL;
     347              identifiers=(char*)calloc(cgiContentLength,sizeof(char));
     348              identifiers[0]=0;
     349              for(int k=0;k<id->nodeNr;k++){
     350                xmlChar* content=xmlNodeListGetString(doc, id->nodeTab[k]->xmlChildrenNode,1);
     351                if(strlen(identifiers)>0){
     352                  char *tmp=zStrdup(identifiers);
     353                  snprintf(identifiers,strlen(tmp)+xmlStrlen(content)+2,"%s,%s",tmp,content);
     354                  free(tmp);
     355                }
     356                else{
     357                  snprintf(identifiers,xmlStrlen(content)+1,"%s",content);
     358                }
     359                xmlFree(content);
     360              }
     361              xmlXPathFreeObject(idptr);
     362              addToMap(tmpMap,"JobID",identifiers);
     363              free(identifiers);
     364            }
     365        }
    341366        }
    342367      }
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