Changeset 283


Ignore:
Timestamp:
Jul 27, 2011, 4:44:53 AM (13 years ago)
Author:
djay
Message:

Fix XML validation when only Default node is provided in the ZCFG file.

Location:
trunk/zoo-kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-kernel/service_internal.c

    r282 r283  
    10361036
    10371037    _tmp=e->supported;
    1038     if(_tmp==NULL && datatype==0)
     1038    if(_tmp==NULL)
    10391039      _tmp=e->defaults;
    10401040
  • trunk/zoo-kernel/zoo_service_loader.c

    r282 r283  
    11651165            fprintf(stderr,"REFERENCE\n");
    11661166#endif
    1167             const char *refs[5];
    1168             refs[0]="mimeType";
    1169             refs[1]="encoding";
    1170             refs[2]="schema";
    1171             refs[3]="method";
    1172             refs[4]="href";
     1167            const char *refs[5]={"mimeType","encoding","schema","method","href"};
    11731168            for(int l=0;l<5;l++){
    11741169#ifdef DEBUG
     
    15301525         * storeExecuteResponse, lineage, status
    15311526         */
    1532         const char *ress[3];
    1533         ress[0]="storeExecuteResponse";
    1534         ress[1]="lineage";
    1535         ress[2]="status";
     1527        const char *ress[3]={"storeExecuteResponse","lineage","status"};
    15361528        xmlChar *val;
    15371529        for(int l=0;l<3;l++){
     
    16041596             * mimeType, encoding, schema, uom, asReference
    16051597             */
    1606             const char *outs[5];
    1607             outs[0]="mimeType";
    1608             outs[1]="encoding";
    1609             outs[2]="schema";
    1610             outs[3]="uom";
    1611             outs[4]="asReference";
     1598            const char *outs[5]={"mimeType","encoding","schema","uom","asReference"};
    16121599            for(int l=0;l<5;l++){
    16131600#ifdef DEBUG
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