Changeset 718 for trunk/zoo-project/zoo-kernel
- Timestamp:
- Jul 1, 2015, 12:25:29 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/zoo_loader.c
r682 r718 250 250 xmlFree(tval); 251 251 } 252 const char* requests[ 3]={"GetCapabilities","DescribeProcess","Execute"};253 for(int j=0;j< 3;j++){252 const char* requests[6]={"GetCapabilities","DescribeProcess","Execute","GetStatus","GetResult","Dismiss"}; 253 for(int j=0;j<6;j++){ 254 254 char tt[128]; 255 255 sprintf(tt,"/*[local-name()='%s']",requests[j]); … … 264 264 free(t1->value); 265 265 t1->value=zStrdup(requests[j]); 266 j= 2;266 j=5; 267 267 } 268 268 xmlXPathFreeObject(reqptr); … … 320 320 } 321 321 xmlXPathFreeObject(idptr); 322 addToMap(tmpMap,"Identifier",identifiers); 322 if(identifiers[0]!=0) 323 addToMap(tmpMap,"Identifier",identifiers); 323 324 free(identifiers); 324 325 } 325 }else{ 326 } 327 if(getMap(tmpMap,"Identifier")==NULL){ 326 328 idptr=extractFromDoc(doc,"/*/*[local-name()='JobID']"); 327 329 if(idptr!=NULL){ … … 332 334 identifiers[0]=0; 333 335 for(int k=0;k<id->nodeNr;k++){ 334 xmlChar* content=xmlNodeListGetString(doc, id->nodeTab[k]->xmlChildrenNode,1);335 if(strlen(identifiers)>0){336 char *tmp=zStrdup(identifiers);337 snprintf(identifiers,strlen(tmp)+xmlStrlen(content)+2,"%s,%s",tmp,content);338 free(tmp);339 }340 else{341 snprintf(identifiers,xmlStrlen(content)+1,"%s",content);342 }343 xmlFree(content);336 xmlChar* content=xmlNodeListGetString(doc, id->nodeTab[k]->xmlChildrenNode,1); 337 if(strlen(identifiers)>0){ 338 char *tmp=zStrdup(identifiers); 339 snprintf(identifiers,strlen(tmp)+xmlStrlen(content)+2,"%s,%s",tmp,content); 340 free(tmp); 341 } 342 else{ 343 snprintf(identifiers,xmlStrlen(content)+1,"%s",content); 344 } 345 xmlFree(content); 344 346 } 345 347 xmlXPathFreeObject(idptr); 346 addToMap(tmpMap,"JobID",identifiers); 348 if(identifiers[0]!=0) 349 addToMap(tmpMap,"JobID",identifiers); 347 350 free(identifiers); 348 351 } 349 }352 } 350 353 } 351 354 }
Note: See TracChangeset
for help on using the changeset viewer.