Changeset 24289
- Timestamp:
- Jun 1, 2009, 2:29:20 PM (17 years ago)
- Location:
- trunk/Nebulous/nebclient
- Files:
-
- 9 edited
-
nebulous.wsdl (modified) (3 diffs)
-
src/nebclient.c (modified) (1 diff)
-
src/nebclient.h (modified) (2 diffs)
-
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)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/nebclient/nebulous.wsdl
r23935 r24289 140 140 </message> 141 141 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 142 151 143 152 <portType name="Nebulous/Server/SOAPPort"> … … 240 249 --> 241 250 </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> 242 258 </portType> 243 259 … … 390 406 <operation name="stat_object"> 391 407 <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" /> 392 419 <input> 393 420 <soap:body use="encoded" namespace="urn:Nebulous/Server/SOAP" -
trunk/Nebulous/nebclient/src/nebclient.c
r23935 r24289 832 832 } 833 833 834 835 int 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 834 860 char *nebErr(nebServer *server) 835 861 { -
trunk/Nebulous/nebclient/src/nebclient.h
r23935 r24289 11 11 #ifndef NEBCLIENT_H 12 12 #define NEBCLIENT_H 1 13 14 // #include <sys/stat.h> 13 15 14 16 #ifdef __cplusplus … … 296 298 ); 297 299 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 308 int 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 298 314 /** Returns the error message from the last nebclient function that failed. 299 315 * -
trunk/Nebulous/nebclient/src/nebulous.h
r23935 r24289 1 1 /* src/nebulous.h 2 2 Generated by wsdl2h 1.2.12 from nebulous.wsdl and typemap.dat 3 2009-0 4-20 22:15:21GMT3 2009-06-01 23:55:50 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: … … 119 119 - @ref ns1__delete_USCOREinstance 120 120 - @ref ns1__stat_USCOREobject 121 - @ref ns1__chmod_USCOREobject 121 122 122 123 @section SOAP_ports Endpoints of Binding "SOAP" … … 893 894 ); 894 895 896 /******************************************************************************\ 897 * * 898 * ns1__chmod_USCOREobject * 899 * * 900 \******************************************************************************/ 901 902 903 /// Operation "ns1__chmod_USCOREobject" of service binding "SOAP" 904 905 /** 906 907 Operation details: 908 909 - SOAP RPC encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 910 - SOAP action="urn:Nebulous/Server/SOAP#chmod_object" 911 912 C 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 926 C 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 943 int ns1__chmod_USCOREobject( 944 char* key, ///< Request parameter 945 int mode, ///< Request parameter 946 int *result ///< Response parameter 947 ); 948 895 949 /* End of src/nebulous.h */ -
trunk/Nebulous/nebclient/src/soapC.c
r23935 r24289 12 12 #endif 13 13 14 SOAP_SOURCE_STAMP("@(#) soapC.c ver 2.7.12 2009-0 4-20 22:15:22GMT")14 SOAP_SOURCE_STAMP("@(#) soapC.c ver 2.7.12 2009-06-01 23:55:50 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__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"); 163 167 case SOAP_TYPE_ns1__stat_USCOREobject: 164 168 return soap_in_ns1__stat_USCOREobject(soap, NULL, NULL, "ns1:stat_object"); … … 250 254 return soap_in_int(soap, NULL, NULL, NULL); 251 255 } 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 } 252 264 if (!soap_match_tag(soap, t, "ns1:stat_object")) 253 265 { *type = SOAP_TYPE_ns1__stat_USCOREobject; … … 440 452 case SOAP_TYPE_int: 441 453 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"); 442 458 case SOAP_TYPE_ns1__stat_USCOREobject: 443 459 return soap_out_ns1__stat_USCOREobject(soap, tag, id, (const struct ns1__stat_USCOREobject *)ptr, "ns1:stat_object"); … … 527 543 switch (type) 528 544 { 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; 529 551 case SOAP_TYPE_ns1__stat_USCOREobject: 530 552 soap_serialize_ns1__stat_USCOREobject(soap, (const struct ns1__stat_USCOREobject *)ptr); … … 1195 1217 #endif 1196 1218 1219 SOAP_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 1226 SOAP_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 1233 SOAP_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 1241 SOAP_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 1252 SOAP_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 1260 SOAP_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 1306 SOAP_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 1312 SOAP_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 1318 SOAP_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 1326 SOAP_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 1335 SOAP_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 1343 SOAP_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 1197 1379 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__stat_USCOREobject(struct soap *soap, struct ns1__stat_USCOREobject *a) 1198 1380 { -
trunk/Nebulous/nebclient/src/soapClient.c
r23935 r24289 10 10 #endif 11 11 12 SOAP_SOURCE_STAMP("@(#) soapClient.c ver 2.7.12 2009-0 4-20 22:15:21GMT")12 SOAP_SOURCE_STAMP("@(#) soapClient.c ver 2.7.12 2009-06-01 23:55:50 GMT") 13 13 14 14 … … 812 812 } 813 813 814 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) 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 814 872 #ifdef __cplusplus 815 873 } -
trunk/Nebulous/nebclient/src/soapH.h
r23198 r24289 42 42 43 43 #ifndef SOAP_TYPE_SOAP_ENV__Fault 44 #define SOAP_TYPE_SOAP_ENV__Fault (6 4)44 #define SOAP_TYPE_SOAP_ENV__Fault (67) 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 3)58 #define SOAP_TYPE_SOAP_ENV__Reason (66) 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 0)72 #define SOAP_TYPE_SOAP_ENV__Detail (63) 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 ( 58)86 #define SOAP_TYPE_SOAP_ENV__Code (61) 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 ( 57)100 #define SOAP_TYPE_SOAP_ENV__Header (60) 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__chmod_USCOREobject 112 #define SOAP_TYPE_ns1__chmod_USCOREobject (59) 113 #endif 114 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__chmod_USCOREobject(struct soap*, struct ns1__chmod_USCOREobject *); 115 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__chmod_USCOREobject(struct soap*, const struct ns1__chmod_USCOREobject *); 116 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__chmod_USCOREobject(struct soap*, const struct ns1__chmod_USCOREobject *, const char*, const char*); 117 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__chmod_USCOREobject(struct soap*, const char*, int, const struct ns1__chmod_USCOREobject *, const char*); 118 SOAP_FMAC3 struct ns1__chmod_USCOREobject * SOAP_FMAC4 soap_get_ns1__chmod_USCOREobject(struct soap*, struct ns1__chmod_USCOREobject *, const char*, const char*); 119 SOAP_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 124 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__chmod_USCOREobjectResponse(struct soap*, struct ns1__chmod_USCOREobjectResponse *); 125 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__chmod_USCOREobjectResponse(struct soap*, const struct ns1__chmod_USCOREobjectResponse *); 126 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__chmod_USCOREobjectResponse(struct soap*, const struct ns1__chmod_USCOREobjectResponse *, const char*, const char*); 127 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__chmod_USCOREobjectResponse(struct soap*, const char*, int, const struct ns1__chmod_USCOREobjectResponse *, const char*); 128 SOAP_FMAC3 struct ns1__chmod_USCOREobjectResponse * SOAP_FMAC4 soap_get_ns1__chmod_USCOREobjectResponse(struct soap*, struct ns1__chmod_USCOREobjectResponse *, const char*, const char*); 129 SOAP_FMAC3 struct ns1__chmod_USCOREobjectResponse * SOAP_FMAC4 soap_in_ns1__chmod_USCOREobjectResponse(struct soap*, const char*, struct ns1__chmod_USCOREobjectResponse *, const char*); 130 111 131 #ifndef SOAP_TYPE_ns1__stat_USCOREobject 112 132 #define SOAP_TYPE_ns1__stat_USCOREobject (56) … … 402 422 403 423 #ifndef SOAP_TYPE_PointerToSOAP_ENV__Reason 404 #define SOAP_TYPE_PointerToSOAP_ENV__Reason (6 6)424 #define SOAP_TYPE_PointerToSOAP_ENV__Reason (69) 405 425 #endif 406 426 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *const*); … … 415 435 416 436 #ifndef SOAP_TYPE_PointerToSOAP_ENV__Detail 417 #define SOAP_TYPE_PointerToSOAP_ENV__Detail (6 5)437 #define SOAP_TYPE_PointerToSOAP_ENV__Detail (68) 418 438 #endif 419 439 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *const*); … … 428 448 429 449 #ifndef SOAP_TYPE_PointerToSOAP_ENV__Code 430 #define SOAP_TYPE_PointerToSOAP_ENV__Code ( 59)450 #define SOAP_TYPE_PointerToSOAP_ENV__Code (62) 431 451 #endif 432 452 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *const*); -
trunk/Nebulous/nebclient/src/soapServer.c
r23935 r24289 10 10 #endif 11 11 12 SOAP_SOURCE_STAMP("@(#) soapServer.c ver 2.7.12 2009-0 4-20 22:15:21GMT")12 SOAP_SOURCE_STAMP("@(#) soapServer.c ver 2.7.12 2009-06-01 23:55:50 GMT") 13 13 14 14 … … 105 105 if (!soap_match_tag(soap, soap->tag, "ns1:stat_object")) 106 106 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); 107 109 return soap->error = SOAP_NO_METHOD; 108 110 } … … 713 715 } 714 716 717 SOAP_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 715 761 #ifdef __cplusplus 716 762 } -
trunk/Nebulous/nebclient/src/soapStub.h
r23935 r24289 306 306 #endif 307 307 308 #ifndef SOAP_TYPE_ns1__chmod_USCOREobjectResponse 309 #define SOAP_TYPE_ns1__chmod_USCOREobjectResponse (58) 310 /* ns1:chmod_objectResponse */ 311 struct 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 */ 320 struct 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 308 327 #ifndef SOAP_TYPE_SOAP_ENV__Header 309 #define SOAP_TYPE_SOAP_ENV__Header ( 57)328 #define SOAP_TYPE_SOAP_ENV__Header (60) 310 329 /* SOAP Header: */ 311 330 struct SOAP_ENV__Header … … 318 337 319 338 #ifndef SOAP_TYPE_SOAP_ENV__Code 320 #define SOAP_TYPE_SOAP_ENV__Code ( 58)339 #define SOAP_TYPE_SOAP_ENV__Code (61) 321 340 /* SOAP Fault Code: */ 322 341 struct SOAP_ENV__Code … … 328 347 329 348 #ifndef SOAP_TYPE_SOAP_ENV__Detail 330 #define SOAP_TYPE_SOAP_ENV__Detail (6 0)349 #define SOAP_TYPE_SOAP_ENV__Detail (63) 331 350 /* SOAP-ENV:Detail */ 332 351 struct SOAP_ENV__Detail … … 339 358 340 359 #ifndef SOAP_TYPE_SOAP_ENV__Reason 341 #define SOAP_TYPE_SOAP_ENV__Reason (6 3)360 #define SOAP_TYPE_SOAP_ENV__Reason (66) 342 361 /* SOAP-ENV:Reason */ 343 362 struct SOAP_ENV__Reason … … 348 367 349 368 #ifndef SOAP_TYPE_SOAP_ENV__Fault 350 #define SOAP_TYPE_SOAP_ENV__Fault (6 4)369 #define SOAP_TYPE_SOAP_ENV__Fault (67) 351 370 /* SOAP Fault: */ 352 371 struct SOAP_ENV__Fault … … 437 456 SOAP_FMAC5 int SOAP_FMAC6 ns1__stat_USCOREobject(struct soap*, char *key, struct ns1__stat_USCOREobjectResponse *_param_4); 438 457 458 SOAP_FMAC5 int SOAP_FMAC6 ns1__chmod_USCOREobject(struct soap*, char *key, int mode, int *result); 459 439 460 /******************************************************************************\ 440 461 * * … … 472 493 SOAP_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); 473 494 495 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 474 497 /******************************************************************************\ 475 498 * * … … 509 532 510 533 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__stat_USCOREobject(struct soap*); 534 535 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__chmod_USCOREobject(struct soap*); 511 536 512 537 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.
