Ignore:
Timestamp:
Dec 19, 2016, 6:01:06 PM (7 years ago)
Author:
djay
Message:

Add support for nested inputs and outputs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/zoo_service_loader.c

    r789 r790  
    770770
    771771  map *tmpReq = getMap (request_inputs, "xrequest");
    772  
     772
    773773  if(r_inputs2 != NULL && tmpReq != NULL) {
    774774    const char key[] = "rfile=";
     
    922922  if (m == NULL)
    923923    {
    924       return errorException (m, _("Unable to allocate memory"),
     924      return errorException (NULL, _("Unable to allocate memory"),
    925925                             "InternalError", NULL);
    926926    }
     927  m->child=NULL;
    927928  char ntmp[1024];
    928929#ifndef ETC_DIR
     
    15371538                                                           NULL);
    15381539                                  }
    1539 #ifdef DEBUG
    1540                                 printf
    1541                                   ("#################\n(%s) %s\n#################\n",
     1540#ifdef DEBUG_SERVICE_CONF
     1541                                fprintf
     1542                                  (stderr,"#################\n(%s) %s\n#################\n",
    15421543                                   r_inputs->value, buff1);
    15431544#endif
     
    17031704  map *postRequest = NULL;
    17041705  postRequest = getMap (request_inputs, "xrequest");
    1705 
     1706 
    17061707  if(vid==1 && postRequest==NULL){
    17071708    errorException (m,_("Unable to run Execute request using the GET HTTP method"),"InvalidParameterValue", "request"); 
     
    18171818  maps *tmpmaps = request_input_real_format;
    18181819
    1819 
    18201820  if(parseRequest(&m,&request_inputs,s1,&request_input_real_format,&request_output_real_format,&hInternet)<0){
    18211821    freeMaps (&m);
     
    18281828    return 0;
    18291829  }
    1830 
    18311830
    18321831  // Define each env variable in runing environment
     
    19891988   *
    19901989   */
    1991   maps *_tmpMaps = (maps *) malloc (MAPS_SIZE);
    1992   _tmpMaps->name = zStrdup ("lenv");
     1990  maps *_tmpMaps = createMaps("lenv");
    19931991  char tmpBuff[100];
    19941992  struct ztimeval tp;
     
    19981996    sprintf (tmpBuff, "%i", (cpid + (int) time (NULL)));
    19991997  _tmpMaps->content = createMap ("osid", tmpBuff);
    2000   _tmpMaps->next = NULL;
    20011998  sprintf (tmpBuff, "%i", cpid);
    20021999  addToMap (_tmpMaps->content, "sid", tmpBuff);
     
    20812078          free (tcook);
    20822079          maps *tmpSess = (maps *) malloc (MAPS_SIZE);
     2080          tmpSess->child=NULL;
    20832081          struct stat file_status;
    20842082          int istat = stat (session_file_path, &file_status);
     
    21062104    *environ;
    21072105#endif
    2108   _tmpMaps = (maps *) malloc (MAPS_SIZE);
    2109   _tmpMaps->name = zStrdup ("renv");
    2110   _tmpMaps->content = NULL;
    2111   _tmpMaps->next = NULL;
     2106  _tmpMaps = createMaps("renv");
    21122107  for (; s; ei++) {
    21132108    char* tmpName=zStrdup(s);
     
    22292224                     strlen (usid->value) + 7) * sizeof (char));                   
    22302225          sprintf (fbkpres, "%s/%s.res", r_inputs->value, usid->value);
    2231           bmap = (maps *) malloc (MAPS_SIZE);
    2232           bmap->name=zStrdup("status");
     2226          bmap = createMaps("status");
    22332227          bmap->content=createMap("usid",usid->value);
    2234           bmap->next=NULL;
    22352228          addToMap(bmap->content,"sid",tmpm->value);
    22362229          addIntToMap(bmap->content,"pid",getpid());
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