Changeset 24923
- Timestamp:
- Jul 24, 2009, 4:11:30 PM (17 years ago)
- Location:
- trunk/Nebulous/nebclient
- Files:
-
- 10 edited
-
nebulous.wsdl (modified) (3 diffs)
-
src/nebclient.c (modified) (1 diff)
-
src/nebclient.h (modified) (1 diff)
-
src/nebulous.h (modified) (3 diffs)
-
src/soapC.c (modified) (6 diffs)
-
src/soapClient.c (modified) (2 diffs)
-
src/soapH.h (modified) (9 diffs)
-
src/soapServer.c (modified) (3 diffs)
-
src/soapStub.h (modified) (8 diffs)
-
tests/tests.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/nebclient/nebulous.wsdl
r24289 r24923 149 149 </message> 150 150 151 <message name="prune_objectRequest"> 152 <part name="key" type="xsd:string" /> 153 </message> 154 <message name="prune_objectResponse"> 155 <!-- fixme --> 156 <part name="result" type="xsd:int" /> 157 </message> 158 151 159 152 160 <portType name="Nebulous/Server/SOAPPort"> … … 256 264 --> 257 265 </operation> 266 <operation name="prune_object"> 267 <input message="tns:prune_objectRequest" /> 268 <output message="tns:prune_objectResponse" /> 269 <!-- 270 <fault name="" message="" /> 271 --> 272 </operation> 258 273 </portType> 259 274 … … 417 432 <operation name="chmod_object"> 418 433 <soap:operation soapAction="urn:Nebulous/Server/SOAP#chmod_object" /> 434 <input> 435 <soap:body use="encoded" namespace="urn:Nebulous/Server/SOAP" 436 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 437 </input> 438 <output> 439 <soap:body use="encoded" namespace="urn:Nebulous/Server/SOAP" 440 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 441 </output> 442 </operation> 443 <operation name="prune_object"> 444 <soap:operation soapAction="urn:Nebulous/Server/SOAP#prune_object" /> 419 445 <input> 420 446 <soap:body use="encoded" namespace="urn:Nebulous/Server/SOAP" -
trunk/Nebulous/nebclient/src/nebclient.c
r24916 r24923 859 859 860 860 861 int nebPrune(nebServer *server, const char *key) 862 { 863 int response; 864 865 REQUIRE_SERVER; 866 867 if (!key) { 868 nebSetErr(server, "parameter 'key' may not be NULL"); 869 870 return -1; 871 } 872 873 // FIXME is this leaking memory when response goes out of scope? the gsoap 874 // manual seems to 'suggest' that this is temporary data that gets cleaed 875 // up on the next soap function call 876 if (soap_call_ns1__prune_USCOREobject(server->soap, server->endpoint, 877 NULL, (char *)key, &response) != SOAP_OK) { 878 nebSetServerErr(server); 879 return -1; 880 } 881 882 return response; 883 } 884 885 861 886 char *nebErr(nebServer *server) 862 887 { -
trunk/Nebulous/nebclient/src/nebclient.h
r24916 r24923 313 313 ); 314 314 315 /** Removes all of the inaccessible instances from an object 316 * 317 * @return the number of inaccessible instances removed 318 */ 319 320 int nebPrune( 321 nebServer *server, ///< nebServer object 322 const char *key /// storage object key (name) 323 ); 324 315 325 /** Returns the error message from the last nebclient function that failed. 316 326 * -
trunk/Nebulous/nebclient/src/nebulous.h
r24289 r24923 1 1 /* src/nebulous.h 2 2 Generated by wsdl2h 1.2.12 from nebulous.wsdl and typemap.dat 3 2009-0 6-01 23:55:50GMT3 2009-07-25 01:30:29 GMT 4 4 Copyright (C) 2001-2008 Robert van Engelen, Genivia Inc. All Rights Reserved. 5 5 This part of the software is released under one of the following licenses: … … 120 120 - @ref ns1__stat_USCOREobject 121 121 - @ref ns1__chmod_USCOREobject 122 - @ref ns1__prune_USCOREobject 122 123 123 124 @section SOAP_ports Endpoints of Binding "SOAP" … … 947 948 ); 948 949 950 /******************************************************************************\ 951 * * 952 * ns1__prune_USCOREobject * 953 * * 954 \******************************************************************************/ 955 956 957 /// Operation "ns1__prune_USCOREobject" of service binding "SOAP" 958 959 /** 960 961 Operation details: 962 963 - SOAP RPC encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 964 - SOAP action="urn:Nebulous/Server/SOAP#prune_object" 965 966 C stub function (defined in soapClient.c[pp] generated by soapcpp2): 967 @code 968 int soap_call_ns1__prune_USCOREobject( 969 struct soap *soap, 970 NULL, // char *endpoint = NULL selects default endpoint for this operation 971 NULL, // char *action = NULL selects default action for this operation 972 // request parameters: 973 char* key, 974 // response parameters: 975 int *result 976 ); 977 @endcode 978 979 C server function (called from the service dispatcher defined in soapServer.c[pp]): 980 @code 981 int ns1__prune_USCOREobject( 982 struct soap *soap, 983 // request parameters: 984 char* key, 985 // response parameters: 986 int *result 987 ); 988 @endcode 989 990 */ 991 992 //gsoap ns1 service method-style: prune_USCOREobject rpc 993 //gsoap ns1 service method-encoding: prune_USCOREobject http://schemas.xmlsoap.org/soap/encoding/ 994 //gsoap ns1 service method-action: prune_USCOREobject urn:Nebulous/Server/SOAP#prune_object 995 int ns1__prune_USCOREobject( 996 char* key, ///< Request parameter 997 int *result ///< Response parameter 998 ); 999 949 1000 /* End of src/nebulous.h */ -
trunk/Nebulous/nebclient/src/soapC.c
r24289 r24923 12 12 #endif 13 13 14 SOAP_SOURCE_STAMP("@(#) soapC.c ver 2.7.12 2009-0 6-01 23:55:50GMT")14 SOAP_SOURCE_STAMP("@(#) soapC.c ver 2.7.12 2009-07-25 01:30:29 GMT") 15 15 16 16 … … 161 161 case SOAP_TYPE_int: 162 162 return soap_in_int(soap, NULL, NULL, "xsd:int"); 163 case SOAP_TYPE_ns1__prune_USCOREobject: 164 return soap_in_ns1__prune_USCOREobject(soap, NULL, NULL, "ns1:prune_object"); 165 case SOAP_TYPE_ns1__prune_USCOREobjectResponse: 166 return soap_in_ns1__prune_USCOREobjectResponse(soap, NULL, NULL, "ns1:prune_objectResponse"); 163 167 case SOAP_TYPE_ns1__chmod_USCOREobject: 164 168 return soap_in_ns1__chmod_USCOREobject(soap, NULL, NULL, "ns1:chmod_object"); … … 254 258 return soap_in_int(soap, NULL, NULL, NULL); 255 259 } 260 if (!soap_match_tag(soap, t, "ns1:prune_object")) 261 { *type = SOAP_TYPE_ns1__prune_USCOREobject; 262 return soap_in_ns1__prune_USCOREobject(soap, NULL, NULL, NULL); 263 } 264 if (!soap_match_tag(soap, t, "ns1:prune_objectResponse")) 265 { *type = SOAP_TYPE_ns1__prune_USCOREobjectResponse; 266 return soap_in_ns1__prune_USCOREobjectResponse(soap, NULL, NULL, NULL); 267 } 256 268 if (!soap_match_tag(soap, t, "ns1:chmod_object")) 257 269 { *type = SOAP_TYPE_ns1__chmod_USCOREobject; … … 452 464 case SOAP_TYPE_int: 453 465 return soap_out_int(soap, tag, id, (const int *)ptr, "xsd:int"); 466 case SOAP_TYPE_ns1__prune_USCOREobject: 467 return soap_out_ns1__prune_USCOREobject(soap, tag, id, (const struct ns1__prune_USCOREobject *)ptr, "ns1:prune_object"); 468 case SOAP_TYPE_ns1__prune_USCOREobjectResponse: 469 return soap_out_ns1__prune_USCOREobjectResponse(soap, tag, id, (const struct ns1__prune_USCOREobjectResponse *)ptr, "ns1:prune_objectResponse"); 454 470 case SOAP_TYPE_ns1__chmod_USCOREobject: 455 471 return soap_out_ns1__chmod_USCOREobject(soap, tag, id, (const struct ns1__chmod_USCOREobject *)ptr, "ns1:chmod_object"); … … 543 559 switch (type) 544 560 { 561 case SOAP_TYPE_ns1__prune_USCOREobject: 562 soap_serialize_ns1__prune_USCOREobject(soap, (const struct ns1__prune_USCOREobject *)ptr); 563 break; 564 case SOAP_TYPE_ns1__prune_USCOREobjectResponse: 565 soap_serialize_ns1__prune_USCOREobjectResponse(soap, (const struct ns1__prune_USCOREobjectResponse *)ptr); 566 break; 545 567 case SOAP_TYPE_ns1__chmod_USCOREobject: 546 568 soap_serialize_ns1__chmod_USCOREobject(soap, (const struct ns1__chmod_USCOREobject *)ptr); … … 1217 1239 #endif 1218 1240 1241 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__prune_USCOREobject(struct soap *soap, struct ns1__prune_USCOREobject *a) 1242 { 1243 (void)soap; (void)a; /* appease -Wall -Werror */ 1244 soap_default_string(soap, &a->key); 1245 } 1246 1247 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__prune_USCOREobject(struct soap *soap, const struct ns1__prune_USCOREobject *a) 1248 { 1249 (void)soap; (void)a; /* appease -Wall -Werror */ 1250 soap_serialize_string(soap, &a->key); 1251 } 1252 1253 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__prune_USCOREobject(struct soap *soap, const struct ns1__prune_USCOREobject *a, const char *tag, const char *type) 1254 { 1255 register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns1__prune_USCOREobject); 1256 if (soap_out_ns1__prune_USCOREobject(soap, tag, id, a, type)) 1257 return soap->error; 1258 return soap_putindependent(soap); 1259 } 1260 1261 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__prune_USCOREobject(struct soap *soap, const char *tag, int id, const struct ns1__prune_USCOREobject *a, const char *type) 1262 { 1263 if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns1__prune_USCOREobject), type)) 1264 return soap->error; 1265 if (soap_out_string(soap, "key", -1, &a->key, "")) 1266 return soap->error; 1267 return soap_element_end_out(soap, tag); 1268 } 1269 1270 SOAP_FMAC3 struct ns1__prune_USCOREobject * SOAP_FMAC4 soap_get_ns1__prune_USCOREobject(struct soap *soap, struct ns1__prune_USCOREobject *p, const char *tag, const char *type) 1271 { 1272 if ((p = soap_in_ns1__prune_USCOREobject(soap, tag, p, type))) 1273 if (soap_getindependent(soap)) 1274 return NULL; 1275 return p; 1276 } 1277 1278 SOAP_FMAC3 struct ns1__prune_USCOREobject * SOAP_FMAC4 soap_in_ns1__prune_USCOREobject(struct soap *soap, const char *tag, struct ns1__prune_USCOREobject *a, const char *type) 1279 { 1280 size_t soap_flag_key = 1; 1281 if (soap_element_begin_in(soap, tag, 0, type)) 1282 return NULL; 1283 a = (struct ns1__prune_USCOREobject *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns1__prune_USCOREobject, sizeof(struct ns1__prune_USCOREobject), 0, NULL, NULL, NULL); 1284 if (!a) 1285 return NULL; 1286 soap_default_ns1__prune_USCOREobject(soap, a); 1287 if (soap->body && !*soap->href) 1288 { 1289 for (;;) 1290 { soap->error = SOAP_TAG_MISMATCH; 1291 if (soap_flag_key && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) 1292 if (soap_in_string(soap, "key", &a->key, "xsd:string")) 1293 { soap_flag_key--; 1294 continue; 1295 } 1296 if (soap->error == SOAP_TAG_MISMATCH) 1297 soap->error = soap_ignore_element(soap); 1298 if (soap->error == SOAP_NO_TAG) 1299 break; 1300 if (soap->error) 1301 return NULL; 1302 } 1303 if (soap_element_end_in(soap, tag)) 1304 return NULL; 1305 } 1306 else 1307 { a = (struct ns1__prune_USCOREobject *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns1__prune_USCOREobject, 0, sizeof(struct ns1__prune_USCOREobject), 0, NULL); 1308 if (soap->body && soap_element_end_in(soap, tag)) 1309 return NULL; 1310 } 1311 return a; 1312 } 1313 1314 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__prune_USCOREobjectResponse(struct soap *soap, struct ns1__prune_USCOREobjectResponse *a) 1315 { 1316 (void)soap; (void)a; /* appease -Wall -Werror */ 1317 a->result = NULL; 1318 } 1319 1320 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__prune_USCOREobjectResponse(struct soap *soap, const struct ns1__prune_USCOREobjectResponse *a) 1321 { 1322 (void)soap; (void)a; /* appease -Wall -Werror */ 1323 soap_serialize_PointerToint(soap, &a->result); 1324 } 1325 1326 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__prune_USCOREobjectResponse(struct soap *soap, const struct ns1__prune_USCOREobjectResponse *a, const char *tag, const char *type) 1327 { 1328 register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns1__prune_USCOREobjectResponse); 1329 if (soap_out_ns1__prune_USCOREobjectResponse(soap, tag, id, a, type)) 1330 return soap->error; 1331 return soap_putindependent(soap); 1332 } 1333 1334 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__prune_USCOREobjectResponse(struct soap *soap, const char *tag, int id, const struct ns1__prune_USCOREobjectResponse *a, const char *type) 1335 { 1336 if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns1__prune_USCOREobjectResponse), type)) 1337 return soap->error; 1338 if (soap_out_PointerToint(soap, "result", -1, &a->result, "")) 1339 return soap->error; 1340 return soap_element_end_out(soap, tag); 1341 } 1342 1343 SOAP_FMAC3 struct ns1__prune_USCOREobjectResponse * SOAP_FMAC4 soap_get_ns1__prune_USCOREobjectResponse(struct soap *soap, struct ns1__prune_USCOREobjectResponse *p, const char *tag, const char *type) 1344 { 1345 if ((p = soap_in_ns1__prune_USCOREobjectResponse(soap, tag, p, type))) 1346 if (soap_getindependent(soap)) 1347 return NULL; 1348 return p; 1349 } 1350 1351 SOAP_FMAC3 struct ns1__prune_USCOREobjectResponse * SOAP_FMAC4 soap_in_ns1__prune_USCOREobjectResponse(struct soap *soap, const char *tag, struct ns1__prune_USCOREobjectResponse *a, const char *type) 1352 { 1353 size_t soap_flag_result = 1; 1354 if (soap_element_begin_in(soap, tag, 0, type)) 1355 return NULL; 1356 a = (struct ns1__prune_USCOREobjectResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns1__prune_USCOREobjectResponse, sizeof(struct ns1__prune_USCOREobjectResponse), 0, NULL, NULL, NULL); 1357 if (!a) 1358 return NULL; 1359 soap_default_ns1__prune_USCOREobjectResponse(soap, a); 1360 if (soap->body && !*soap->href) 1361 { 1362 for (;;) 1363 { soap->error = SOAP_TAG_MISMATCH; 1364 if (soap_flag_result && soap->error == SOAP_TAG_MISMATCH) 1365 if (soap_in_PointerToint(soap, "result", &a->result, "xsd:int")) 1366 { soap_flag_result--; 1367 continue; 1368 } 1369 if (soap->error == SOAP_TAG_MISMATCH) 1370 soap->error = soap_ignore_element(soap); 1371 if (soap->error == SOAP_NO_TAG) 1372 break; 1373 if (soap->error) 1374 return NULL; 1375 } 1376 if (soap_element_end_in(soap, tag)) 1377 return NULL; 1378 } 1379 else 1380 { a = (struct ns1__prune_USCOREobjectResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns1__prune_USCOREobjectResponse, 0, sizeof(struct ns1__prune_USCOREobjectResponse), 0, NULL); 1381 if (soap->body && soap_element_end_in(soap, tag)) 1382 return NULL; 1383 } 1384 return a; 1385 } 1386 1219 1387 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__chmod_USCOREobject(struct soap *soap, struct ns1__chmod_USCOREobject *a) 1220 1388 { -
trunk/Nebulous/nebclient/src/soapClient.c
r24289 r24923 10 10 #endif 11 11 12 SOAP_SOURCE_STAMP("@(#) soapClient.c ver 2.7.12 2009-0 6-01 23:55:50GMT")12 SOAP_SOURCE_STAMP("@(#) soapClient.c ver 2.7.12 2009-07-25 01:30:29 GMT") 13 13 14 14 … … 870 870 } 871 871 872 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__prune_USCOREobject(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, int *result) 873 { struct ns1__prune_USCOREobject soap_tmp_ns1__prune_USCOREobject; 874 struct ns1__prune_USCOREobjectResponse *soap_tmp_ns1__prune_USCOREobjectResponse; 875 if (!soap_endpoint) 876 soap_endpoint = "http://localhost:80/nebulous"; 877 if (!soap_action) 878 soap_action = "urn:Nebulous/Server/SOAP#prune_object"; 879 soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; 880 soap_tmp_ns1__prune_USCOREobject.key = key; 881 soap_begin(soap); 882 soap_serializeheader(soap); 883 soap_serialize_ns1__prune_USCOREobject(soap, &soap_tmp_ns1__prune_USCOREobject); 884 if (soap_begin_count(soap)) 885 return soap->error; 886 if (soap->mode & SOAP_IO_LENGTH) 887 { if (soap_envelope_begin_out(soap) 888 || soap_putheader(soap) 889 || soap_body_begin_out(soap) 890 || soap_put_ns1__prune_USCOREobject(soap, &soap_tmp_ns1__prune_USCOREobject, "ns1:prune_object", "") 891 || soap_body_end_out(soap) 892 || soap_envelope_end_out(soap)) 893 return soap->error; 894 } 895 if (soap_end_count(soap)) 896 return soap->error; 897 if (soap_connect(soap, soap_endpoint, soap_action) 898 || soap_envelope_begin_out(soap) 899 || soap_putheader(soap) 900 || soap_body_begin_out(soap) 901 || soap_put_ns1__prune_USCOREobject(soap, &soap_tmp_ns1__prune_USCOREobject, "ns1:prune_object", "") 902 || soap_body_end_out(soap) 903 || soap_envelope_end_out(soap) 904 || soap_end_send(soap)) 905 return soap_closesock(soap); 906 if (!result) 907 return soap_closesock(soap); 908 soap_default_int(soap, result); 909 if (soap_begin_recv(soap) 910 || soap_envelope_begin_in(soap) 911 || soap_recv_header(soap) 912 || soap_body_begin_in(soap)) 913 return soap_closesock(soap); 914 soap_tmp_ns1__prune_USCOREobjectResponse = soap_get_ns1__prune_USCOREobjectResponse(soap, NULL, "ns1:prune_objectResponse", ""); 915 if (soap->error) 916 { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) 917 return soap_recv_fault(soap); 918 return soap_closesock(soap); 919 } 920 if (soap_body_end_in(soap) 921 || soap_envelope_end_in(soap) 922 || soap_end_recv(soap)) 923 return soap_closesock(soap); 924 if (result && soap_tmp_ns1__prune_USCOREobjectResponse->result) 925 *result = *soap_tmp_ns1__prune_USCOREobjectResponse->result; 926 return soap_closesock(soap); 927 } 928 872 929 #ifdef __cplusplus 873 930 } -
trunk/Nebulous/nebclient/src/soapH.h
r24289 r24923 42 42 43 43 #ifndef SOAP_TYPE_SOAP_ENV__Fault 44 #define SOAP_TYPE_SOAP_ENV__Fault ( 67)44 #define SOAP_TYPE_SOAP_ENV__Fault (70) 45 45 #endif 46 46 SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Fault(struct soap*, struct SOAP_ENV__Fault *); … … 56 56 57 57 #ifndef SOAP_TYPE_SOAP_ENV__Reason 58 #define SOAP_TYPE_SOAP_ENV__Reason (6 6)58 #define SOAP_TYPE_SOAP_ENV__Reason (69) 59 59 #endif 60 60 SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *); … … 70 70 71 71 #ifndef SOAP_TYPE_SOAP_ENV__Detail 72 #define SOAP_TYPE_SOAP_ENV__Detail (6 3)72 #define SOAP_TYPE_SOAP_ENV__Detail (66) 73 73 #endif 74 74 SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *); … … 84 84 85 85 #ifndef SOAP_TYPE_SOAP_ENV__Code 86 #define SOAP_TYPE_SOAP_ENV__Code (6 1)86 #define SOAP_TYPE_SOAP_ENV__Code (64) 87 87 #endif 88 88 SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *); … … 98 98 99 99 #ifndef SOAP_TYPE_SOAP_ENV__Header 100 #define SOAP_TYPE_SOAP_ENV__Header (6 0)100 #define SOAP_TYPE_SOAP_ENV__Header (63) 101 101 #endif 102 102 SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Header(struct soap*, struct SOAP_ENV__Header *); … … 109 109 #endif 110 110 111 #ifndef SOAP_TYPE_ns1__prune_USCOREobject 112 #define SOAP_TYPE_ns1__prune_USCOREobject (62) 113 #endif 114 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__prune_USCOREobject(struct soap*, struct ns1__prune_USCOREobject *); 115 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__prune_USCOREobject(struct soap*, const struct ns1__prune_USCOREobject *); 116 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__prune_USCOREobject(struct soap*, const struct ns1__prune_USCOREobject *, const char*, const char*); 117 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__prune_USCOREobject(struct soap*, const char*, int, const struct ns1__prune_USCOREobject *, const char*); 118 SOAP_FMAC3 struct ns1__prune_USCOREobject * SOAP_FMAC4 soap_get_ns1__prune_USCOREobject(struct soap*, struct ns1__prune_USCOREobject *, const char*, const char*); 119 SOAP_FMAC3 struct ns1__prune_USCOREobject * SOAP_FMAC4 soap_in_ns1__prune_USCOREobject(struct soap*, const char*, struct ns1__prune_USCOREobject *, const char*); 120 121 #ifndef SOAP_TYPE_ns1__prune_USCOREobjectResponse 122 #define SOAP_TYPE_ns1__prune_USCOREobjectResponse (61) 123 #endif 124 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__prune_USCOREobjectResponse(struct soap*, struct ns1__prune_USCOREobjectResponse *); 125 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__prune_USCOREobjectResponse(struct soap*, const struct ns1__prune_USCOREobjectResponse *); 126 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__prune_USCOREobjectResponse(struct soap*, const struct ns1__prune_USCOREobjectResponse *, const char*, const char*); 127 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__prune_USCOREobjectResponse(struct soap*, const char*, int, const struct ns1__prune_USCOREobjectResponse *, const char*); 128 SOAP_FMAC3 struct ns1__prune_USCOREobjectResponse * SOAP_FMAC4 soap_get_ns1__prune_USCOREobjectResponse(struct soap*, struct ns1__prune_USCOREobjectResponse *, const char*, const char*); 129 SOAP_FMAC3 struct ns1__prune_USCOREobjectResponse * SOAP_FMAC4 soap_in_ns1__prune_USCOREobjectResponse(struct soap*, const char*, struct ns1__prune_USCOREobjectResponse *, const char*); 130 111 131 #ifndef SOAP_TYPE_ns1__chmod_USCOREobject 112 132 #define SOAP_TYPE_ns1__chmod_USCOREobject (59) … … 422 442 423 443 #ifndef SOAP_TYPE_PointerToSOAP_ENV__Reason 424 #define SOAP_TYPE_PointerToSOAP_ENV__Reason ( 69)444 #define SOAP_TYPE_PointerToSOAP_ENV__Reason (72) 425 445 #endif 426 446 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *const*); … … 435 455 436 456 #ifndef SOAP_TYPE_PointerToSOAP_ENV__Detail 437 #define SOAP_TYPE_PointerToSOAP_ENV__Detail ( 68)457 #define SOAP_TYPE_PointerToSOAP_ENV__Detail (71) 438 458 #endif 439 459 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *const*); … … 448 468 449 469 #ifndef SOAP_TYPE_PointerToSOAP_ENV__Code 450 #define SOAP_TYPE_PointerToSOAP_ENV__Code (6 2)470 #define SOAP_TYPE_PointerToSOAP_ENV__Code (65) 451 471 #endif 452 472 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *const*); -
trunk/Nebulous/nebclient/src/soapServer.c
r24289 r24923 10 10 #endif 11 11 12 SOAP_SOURCE_STAMP("@(#) soapServer.c ver 2.7.12 2009-0 6-01 23:55:50GMT")12 SOAP_SOURCE_STAMP("@(#) soapServer.c ver 2.7.12 2009-07-25 01:30:29 GMT") 13 13 14 14 … … 107 107 if (!soap_match_tag(soap, soap->tag, "ns1:chmod_object")) 108 108 return soap_serve_ns1__chmod_USCOREobject(soap); 109 if (!soap_match_tag(soap, soap->tag, "ns1:prune_object")) 110 return soap_serve_ns1__prune_USCOREobject(soap); 109 111 return soap->error = SOAP_NO_METHOD; 110 112 } … … 759 761 } 760 762 763 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__prune_USCOREobject(struct soap *soap) 764 { struct ns1__prune_USCOREobject soap_tmp_ns1__prune_USCOREobject; 765 struct ns1__prune_USCOREobjectResponse soap_tmp_ns1__prune_USCOREobjectResponse; 766 int soap_tmp_int; 767 soap_default_ns1__prune_USCOREobjectResponse(soap, &soap_tmp_ns1__prune_USCOREobjectResponse); 768 soap_default_int(soap, &soap_tmp_int); 769 soap_tmp_ns1__prune_USCOREobjectResponse.result = &soap_tmp_int; 770 soap_default_ns1__prune_USCOREobject(soap, &soap_tmp_ns1__prune_USCOREobject); 771 soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; 772 if (!soap_get_ns1__prune_USCOREobject(soap, &soap_tmp_ns1__prune_USCOREobject, "ns1:prune_object", NULL)) 773 return soap->error; 774 if (soap_body_end_in(soap) 775 || soap_envelope_end_in(soap) 776 || soap_end_recv(soap)) 777 return soap->error; 778 soap->error = ns1__prune_USCOREobject(soap, soap_tmp_ns1__prune_USCOREobject.key, &soap_tmp_int); 779 if (soap->error) 780 return soap->error; 781 soap_serializeheader(soap); 782 soap_serialize_ns1__prune_USCOREobjectResponse(soap, &soap_tmp_ns1__prune_USCOREobjectResponse); 783 if (soap_begin_count(soap)) 784 return soap->error; 785 if (soap->mode & SOAP_IO_LENGTH) 786 { if (soap_envelope_begin_out(soap) 787 || soap_putheader(soap) 788 || soap_body_begin_out(soap) 789 || soap_put_ns1__prune_USCOREobjectResponse(soap, &soap_tmp_ns1__prune_USCOREobjectResponse, "ns1:prune_objectResponse", "") 790 || soap_body_end_out(soap) 791 || soap_envelope_end_out(soap)) 792 return soap->error; 793 }; 794 if (soap_end_count(soap) 795 || soap_response(soap, SOAP_OK) 796 || soap_envelope_begin_out(soap) 797 || soap_putheader(soap) 798 || soap_body_begin_out(soap) 799 || soap_put_ns1__prune_USCOREobjectResponse(soap, &soap_tmp_ns1__prune_USCOREobjectResponse, "ns1:prune_objectResponse", "") 800 || soap_body_end_out(soap) 801 || soap_envelope_end_out(soap) 802 || soap_end_send(soap)) 803 return soap->error; 804 return soap_closesock(soap); 805 } 806 761 807 #ifdef __cplusplus 762 808 } -
trunk/Nebulous/nebclient/src/soapStub.h
r24289 r24923 325 325 #endif 326 326 327 #ifndef SOAP_TYPE_ns1__prune_USCOREobjectResponse 328 #define SOAP_TYPE_ns1__prune_USCOREobjectResponse (61) 329 /* ns1:prune_objectResponse */ 330 struct ns1__prune_USCOREobjectResponse 331 { 332 int *result; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* optional element of type xsd:int */ 333 }; 334 #endif 335 336 #ifndef SOAP_TYPE_ns1__prune_USCOREobject 337 #define SOAP_TYPE_ns1__prune_USCOREobject (62) 338 /* ns1:prune_object */ 339 struct ns1__prune_USCOREobject 340 { 341 char *key; /* optional element of type xsd:string */ 342 }; 343 #endif 344 327 345 #ifndef SOAP_TYPE_SOAP_ENV__Header 328 #define SOAP_TYPE_SOAP_ENV__Header (6 0)346 #define SOAP_TYPE_SOAP_ENV__Header (63) 329 347 /* SOAP Header: */ 330 348 struct SOAP_ENV__Header … … 337 355 338 356 #ifndef SOAP_TYPE_SOAP_ENV__Code 339 #define SOAP_TYPE_SOAP_ENV__Code (6 1)357 #define SOAP_TYPE_SOAP_ENV__Code (64) 340 358 /* SOAP Fault Code: */ 341 359 struct SOAP_ENV__Code … … 347 365 348 366 #ifndef SOAP_TYPE_SOAP_ENV__Detail 349 #define SOAP_TYPE_SOAP_ENV__Detail (6 3)367 #define SOAP_TYPE_SOAP_ENV__Detail (66) 350 368 /* SOAP-ENV:Detail */ 351 369 struct SOAP_ENV__Detail … … 358 376 359 377 #ifndef SOAP_TYPE_SOAP_ENV__Reason 360 #define SOAP_TYPE_SOAP_ENV__Reason (6 6)378 #define SOAP_TYPE_SOAP_ENV__Reason (69) 361 379 /* SOAP-ENV:Reason */ 362 380 struct SOAP_ENV__Reason … … 367 385 368 386 #ifndef SOAP_TYPE_SOAP_ENV__Fault 369 #define SOAP_TYPE_SOAP_ENV__Fault ( 67)387 #define SOAP_TYPE_SOAP_ENV__Fault (70) 370 388 /* SOAP Fault: */ 371 389 struct SOAP_ENV__Fault … … 458 476 SOAP_FMAC5 int SOAP_FMAC6 ns1__chmod_USCOREobject(struct soap*, char *key, int mode, int *result); 459 477 478 SOAP_FMAC5 int SOAP_FMAC6 ns1__prune_USCOREobject(struct soap*, char *key, int *result); 479 460 480 /******************************************************************************\ 461 481 * * … … 495 515 SOAP_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 516 517 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__prune_USCOREobject(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, int *result); 518 497 519 /******************************************************************************\ 498 520 * * … … 534 556 535 557 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__chmod_USCOREobject(struct soap*); 558 559 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__prune_USCOREobject(struct soap*); 536 560 537 561 #ifdef __cplusplus -
trunk/Nebulous/nebclient/tests/tests.c
r24290 r24923 20 20 char *key = "foobarbaz"; 21 21 22 plan_tests( 29);22 plan_tests(30); 23 23 24 24 if (getenv("NEB_SERVER")) { … … 138 138 neb_ok(server, nebChmod(server, "movedfile", 0440) == 0, "chmod object"); 139 139 140 // no dead instances to remove 141 neb_ok(server, nebPrune(server, "movedfile") == 0, "prune object"); 142 140 143 if (!nebDelete(server, "movedfile")) { 141 144 diag( "cleanup failed %s\n", nebErr(server));
Note:
See TracChangeset
for help on using the changeset viewer.
