IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24289


Ignore:
Timestamp:
Jun 1, 2009, 2:29:20 PM (17 years ago)
Author:
jhoblitt
Message:

add nebChmod()

Location:
trunk/Nebulous/nebclient
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/nebclient/nebulous.wsdl

    r23935 r24289  
    140140    </message>
    141141
     142    <message name="chmod_objectRequest">
     143        <part name="key" type="xsd:string" />
     144        <part name="mode" type="xsd:int" />
     145    </message>
     146    <message name="chmod_objectResponse">
     147        <!-- fixme -->
     148        <part name="result" type="xsd:int" />
     149    </message>
     150
    142151
    143152    <portType name="Nebulous/Server/SOAPPort">
     
    240249            -->
    241250        </operation>
     251        <operation name="chmod_object">
     252            <input  message="tns:chmod_objectRequest" />
     253            <output message="tns:chmod_objectResponse" />
     254            <!--
     255                <fault name="" message="" />
     256            -->
     257        </operation>
    242258    </portType>
    243259
     
    390406        <operation name="stat_object">
    391407            <soap:operation soapAction="urn:Nebulous/Server/SOAP#stat_object" />
     408            <input>
     409                <soap:body use="encoded" namespace="urn:Nebulous/Server/SOAP"
     410                    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
     411            </input>
     412            <output>
     413                <soap:body use="encoded" namespace="urn:Nebulous/Server/SOAP"
     414                    encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
     415            </output>
     416        </operation>
     417        <operation name="chmod_object">
     418            <soap:operation soapAction="urn:Nebulous/Server/SOAP#chmod_object" />
    392419            <input>
    393420                <soap:body use="encoded" namespace="urn:Nebulous/Server/SOAP"
  • trunk/Nebulous/nebclient/src/nebclient.c

    r23935 r24289  
    832832}
    833833
     834
     835int nebChmod(nebServer *server, const char *key, mode_t mode)
     836{
     837    int response;
     838
     839    REQUIRE_SERVER;
     840
     841    if (!key) {
     842        nebSetErr(server, "parameter 'key' may not be NULL");
     843
     844        return -1;
     845    }
     846
     847    // FIXME is this leaking memory when response goes out of scope?  the gsoap
     848    // manual seems to 'suggest' that this is temporary data that gets cleaed
     849    // up on the next soap function call
     850    if (soap_call_ns1__chmod_USCOREobject(server->soap, server->endpoint,
     851            NULL, (char *)key, mode, &response) != SOAP_OK) {
     852        nebSetServerErr(server);
     853        return -1;
     854    }
     855
     856    return 0;
     857}
     858
     859
    834860char *nebErr(nebServer *server)
    835861{
  • trunk/Nebulous/nebclient/src/nebclient.h

    r23935 r24289  
    1111#ifndef NEBCLIENT_H
    1212#define NEBCLIENT_H 1
     13
     14// #include <sys/stat.h>
    1315
    1416#ifdef __cplusplus
     
    296298);
    297299
     300/** Change permissions of a storage objects
     301 *
     302 * This function will change the file permissions of all currently on disk
     303 * instances of a storage object.
     304 *
     305 * @return the new mode or NULL on failure.
     306 */
     307
     308int nebChmod(
     309    nebServer *server,                  ///< nebServer object
     310    const char *key,                    /// storage object key (name)
     311    mode_t mode                         /// chmod(2) compatible mode (mode_t)
     312);
     313
    298314/** Returns the error message from the last nebclient function that failed.
    299315 *
  • trunk/Nebulous/nebclient/src/nebulous.h

    r23935 r24289  
    11/* src/nebulous.h
    22   Generated by wsdl2h 1.2.12 from nebulous.wsdl and typemap.dat
    3    2009-04-20 22:15:21 GMT
     3   2009-06-01 23:55:50 GMT
    44   Copyright (C) 2001-2008 Robert van Engelen, Genivia Inc. All Rights Reserved.
    55   This part of the software is released under one of the following licenses:
     
    119119  - @ref ns1__delete_USCOREinstance
    120120  - @ref ns1__stat_USCOREobject
     121  - @ref ns1__chmod_USCOREobject
    121122
    122123@section SOAP_ports Endpoints of Binding  "SOAP"
     
    893894);
    894895
     896/******************************************************************************\
     897 *                                                                            *
     898 * ns1__chmod_USCOREobject                                                    *
     899 *                                                                            *
     900\******************************************************************************/
     901
     902
     903/// Operation "ns1__chmod_USCOREobject" of service binding "SOAP"
     904
     905/**
     906
     907Operation details:
     908
     909  - SOAP RPC encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
     910  - SOAP action="urn:Nebulous/Server/SOAP#chmod_object"
     911
     912C stub function (defined in soapClient.c[pp] generated by soapcpp2):
     913@code
     914  int soap_call_ns1__chmod_USCOREobject(
     915    struct soap *soap,
     916    NULL, // char *endpoint = NULL selects default endpoint for this operation
     917    NULL, // char *action = NULL selects default action for this operation
     918    // request parameters:
     919    char*                               key,
     920    int                                 mode,
     921    // response parameters:
     922    int                                *result
     923  );
     924@endcode
     925
     926C server function (called from the service dispatcher defined in soapServer.c[pp]):
     927@code
     928  int ns1__chmod_USCOREobject(
     929    struct soap *soap,
     930    // request parameters:
     931    char*                               key,
     932    int                                 mode,
     933    // response parameters:
     934    int                                *result
     935  );
     936@endcode
     937
     938*/
     939
     940//gsoap ns1  service method-style:      chmod_USCOREobject rpc
     941//gsoap ns1  service method-encoding:   chmod_USCOREobject http://schemas.xmlsoap.org/soap/encoding/
     942//gsoap ns1  service method-action:     chmod_USCOREobject urn:Nebulous/Server/SOAP#chmod_object
     943int ns1__chmod_USCOREobject(
     944    char*                               key,    ///< Request parameter
     945    int                                 mode,   ///< Request parameter
     946    int                                *result  ///< Response parameter
     947);
     948
    895949/* End of src/nebulous.h */
  • trunk/Nebulous/nebclient/src/soapC.c

    r23935 r24289  
    1212#endif
    1313
    14 SOAP_SOURCE_STAMP("@(#) soapC.c ver 2.7.12 2009-04-20 22:15:22 GMT")
     14SOAP_SOURCE_STAMP("@(#) soapC.c ver 2.7.12 2009-06-01 23:55:50 GMT")
    1515
    1616
     
    161161        case SOAP_TYPE_int:
    162162                return soap_in_int(soap, NULL, NULL, "xsd:int");
     163        case SOAP_TYPE_ns1__chmod_USCOREobject:
     164                return soap_in_ns1__chmod_USCOREobject(soap, NULL, NULL, "ns1:chmod_object");
     165        case SOAP_TYPE_ns1__chmod_USCOREobjectResponse:
     166                return soap_in_ns1__chmod_USCOREobjectResponse(soap, NULL, NULL, "ns1:chmod_objectResponse");
    163167        case SOAP_TYPE_ns1__stat_USCOREobject:
    164168                return soap_in_ns1__stat_USCOREobject(soap, NULL, NULL, "ns1:stat_object");
     
    250254                        return soap_in_int(soap, NULL, NULL, NULL);
    251255                }
     256                if (!soap_match_tag(soap, t, "ns1:chmod_object"))
     257                {       *type = SOAP_TYPE_ns1__chmod_USCOREobject;
     258                        return soap_in_ns1__chmod_USCOREobject(soap, NULL, NULL, NULL);
     259                }
     260                if (!soap_match_tag(soap, t, "ns1:chmod_objectResponse"))
     261                {       *type = SOAP_TYPE_ns1__chmod_USCOREobjectResponse;
     262                        return soap_in_ns1__chmod_USCOREobjectResponse(soap, NULL, NULL, NULL);
     263                }
    252264                if (!soap_match_tag(soap, t, "ns1:stat_object"))
    253265                {       *type = SOAP_TYPE_ns1__stat_USCOREobject;
     
    440452        case SOAP_TYPE_int:
    441453                return soap_out_int(soap, tag, id, (const int *)ptr, "xsd:int");
     454        case SOAP_TYPE_ns1__chmod_USCOREobject:
     455                return soap_out_ns1__chmod_USCOREobject(soap, tag, id, (const struct ns1__chmod_USCOREobject *)ptr, "ns1:chmod_object");
     456        case SOAP_TYPE_ns1__chmod_USCOREobjectResponse:
     457                return soap_out_ns1__chmod_USCOREobjectResponse(soap, tag, id, (const struct ns1__chmod_USCOREobjectResponse *)ptr, "ns1:chmod_objectResponse");
    442458        case SOAP_TYPE_ns1__stat_USCOREobject:
    443459                return soap_out_ns1__stat_USCOREobject(soap, tag, id, (const struct ns1__stat_USCOREobject *)ptr, "ns1:stat_object");
     
    527543        switch (type)
    528544        {
     545        case SOAP_TYPE_ns1__chmod_USCOREobject:
     546                soap_serialize_ns1__chmod_USCOREobject(soap, (const struct ns1__chmod_USCOREobject *)ptr);
     547                break;
     548        case SOAP_TYPE_ns1__chmod_USCOREobjectResponse:
     549                soap_serialize_ns1__chmod_USCOREobjectResponse(soap, (const struct ns1__chmod_USCOREobjectResponse *)ptr);
     550                break;
    529551        case SOAP_TYPE_ns1__stat_USCOREobject:
    530552                soap_serialize_ns1__stat_USCOREobject(soap, (const struct ns1__stat_USCOREobject *)ptr);
     
    11951217#endif
    11961218
     1219SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__chmod_USCOREobject(struct soap *soap, struct ns1__chmod_USCOREobject *a)
     1220{
     1221        (void)soap; (void)a; /* appease -Wall -Werror */
     1222        soap_default_string(soap, &a->key);
     1223        soap_default_int(soap, &a->mode);
     1224}
     1225
     1226SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__chmod_USCOREobject(struct soap *soap, const struct ns1__chmod_USCOREobject *a)
     1227{
     1228        (void)soap; (void)a; /* appease -Wall -Werror */
     1229        soap_serialize_string(soap, &a->key);
     1230        soap_embedded(soap, &a->mode, SOAP_TYPE_int);
     1231}
     1232
     1233SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__chmod_USCOREobject(struct soap *soap, const struct ns1__chmod_USCOREobject *a, const char *tag, const char *type)
     1234{
     1235        register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns1__chmod_USCOREobject);
     1236        if (soap_out_ns1__chmod_USCOREobject(soap, tag, id, a, type))
     1237                return soap->error;
     1238        return soap_putindependent(soap);
     1239}
     1240
     1241SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__chmod_USCOREobject(struct soap *soap, const char *tag, int id, const struct ns1__chmod_USCOREobject *a, const char *type)
     1242{
     1243        if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns1__chmod_USCOREobject), type))
     1244                return soap->error;
     1245        if (soap_out_string(soap, "key", -1, &a->key, ""))
     1246                return soap->error;
     1247        if (soap_out_int(soap, "mode", -1, &a->mode, ""))
     1248                return soap->error;
     1249        return soap_element_end_out(soap, tag);
     1250}
     1251
     1252SOAP_FMAC3 struct ns1__chmod_USCOREobject * SOAP_FMAC4 soap_get_ns1__chmod_USCOREobject(struct soap *soap, struct ns1__chmod_USCOREobject *p, const char *tag, const char *type)
     1253{
     1254        if ((p = soap_in_ns1__chmod_USCOREobject(soap, tag, p, type)))
     1255                if (soap_getindependent(soap))
     1256                        return NULL;
     1257        return p;
     1258}
     1259
     1260SOAP_FMAC3 struct ns1__chmod_USCOREobject * SOAP_FMAC4 soap_in_ns1__chmod_USCOREobject(struct soap *soap, const char *tag, struct ns1__chmod_USCOREobject *a, const char *type)
     1261{
     1262        size_t soap_flag_key = 1;
     1263        size_t soap_flag_mode = 1;
     1264        if (soap_element_begin_in(soap, tag, 0, type))
     1265                return NULL;
     1266        a = (struct ns1__chmod_USCOREobject *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns1__chmod_USCOREobject, sizeof(struct ns1__chmod_USCOREobject), 0, NULL, NULL, NULL);
     1267        if (!a)
     1268                return NULL;
     1269        soap_default_ns1__chmod_USCOREobject(soap, a);
     1270        if (soap->body && !*soap->href)
     1271        {
     1272                for (;;)
     1273                {       soap->error = SOAP_TAG_MISMATCH;
     1274                        if (soap_flag_key && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))
     1275                                if (soap_in_string(soap, "key", &a->key, "xsd:string"))
     1276                                {       soap_flag_key--;
     1277                                        continue;
     1278                                }
     1279                        if (soap_flag_mode && soap->error == SOAP_TAG_MISMATCH)
     1280                                if (soap_in_int(soap, "mode", &a->mode, "xsd:int"))
     1281                                {       soap_flag_mode--;
     1282                                        continue;
     1283                                }
     1284                        if (soap->error == SOAP_TAG_MISMATCH)
     1285                                soap->error = soap_ignore_element(soap);
     1286                        if (soap->error == SOAP_NO_TAG)
     1287                                break;
     1288                        if (soap->error)
     1289                                return NULL;
     1290                }
     1291                if (soap_element_end_in(soap, tag))
     1292                        return NULL;
     1293        }
     1294        else
     1295        {       a = (struct ns1__chmod_USCOREobject *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns1__chmod_USCOREobject, 0, sizeof(struct ns1__chmod_USCOREobject), 0, NULL);
     1296                if (soap->body && soap_element_end_in(soap, tag))
     1297                        return NULL;
     1298        }
     1299        if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_mode > 0))
     1300        {       soap->error = SOAP_OCCURS;
     1301                return NULL;
     1302        }
     1303        return a;
     1304}
     1305
     1306SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__chmod_USCOREobjectResponse(struct soap *soap, struct ns1__chmod_USCOREobjectResponse *a)
     1307{
     1308        (void)soap; (void)a; /* appease -Wall -Werror */
     1309        a->result = NULL;
     1310}
     1311
     1312SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__chmod_USCOREobjectResponse(struct soap *soap, const struct ns1__chmod_USCOREobjectResponse *a)
     1313{
     1314        (void)soap; (void)a; /* appease -Wall -Werror */
     1315        soap_serialize_PointerToint(soap, &a->result);
     1316}
     1317
     1318SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__chmod_USCOREobjectResponse(struct soap *soap, const struct ns1__chmod_USCOREobjectResponse *a, const char *tag, const char *type)
     1319{
     1320        register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns1__chmod_USCOREobjectResponse);
     1321        if (soap_out_ns1__chmod_USCOREobjectResponse(soap, tag, id, a, type))
     1322                return soap->error;
     1323        return soap_putindependent(soap);
     1324}
     1325
     1326SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__chmod_USCOREobjectResponse(struct soap *soap, const char *tag, int id, const struct ns1__chmod_USCOREobjectResponse *a, const char *type)
     1327{
     1328        if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns1__chmod_USCOREobjectResponse), type))
     1329                return soap->error;
     1330        if (soap_out_PointerToint(soap, "result", -1, &a->result, ""))
     1331                return soap->error;
     1332        return soap_element_end_out(soap, tag);
     1333}
     1334
     1335SOAP_FMAC3 struct ns1__chmod_USCOREobjectResponse * SOAP_FMAC4 soap_get_ns1__chmod_USCOREobjectResponse(struct soap *soap, struct ns1__chmod_USCOREobjectResponse *p, const char *tag, const char *type)
     1336{
     1337        if ((p = soap_in_ns1__chmod_USCOREobjectResponse(soap, tag, p, type)))
     1338                if (soap_getindependent(soap))
     1339                        return NULL;
     1340        return p;
     1341}
     1342
     1343SOAP_FMAC3 struct ns1__chmod_USCOREobjectResponse * SOAP_FMAC4 soap_in_ns1__chmod_USCOREobjectResponse(struct soap *soap, const char *tag, struct ns1__chmod_USCOREobjectResponse *a, const char *type)
     1344{
     1345        size_t soap_flag_result = 1;
     1346        if (soap_element_begin_in(soap, tag, 0, type))
     1347                return NULL;
     1348        a = (struct ns1__chmod_USCOREobjectResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns1__chmod_USCOREobjectResponse, sizeof(struct ns1__chmod_USCOREobjectResponse), 0, NULL, NULL, NULL);
     1349        if (!a)
     1350                return NULL;
     1351        soap_default_ns1__chmod_USCOREobjectResponse(soap, a);
     1352        if (soap->body && !*soap->href)
     1353        {
     1354                for (;;)
     1355                {       soap->error = SOAP_TAG_MISMATCH;
     1356                        if (soap_flag_result && soap->error == SOAP_TAG_MISMATCH)
     1357                                if (soap_in_PointerToint(soap, "result", &a->result, "xsd:int"))
     1358                                {       soap_flag_result--;
     1359                                        continue;
     1360                                }
     1361                        if (soap->error == SOAP_TAG_MISMATCH)
     1362                                soap->error = soap_ignore_element(soap);
     1363                        if (soap->error == SOAP_NO_TAG)
     1364                                break;
     1365                        if (soap->error)
     1366                                return NULL;
     1367                }
     1368                if (soap_element_end_in(soap, tag))
     1369                        return NULL;
     1370        }
     1371        else
     1372        {       a = (struct ns1__chmod_USCOREobjectResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns1__chmod_USCOREobjectResponse, 0, sizeof(struct ns1__chmod_USCOREobjectResponse), 0, NULL);
     1373                if (soap->body && soap_element_end_in(soap, tag))
     1374                        return NULL;
     1375        }
     1376        return a;
     1377}
     1378
    11971379SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__stat_USCOREobject(struct soap *soap, struct ns1__stat_USCOREobject *a)
    11981380{
  • trunk/Nebulous/nebclient/src/soapClient.c

    r23935 r24289  
    1010#endif
    1111
    12 SOAP_SOURCE_STAMP("@(#) soapClient.c ver 2.7.12 2009-04-20 22:15:21 GMT")
     12SOAP_SOURCE_STAMP("@(#) soapClient.c ver 2.7.12 2009-06-01 23:55:50 GMT")
    1313
    1414
     
    812812}
    813813
     814SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__chmod_USCOREobject(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, int mode, int *result)
     815{       struct ns1__chmod_USCOREobject soap_tmp_ns1__chmod_USCOREobject;
     816        struct ns1__chmod_USCOREobjectResponse *soap_tmp_ns1__chmod_USCOREobjectResponse;
     817        if (!soap_endpoint)
     818                soap_endpoint = "http://localhost:80/nebulous";
     819        if (!soap_action)
     820                soap_action = "urn:Nebulous/Server/SOAP#chmod_object";
     821        soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/";
     822        soap_tmp_ns1__chmod_USCOREobject.key = key;
     823        soap_tmp_ns1__chmod_USCOREobject.mode = mode;
     824        soap_begin(soap);
     825        soap_serializeheader(soap);
     826        soap_serialize_ns1__chmod_USCOREobject(soap, &soap_tmp_ns1__chmod_USCOREobject);
     827        if (soap_begin_count(soap))
     828                return soap->error;
     829        if (soap->mode & SOAP_IO_LENGTH)
     830        {       if (soap_envelope_begin_out(soap)
     831                 || soap_putheader(soap)
     832                 || soap_body_begin_out(soap)
     833                 || soap_put_ns1__chmod_USCOREobject(soap, &soap_tmp_ns1__chmod_USCOREobject, "ns1:chmod_object", "")
     834                 || soap_body_end_out(soap)
     835                 || soap_envelope_end_out(soap))
     836                         return soap->error;
     837        }
     838        if (soap_end_count(soap))
     839                return soap->error;
     840        if (soap_connect(soap, soap_endpoint, soap_action)
     841         || soap_envelope_begin_out(soap)
     842         || soap_putheader(soap)
     843         || soap_body_begin_out(soap)
     844         || soap_put_ns1__chmod_USCOREobject(soap, &soap_tmp_ns1__chmod_USCOREobject, "ns1:chmod_object", "")
     845         || soap_body_end_out(soap)
     846         || soap_envelope_end_out(soap)
     847         || soap_end_send(soap))
     848                return soap_closesock(soap);
     849        if (!result)
     850                return soap_closesock(soap);
     851        soap_default_int(soap, result);
     852        if (soap_begin_recv(soap)
     853         || soap_envelope_begin_in(soap)
     854         || soap_recv_header(soap)
     855         || soap_body_begin_in(soap))
     856                return soap_closesock(soap);
     857        soap_tmp_ns1__chmod_USCOREobjectResponse = soap_get_ns1__chmod_USCOREobjectResponse(soap, NULL, "ns1:chmod_objectResponse", "");
     858        if (soap->error)
     859        {       if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2)
     860                        return soap_recv_fault(soap);
     861                return soap_closesock(soap);
     862        }
     863        if (soap_body_end_in(soap)
     864         || soap_envelope_end_in(soap)
     865         || soap_end_recv(soap))
     866                return soap_closesock(soap);
     867        if (result && soap_tmp_ns1__chmod_USCOREobjectResponse->result)
     868                *result = *soap_tmp_ns1__chmod_USCOREobjectResponse->result;
     869        return soap_closesock(soap);
     870}
     871
    814872#ifdef __cplusplus
    815873}
  • trunk/Nebulous/nebclient/src/soapH.h

    r23198 r24289  
    4242
    4343#ifndef SOAP_TYPE_SOAP_ENV__Fault
    44 #define SOAP_TYPE_SOAP_ENV__Fault (64)
     44#define SOAP_TYPE_SOAP_ENV__Fault (67)
    4545#endif
    4646SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Fault(struct soap*, struct SOAP_ENV__Fault *);
     
    5656
    5757#ifndef SOAP_TYPE_SOAP_ENV__Reason
    58 #define SOAP_TYPE_SOAP_ENV__Reason (63)
     58#define SOAP_TYPE_SOAP_ENV__Reason (66)
    5959#endif
    6060SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *);
     
    7070
    7171#ifndef SOAP_TYPE_SOAP_ENV__Detail
    72 #define SOAP_TYPE_SOAP_ENV__Detail (60)
     72#define SOAP_TYPE_SOAP_ENV__Detail (63)
    7373#endif
    7474SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *);
     
    8484
    8585#ifndef SOAP_TYPE_SOAP_ENV__Code
    86 #define SOAP_TYPE_SOAP_ENV__Code (58)
     86#define SOAP_TYPE_SOAP_ENV__Code (61)
    8787#endif
    8888SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *);
     
    9898
    9999#ifndef SOAP_TYPE_SOAP_ENV__Header
    100 #define SOAP_TYPE_SOAP_ENV__Header (57)
     100#define SOAP_TYPE_SOAP_ENV__Header (60)
    101101#endif
    102102SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Header(struct soap*, struct SOAP_ENV__Header *);
     
    109109#endif
    110110
     111#ifndef SOAP_TYPE_ns1__chmod_USCOREobject
     112#define SOAP_TYPE_ns1__chmod_USCOREobject (59)
     113#endif
     114SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__chmod_USCOREobject(struct soap*, struct ns1__chmod_USCOREobject *);
     115SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__chmod_USCOREobject(struct soap*, const struct ns1__chmod_USCOREobject *);
     116SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__chmod_USCOREobject(struct soap*, const struct ns1__chmod_USCOREobject *, const char*, const char*);
     117SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__chmod_USCOREobject(struct soap*, const char*, int, const struct ns1__chmod_USCOREobject *, const char*);
     118SOAP_FMAC3 struct ns1__chmod_USCOREobject * SOAP_FMAC4 soap_get_ns1__chmod_USCOREobject(struct soap*, struct ns1__chmod_USCOREobject *, const char*, const char*);
     119SOAP_FMAC3 struct ns1__chmod_USCOREobject * SOAP_FMAC4 soap_in_ns1__chmod_USCOREobject(struct soap*, const char*, struct ns1__chmod_USCOREobject *, const char*);
     120
     121#ifndef SOAP_TYPE_ns1__chmod_USCOREobjectResponse
     122#define SOAP_TYPE_ns1__chmod_USCOREobjectResponse (58)
     123#endif
     124SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__chmod_USCOREobjectResponse(struct soap*, struct ns1__chmod_USCOREobjectResponse *);
     125SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__chmod_USCOREobjectResponse(struct soap*, const struct ns1__chmod_USCOREobjectResponse *);
     126SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__chmod_USCOREobjectResponse(struct soap*, const struct ns1__chmod_USCOREobjectResponse *, const char*, const char*);
     127SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__chmod_USCOREobjectResponse(struct soap*, const char*, int, const struct ns1__chmod_USCOREobjectResponse *, const char*);
     128SOAP_FMAC3 struct ns1__chmod_USCOREobjectResponse * SOAP_FMAC4 soap_get_ns1__chmod_USCOREobjectResponse(struct soap*, struct ns1__chmod_USCOREobjectResponse *, const char*, const char*);
     129SOAP_FMAC3 struct ns1__chmod_USCOREobjectResponse * SOAP_FMAC4 soap_in_ns1__chmod_USCOREobjectResponse(struct soap*, const char*, struct ns1__chmod_USCOREobjectResponse *, const char*);
     130
    111131#ifndef SOAP_TYPE_ns1__stat_USCOREobject
    112132#define SOAP_TYPE_ns1__stat_USCOREobject (56)
     
    402422
    403423#ifndef SOAP_TYPE_PointerToSOAP_ENV__Reason
    404 #define SOAP_TYPE_PointerToSOAP_ENV__Reason (66)
     424#define SOAP_TYPE_PointerToSOAP_ENV__Reason (69)
    405425#endif
    406426SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *const*);
     
    415435
    416436#ifndef SOAP_TYPE_PointerToSOAP_ENV__Detail
    417 #define SOAP_TYPE_PointerToSOAP_ENV__Detail (65)
     437#define SOAP_TYPE_PointerToSOAP_ENV__Detail (68)
    418438#endif
    419439SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *const*);
     
    428448
    429449#ifndef SOAP_TYPE_PointerToSOAP_ENV__Code
    430 #define SOAP_TYPE_PointerToSOAP_ENV__Code (59)
     450#define SOAP_TYPE_PointerToSOAP_ENV__Code (62)
    431451#endif
    432452SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *const*);
  • trunk/Nebulous/nebclient/src/soapServer.c

    r23935 r24289  
    1010#endif
    1111
    12 SOAP_SOURCE_STAMP("@(#) soapServer.c ver 2.7.12 2009-04-20 22:15:21 GMT")
     12SOAP_SOURCE_STAMP("@(#) soapServer.c ver 2.7.12 2009-06-01 23:55:50 GMT")
    1313
    1414
     
    105105        if (!soap_match_tag(soap, soap->tag, "ns1:stat_object"))
    106106                return soap_serve_ns1__stat_USCOREobject(soap);
     107        if (!soap_match_tag(soap, soap->tag, "ns1:chmod_object"))
     108                return soap_serve_ns1__chmod_USCOREobject(soap);
    107109        return soap->error = SOAP_NO_METHOD;
    108110}
     
    713715}
    714716
     717SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__chmod_USCOREobject(struct soap *soap)
     718{       struct ns1__chmod_USCOREobject soap_tmp_ns1__chmod_USCOREobject;
     719        struct ns1__chmod_USCOREobjectResponse soap_tmp_ns1__chmod_USCOREobjectResponse;
     720        int soap_tmp_int;
     721        soap_default_ns1__chmod_USCOREobjectResponse(soap, &soap_tmp_ns1__chmod_USCOREobjectResponse);
     722        soap_default_int(soap, &soap_tmp_int);
     723        soap_tmp_ns1__chmod_USCOREobjectResponse.result = &soap_tmp_int;
     724        soap_default_ns1__chmod_USCOREobject(soap, &soap_tmp_ns1__chmod_USCOREobject);
     725        soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/";
     726        if (!soap_get_ns1__chmod_USCOREobject(soap, &soap_tmp_ns1__chmod_USCOREobject, "ns1:chmod_object", NULL))
     727                return soap->error;
     728        if (soap_body_end_in(soap)
     729         || soap_envelope_end_in(soap)
     730         || soap_end_recv(soap))
     731                return soap->error;
     732        soap->error = ns1__chmod_USCOREobject(soap, soap_tmp_ns1__chmod_USCOREobject.key, soap_tmp_ns1__chmod_USCOREobject.mode, &soap_tmp_int);
     733        if (soap->error)
     734                return soap->error;
     735        soap_serializeheader(soap);
     736        soap_serialize_ns1__chmod_USCOREobjectResponse(soap, &soap_tmp_ns1__chmod_USCOREobjectResponse);
     737        if (soap_begin_count(soap))
     738                return soap->error;
     739        if (soap->mode & SOAP_IO_LENGTH)
     740        {       if (soap_envelope_begin_out(soap)
     741                 || soap_putheader(soap)
     742                 || soap_body_begin_out(soap)
     743                 || soap_put_ns1__chmod_USCOREobjectResponse(soap, &soap_tmp_ns1__chmod_USCOREobjectResponse, "ns1:chmod_objectResponse", "")
     744                 || soap_body_end_out(soap)
     745                 || soap_envelope_end_out(soap))
     746                         return soap->error;
     747        };
     748        if (soap_end_count(soap)
     749         || soap_response(soap, SOAP_OK)
     750         || soap_envelope_begin_out(soap)
     751         || soap_putheader(soap)
     752         || soap_body_begin_out(soap)
     753         || soap_put_ns1__chmod_USCOREobjectResponse(soap, &soap_tmp_ns1__chmod_USCOREobjectResponse, "ns1:chmod_objectResponse", "")
     754         || soap_body_end_out(soap)
     755         || soap_envelope_end_out(soap)
     756         || soap_end_send(soap))
     757                return soap->error;
     758        return soap_closesock(soap);
     759}
     760
    715761#ifdef __cplusplus
    716762}
  • trunk/Nebulous/nebclient/src/soapStub.h

    r23935 r24289  
    306306#endif
    307307
     308#ifndef SOAP_TYPE_ns1__chmod_USCOREobjectResponse
     309#define SOAP_TYPE_ns1__chmod_USCOREobjectResponse (58)
     310/* ns1:chmod_objectResponse */
     311struct ns1__chmod_USCOREobjectResponse
     312{
     313        int *result;    /* SOAP 1.2 RPC return element (when namespace qualified) */    /* optional element of type xsd:int */
     314};
     315#endif
     316
     317#ifndef SOAP_TYPE_ns1__chmod_USCOREobject
     318#define SOAP_TYPE_ns1__chmod_USCOREobject (59)
     319/* ns1:chmod_object */
     320struct ns1__chmod_USCOREobject
     321{
     322        char *key;      /* optional element of type xsd:string */
     323        int mode;       /* required element of type xsd:int */
     324};
     325#endif
     326
    308327#ifndef SOAP_TYPE_SOAP_ENV__Header
    309 #define SOAP_TYPE_SOAP_ENV__Header (57)
     328#define SOAP_TYPE_SOAP_ENV__Header (60)
    310329/* SOAP Header: */
    311330struct SOAP_ENV__Header
     
    318337
    319338#ifndef SOAP_TYPE_SOAP_ENV__Code
    320 #define SOAP_TYPE_SOAP_ENV__Code (58)
     339#define SOAP_TYPE_SOAP_ENV__Code (61)
    321340/* SOAP Fault Code: */
    322341struct SOAP_ENV__Code
     
    328347
    329348#ifndef SOAP_TYPE_SOAP_ENV__Detail
    330 #define SOAP_TYPE_SOAP_ENV__Detail (60)
     349#define SOAP_TYPE_SOAP_ENV__Detail (63)
    331350/* SOAP-ENV:Detail */
    332351struct SOAP_ENV__Detail
     
    339358
    340359#ifndef SOAP_TYPE_SOAP_ENV__Reason
    341 #define SOAP_TYPE_SOAP_ENV__Reason (63)
     360#define SOAP_TYPE_SOAP_ENV__Reason (66)
    342361/* SOAP-ENV:Reason */
    343362struct SOAP_ENV__Reason
     
    348367
    349368#ifndef SOAP_TYPE_SOAP_ENV__Fault
    350 #define SOAP_TYPE_SOAP_ENV__Fault (64)
     369#define SOAP_TYPE_SOAP_ENV__Fault (67)
    351370/* SOAP Fault: */
    352371struct SOAP_ENV__Fault
     
    437456SOAP_FMAC5 int SOAP_FMAC6 ns1__stat_USCOREobject(struct soap*, char *key, struct ns1__stat_USCOREobjectResponse *_param_4);
    438457
     458SOAP_FMAC5 int SOAP_FMAC6 ns1__chmod_USCOREobject(struct soap*, char *key, int mode, int *result);
     459
    439460/******************************************************************************\
    440461 *                                                                            *
     
    472493SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__stat_USCOREobject(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, struct ns1__stat_USCOREobjectResponse *_param_4);
    473494
     495SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__chmod_USCOREobject(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, int mode, int *result);
     496
    474497/******************************************************************************\
    475498 *                                                                            *
     
    509532
    510533SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__stat_USCOREobject(struct soap*);
     534
     535SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__chmod_USCOREobject(struct soap*);
    511536
    512537#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.