Ignore:
Timestamp:
Jan 9, 2013, 11:52:44 PM (12 years ago)
Author:
djay
Message:

Fix asynchronous support on windows platform, fix storage of responseDocument and add a sample service in Python language using the ZOO-API. Update makefile.vc and nmake.opt to remove unneeded cgic linkage. Fix for headers section to display only if needed.

Location:
trunk/zoo-project/zoo-services/utils/status
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-services/utils/status/makefile.vc

    r216 r384  
    1 ZOODIR=../../../zoo-kernel
    2 THIRDSDIR=../../../thirds
    3 !INCLUDE $(ZOODIR)/nmake.opt
    4 CFLAGS=-DWIN32 -I$(THIRDSDIR)/dirent-win32 -I$(GEODIR)/include -I$(TPATH)/include -I$(ZOODIR)/ -I./ -DLINUX_FREE_ISSUE -DDEBUG
    5 CPP=cl /TP
     1TROOT= $(ZOOK_DIR)
     2!INCLUDE $(ZOOK_DIR)/nmake.opt
     3
     4FILES=$(ZOOK_DIR)/dirent.obj $(ZOOK_DIR)/service_internal.obj $(ZOOK_DIR)/ulinet.obj
     5!IFDEF JS_DIR
     6FILES=$(FILES) $(ZOOK_DIR)$(JS_FILE)
     7!ENDIF
     8!IFDEF JDK_DIR
     9FILES=$(FILES) $(ZOOK_DIR)$(JAVA_FILE)
     10!ENDIF
     11!IFDEF PY_DIR
     12FILES=$(FILES) $(ZOOK_DIR)$(PY_FILE)
     13!ENDIF
     14!IFDEF MS_DIR
     15FILES=$(FILES) $(ZOOK_DIR)$(MS_FILE)
     16!ENDIF
    617
    718cgi-env/wps_status.zo: service.c
    8         $(CPP) $(CFLAGS) /c service.c
    9         link /dll /out:cgi-env/wps_status.zo $(ZOODIR)/service_internal.obj $(ZOODIR)/dirent.obj ./service.obj -L$(TPATH)/lib/libssl32.dll.a $(TPATH)/lib/libxslt.lib $(TPATH)/lib/libxml2.lib $(TPATH)/lib/libeay32.dll.a $(TPATH)/lib/libcrypto.a $(TOOLS)/lib/libssl32.dll.a $(LIBINTL_CPATH)/lib/libintl.lib
     19        $(CPP) /D_CRT_NONSTDC_NO_DEPRECATE -DWIN32 -DZOO_SERVICE $(CFLAGS) /c service.c
     20        link /dll /out:cgi-env/wps_status.zo $(FILES) ./service.obj $(LDFLAGS) $(XSLT_DIR)\win32\bin.msvc\libxslt.lib /FORCE:MULTIPLE
    1021
    1122clean:
    12         del /f cgi-env\wps*
     23        erase cgi-env\*_status.*
     24        erase *.obj
  • trunk/zoo-project/zoo-services/utils/status/service.c

    r348 r384  
    2424
    2525#include "service.h"
    26 #ifdef WIN32
    27 #include <windows.h>
    28 #endif
     26#include "service_internal.h"
    2927
    3028extern "C" {
     
    4038
    4139#include <dirent.h>
    42 #include "service_internal.h"
    4340
    4441  /**
     
    7673        fprintf(stderr,"File : %s searched : %s\n",dp->d_name,tmp);
    7774#endif
    78         if(strstr(dp->d_name,tmp)!=0){
     75        if(strstr(dp->d_name,"final_")==0 && strstr(dp->d_name,tmp)!=0){
    7976          sprintf(fileName,"%s/%s",tmpTmap->value,dp->d_name);
    8077          hasFile=1;
     78          break;
    8179        }
    8280      }
     
    109107      xmlDocDumpFormatMemory(res, &xmlbuff, &buffersize, 1);
    110108      setMapInMaps(outputs,"Result","value",(char*)xmlbuff);
    111       setMapInMaps(outputs,"Result","mimeType","text/xml");
    112       setMapInMaps(outputs,"Result","encoding","UTF-8");
    113109      xmlFree(xmlbuff);
    114110    }
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