Changeset 418


Ignore:
Timestamp:
Jun 27, 2013, 11:18:37 PM (11 years ago)
Author:
djay
Message:

Fix issue #78.

File:
1 edited

Legend:

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

    r413 r418  
    16731673            addMapsToMaps(&request_input_real_format,tmpmaps);
    16741674        }
    1675        
     1675
    16761676#ifdef DEBUG
    16771677        fprintf(stderr,"******TMPMAPS*****\n");
     
    17491749        while(cur1!=NULL && cur1->type != XML_ELEMENT_NODE)
    17501750          cur1=cur1->next;
     1751        int cur1cnt=0;
    17511752        while(cur1){
    17521753          /**
     
    17691770              tmpmaps->name=strdup((char*)val);
    17701771            }
     1772            if(asRaw==true)
     1773              addToMap(request_inputs,"RawDataOutput",(char*)val);
     1774            else{
     1775              if(cur1cnt==0)
     1776                addToMap(request_inputs,"ResponseDocument",(char*)val);
     1777              else{
     1778                map* tt=getMap(request_inputs,"ResponseDocument");
     1779                char* tmp=strdup(tt->value);
     1780                free(tt->value);
     1781                tt->value=(char*)malloc((strlen(tmp)+strlen((char*)val)+1)*sizeof(char));
     1782                sprintf(tt->value,"%s;%s",tmp,(char*)val);
     1783                free(tmp);
     1784              }
     1785            }
     1786            cur1cnt+=1;
    17711787            xmlFree(val);
    17721788          }
     
    18691885                xmlFree(val);
    18701886              }
    1871               if(request_output_real_format==NULL)
    1872                 request_output_real_format=dupMaps(&tmpmaps);
    1873               else
    1874                 addMapsToMaps(&request_output_real_format,tmpmaps);
    18751887              cur2=cur2->next;
    18761888              while(cur2!=NULL && cur2->type != XML_ELEMENT_NODE)
     
    18831895        }
    18841896      }
     1897      if(request_output_real_format==NULL)
     1898        request_output_real_format=dupMaps(&tmpmaps);
     1899      else
     1900        addMapsToMaps(&request_output_real_format,tmpmaps);
    18851901      if(tmpmaps!=NULL){
    18861902        freeMaps(&tmpmaps);
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