Index: trunk/zoo-project/zoo-kernel/service_internal_ms.c
===================================================================
--- trunk/zoo-project/zoo-kernel/service_internal_ms.c	(revision 433)
+++ trunk/zoo-project/zoo-kernel/service_internal_ms.c	(revision 434)
@@ -118,5 +118,5 @@
   char options[3][5][25]={
     {"WMS","1.3.0","GetMap","layers=%s","wms_extent"},
-    {"WFS","1.1.0","GetFeature","typename=%s","wms_extent"},
+    {"WFS","1.1.0","GetFeature","typename=%s","wcs_extent"},
     {"WCS","1.1.0","GetCoverage","coverage=%s","wcs_extent"}
   };
@@ -328,5 +328,7 @@
       sprintf(tmpExtent,"%.3f,%.3f,%.3f,%.3f",min.y,min.x,max.y,max.x);
       map* isGeo=getMap(output->content,"crs_isGeographic");
+#ifdef DEBUGMS
       fprintf(stderr,"isGeo = %s\n",isGeo->value);
+#endif
       if(isGeo!=NULL && strcasecmp("true",isGeo->value)==0)
         sprintf(tmpExtent,"%f,%f,%f,%f", minY,minX, maxY, maxX);
@@ -338,5 +340,7 @@
       map* isGeo=getMap(output->content,"crs_isGeographic");
       if(isGeo!=NULL){
+#ifdef DEBUGMS
 	fprintf(stderr,"isGeo = %s\n",isGeo->value);
+#endif
 	if(isGeo!=NULL && strcasecmp("true",isGeo->value)==0)
 	  sprintf(tmpExtent,"%f,%f,%f,%f", minY,minX, maxY, maxX);
@@ -396,5 +400,7 @@
   fclose(fileZ);
   free(buffer);
+#ifdef DEBUGMS
   fprintf(stderr,"Try loading %s",dsName);
+#endif
   poDS1 = OGROpen( dsName, FALSE, poDriver1 );
   if( poDS1 == NULL ){
@@ -403,5 +409,7 @@
     OGR_DS_Destroy(poDS1);
   }else{
+#ifdef DEBUGMS
     fprintf(stderr,"The DataSource is a  ZIP File\n");
+#endif
     char** demo=VSIReadDir(dsName);
     int i=0;
@@ -412,5 +420,7 @@
 		);
     while(demo[i]!=NULL){
+#ifdef DEBUGMS
       fprintf(stderr,"ZIP File content : %s\n",demo[i]);
+#endif
       char *tmpDs=(char*)malloc((strlen(dsName)+strlen(demo[i])+2)*sizeof(char));
       sprintf(tmpDs,"%s/%s",dsName,demo[i]);
@@ -418,8 +428,12 @@
       
       VSILFILE* vsif=VSIFOpenL(tmpDs,"rb");
+#ifdef DEBUGMS
       fprintf(stderr,"open : %s\n",tmpDs);
+#endif
       VSIFSeekL(vsif,0,SEEK_END);
       int size=VSIFTellL(vsif);
+#ifdef DEBUGMS
       fprintf(stderr,"size : %d\n",size);
+#endif
       VSIFSeekL(vsif,0,SEEK_SET);
       char *vsifcontent=(char*) malloc((size+1)*sizeof(char));
@@ -435,5 +449,7 @@
 	tmpP=strstr(fpath,".SHP");
       if(tmpP!=NULL){
+#ifdef DEBUGMS
 	fprintf(stderr,"*** DEBUG %s\n",strstr(tmpP,"."));
+#endif
 	if( strcmp(tmpP,".shp")==0 || strcmp(tmpP,".SHP")==0 ){
 	  tmpMap=getMap(output->content,"storage");
@@ -442,5 +458,7 @@
 	  sprintf(tmpMap->value,"%s",fpath);
 	  pszDataSource=tmpMap->value;
+#ifdef DEBUGMS
 	  fprintf(stderr,"*** DEBUG %s\n",pszDataSource);
+#endif
 	}
       }
@@ -490,5 +508,7 @@
 
     layerObj* myLayer=m->layers[m->numlayers];
+#ifdef DEBUGMS
     dumpMaps(output);
+#endif
     myLayer->name = strdup(output->name);
     myLayer->tileitem=NULL;
