Changeset 524


Ignore:
Timestamp:
Nov 4, 2014, 9:34:34 AM (9 years ago)
Author:
david
Message:
  • Get service configuration in configuration data structure for execute request
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PublicaMundi_David-devel/zoo-project/zoo-kernel/zoo_service_loader.c

    r513 r524  
    12161216
    12171217  s1 = NULL;
    1218   s1 = (service *) malloc (SERVICE_SIZE);
     1218  /**s1 = (service *) malloc (SERVICE_SIZE);
    12191219  if (s1 == NULL)
    12201220    {
     
    12311231  else
    12321232    snprintf (tmps1, 1024, "%s/", ntmp);
     1233   **/
    12331234  r_inputs = getMap (request_inputs, "Identifier");
     1235/**
    12341236  char *ttmp = zStrdup (tmps1);
    12351237  snprintf (tmps1, 1024, "%s/%s.zcfg", ttmp, r_inputs->value);
     
    12531255  t = readServiceFile (m, tmps1, &s1, r_inputs->value);
    12541256  fflush (stdout);
     1257  **/
     1258  int saved_stdout = dup (fileno (stdout));
    12551259  dup2 (saved_stdout, fileno (stdout));
    1256   if (t < 0)
     1260  s1 = search_service (r_inputs->value);
     1261  if (s1 == NULL)
    12571262    {
    12581263      char *tmpMsg = (char *) malloc (2048 + strlen (r_inputs->value));
     
    14541459          free (SERVICE_URL);
    14551460          InternetCloseHandle (&hInternet);
    1456           freeService (&s1);
     1461          //freeService (&s1);
    14571462          free (s1);
    14581463          return 0;
     
    16181623                          free (SERVICE_URL);
    16191624                          InternetCloseHandle (&hInternet);
    1620                           freeService (&s1);
     1625                          //freeService (&s1);
    16211626                          free (s1);
    16221627                          return 0;
     
    16401645                              free (SERVICE_URL);
    16411646                              InternetCloseHandle (&hInternet);
    1642                               freeService (&s1);
     1647                              //freeService (&s1);
    16431648                              free (s1);
    16441649                              return 0;
     
    16751680                              free (SERVICE_URL);
    16761681                              InternetCloseHandle (&hInternet);
    1677                               freeService (&s1);
     1682                              //freeService (&s1);
    16781683                              free (s1);
    16791684                              return 0;
     
    17441749                    {
    17451750                      xmlChar *val = xmlNodeListGetString (doc,
    1746                                                            cur2->xmlChildrenNode,
     1751                                                           cur2->
     1752                                                           xmlChildrenNode,
    17471753                                                           1);
    17481754                      if (tmpmaps == NULL)
     
    17731779                    {
    17741780                      xmlChar *val = xmlNodeListGetString (doc,
    1775                                                            cur2->xmlChildrenNode,
     1781                                                           cur2->
     1782                                                           xmlChildrenNode,
    17761783                                                           1);
    17771784                      if (tmpmaps == NULL)
     
    17851792                                                     "InternalError", NULL);
    17861793                            }
    1787                           tmpmaps->name = zStrdup ("missingIndetifier");
     1794                          tmpmaps->name = zStrdup ("missingIndentifier");
    17881795                          tmpmaps->content =
    17891796                            createMap ((char *) cur2->name, (char *) val);
     
    18581865                                          free (SERVICE_URL);
    18591866                                          InternetCloseHandle (&hInternet);
    1860                                           freeService (&s1);
     1867                                          //freeService (&s1);
    18611868                                          free (s1);
    18621869                                          return 0;
     
    22092216                            {
    22102217                              xmlChar *mv = xmlNodeListGetString (doc,
    2211                                                                   cur4->
    2212                                                                   xmlChildrenNode,
     2218                                                                  cur4->xmlChildrenNode,
    22132219                                                                  1);
    22142220                              map *ltmp = getMap (tmpmaps->content,
     
    22562262                            {
    22572263                              xmlChar *tmp = xmlNodeListGetRawString (doc,
    2258                                                                       cur4->
    2259                                                                       xmlChildrenNode,
     2264                                                                      cur4->xmlChildrenNode,
    22602265                                                                      0);
    22612266                              addToMap (tmpmaps->content,
     
    23252330                            free (SERVICE_URL);
    23262331                            InternetCloseHandle (&hInternet);
    2327                             freeService (&s1);
     2332                            //freeService (&s1);
    23282333                            free (s1);
    23292334                            return 0;
     
    24242429                    {
    24252430                      xmlChar *val = xmlNodeListGetString (NULL,
    2426                                                            cur2->xmlChildrenNode,
     2431                                                           cur2->
     2432                                                           xmlChildrenNode,
    24272433                                                           1);
    24282434                      free (tmpmaps->name);
     
    25112517                      {
    25122518                        xmlChar *val = xmlNodeListGetString (doc,
    2513                                                              cur1->xmlChildrenNode,
     2519                                                             cur1->
     2520                                                             xmlChildrenNode,
    25142521                                                             1);
    25152522                        if (tmpmaps == NULL)
     
    25712578                      {
    25722579                        xmlChar *val = xmlNodeListGetString (doc,
    2573                                                              cur1->xmlChildrenNode,
     2580                                                             cur1->
     2581                                                             xmlChildrenNode,
    25742582                                                             1);
    25752583                        if (tmpmaps == NULL)
     
    26472655                              {
    26482656                                xmlChar *val = xmlNodeListGetString (doc,
    2649                                                                      cur2->
    2650                                                                      xmlChildrenNode,
     2657                                                                     cur2->xmlChildrenNode,
    26512658                                                                     1);
    26522659                                if (tmpmaps == NULL)
     
    26882695                              {
    26892696                                xmlChar *val = xmlNodeListGetString (doc,
    2690                                                                      cur2->
    2691                                                                      xmlChildrenNode,
     2697                                                                     cur2->xmlChildrenNode,
    26922698                                                                     1);
    26932699                                if (tmpmaps == NULL)
     
    27902796              addToMap (tmpe, "text", tmps);
    27912797              printExceptionReportResponse (m, tmpe);
    2792               freeService (&s1);
     2798              //freeService (&s1);
    27932799              free (s1);
    27942800              freeMap (&tmpe);
     
    28342840      addToMap (tmpe, "text", tmps);
    28352841      printExceptionReportResponse (m, tmpe);
    2836       freeService (&s1);
     2842      //freeService (&s1);
    28372843      free (s1);
    28382844      freeMap (&tmpe);
     
    30203026                      ("Status cannot be set to true with storeExecuteResponse to false. Please, modify your request parameters."),
    30213027                      "InvalidParameterValue", "storeExecuteResponse");
    3022       freeService (&s1);
     3028      //freeService (&s1);
    30233029      free (s1);
    30243030      freeMaps (&m);
     
    33423348    }
    33433349
    3344   freeService (&s1);
     3350  //freeService (&s1);
    33453351  free (s1);
    33463352  freeMaps (&m);
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