Changeset 72 for trunk/zoo-kernel/zoo_service_loader.c
- Timestamp:
- Jan 13, 2011, 5:36:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/zoo_service_loader.c
r69 r72 1700 1700 */ 1701 1701 r_inputs=NULL; 1702 map* store=getMap(request_inputs,"storeExecuteResponse"); 1703 map* status=getMap(request_inputs,"status"); 1704 /** 1705 * 05-007r7 WPS 1.0.0 page 57 : 1706 * 'If status="true" and storeExecuteResponse is "false" then the service 1707 * shall raise an exception.' 1708 */ 1709 if(status!=NULL && strcmp(status->value,"true")==0 && 1710 store!=NULL && strcmp(store->value,"false")==0){ 1711 errorException(m, _("Status cannot be set to true with storeExecuteResponse to false. Please, modify your request parameters."), "InvalidParameterValue"); 1712 freeService(&s1); 1713 free(s1); 1714 freeMaps(&m); 1715 free(m); 1716 1717 freeMaps(&request_input_real_format); 1718 free(request_input_real_format); 1719 1720 freeMaps(&request_output_real_format); 1721 free(request_output_real_format); 1722 1723 free(REQUEST); 1724 free(SERVICE_URL); 1725 return 1; 1726 } 1702 1727 r_inputs=getMap(request_inputs,"storeExecuteResponse"); 1703 1728 int eres=SERVICE_STARTED; … … 1719 1744 #endif 1720 1745 1721 if( r_inputs!=NULL)1722 if(strcasecmp( r_inputs->value,"false")==0)1723 r_inputs=NULL;1724 if( r_inputs==NULLMAP){1746 if(status!=NULL) 1747 if(strcasecmp(status->value,"false")==0) 1748 status=NULL; 1749 if(status==NULLMAP){ 1725 1750 loadServiceAndRun(&m,s1,request_inputs,&request_input_real_format,&request_output_real_format,&eres); 1726 1751 }
Note: See TracChangeset
for help on using the changeset viewer.