Changeset 20208
- Timestamp:
- Oct 16, 2008, 1:30:47 PM (18 years ago)
- Location:
- trunk/Nebulous/nebclient
- Files:
-
- 8 edited
-
configure.ac (modified) (1 diff)
-
nebulous.wsdl (modified) (3 diffs)
-
src/nebulous.h (modified) (3 diffs)
-
src/soapC.c (modified) (10 diffs)
-
src/soapClient.c (modified) (6 diffs)
-
src/soapH.h (modified) (21 diffs)
-
src/soapServer.c (modified) (8 diffs)
-
src/soapStub.h (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/nebclient/configure.ac
r20110 r20208 1 1 dnl Copyright (C) 2005 Joshua Hoblitt 2 2 dnl 3 dnl $Id: configure.ac,v 1.2 0 2008-10-13 22:11:09jhoblitt Exp $3 dnl $Id: configure.ac,v 1.21 2008-10-16 23:30:47 jhoblitt Exp $ 4 4 5 5 AC_PREREQ(2.61) 6 6 7 AC_INIT([nebclient], [0.0 7], [jhoblitt@cpan.org])7 AC_INIT([nebclient], [0.08], [jhoblitt@cpan.org]) 8 8 AC_CONFIG_SRCDIR([nebulous.wsdl]) 9 9 -
trunk/Nebulous/nebclient/nebulous.wsdl
r20110 r20208 74 74 </message> 75 75 76 <message name="setxattr_objectRequest"> 77 <part name="key" type="xsd:string" /> 78 <part name="name" type="xsd:string" /> 79 <part name="value" type="xsd:string" /> 80 <part name="flags" type="xsd:string" /> 81 </message> 82 <message name="setxattr_objectResponse"> 83 <part name="result" type="xsd:int" /> 84 </message> 85 86 <message name="getxattr_objectRequest"> 87 <part name="key" type="xsd:string" /> 88 <part name="name" type="xsd:string" /> 89 </message> 90 <message name="getxattr_objectResponse"> 91 <part name="result" type="xsd:string" /> 92 </message> 93 94 <message name="listxattr_objectRequest"> 95 <part name="key" type="xsd:string" /> 96 </message> 97 <message name="listxattr_objectResponse"> 98 <part name="result" type="tns:ArrayOfString" /> 99 </message> 100 101 <message name="removexattr_objectRequest"> 102 <part name="key" type="xsd:string" /> 103 <part name="name" type="xsd:string" /> 104 </message> 105 <message name="removexattr_objectResponse"> 106 <part name="result" type="xsd:int" /> 107 </message> 108 76 109 <message name="find_objectsRequest"> 77 110 <part name="pattern" type="xsd:string" /> … … 150 183 --> 151 184 </operation> 185 <operation name="setxattr_object"> 186 <input message="tns:setxattr_objectRequest" /> 187 <output message="tns:setxattr_objectResponse" /> 188 <!-- 189 <fault name="" message="" /> 190 --> 191 </operation> 192 <operation name="getxattr_object"> 193 <input message="tns:getxattr_objectRequest" /> 194 <output message="tns:getxattr_objectResponse" /> 195 <!-- 196 <fault name="" message="" /> 197 --> 198 </operation> 199 <operation name="listxattr_object"> 200 <input message="tns:listxattr_objectRequest" /> 201 <output message="tns:listxattr_objectResponse" /> 202 <!-- 203 <fault name="" message="" /> 204 --> 205 </operation> 206 <operation name="removexattr_object"> 207 <input message="tns:removexattr_objectRequest" /> 208 <output message="tns:removexattr_objectResponse" /> 209 <!-- 210 <fault name="" message="" /> 211 --> 212 </operation> 152 213 <operation name="find_objects"> 153 214 <input message="tns:find_objectsRequest" /> … … 240 301 <operation name="unlock_object"> 241 302 <soap:operation soapAction="urn:Nebulous/Server/SOAP#unlock_object" /> 303 <input> 304 <soap:body use="encoded" namespace="urn:Nebulous/Server/SOAP" 305 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 306 </input> 307 <output> 308 <soap:body use="encoded" namespace="urn:Nebulous/Server/SOAP" 309 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 310 </output> 311 </operation> 312 <operation name="setxattr_object"> 313 <soap:operation soapAction="urn:Nebulous/Server/SOAP#setxattr_object" /> 314 <input> 315 <soap:body use="encoded" namespace="urn:Nebulous/Server/SOAP" 316 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 317 </input> 318 <output> 319 <soap:body use="encoded" namespace="urn:Nebulous/Server/SOAP" 320 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 321 </output> 322 </operation> 323 <operation name="getxattr_object"> 324 <soap:operation soapAction="urn:Nebulous/Server/SOAP#getxattr_object" /> 325 <input> 326 <soap:body use="encoded" namespace="urn:Nebulous/Server/SOAP" 327 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 328 </input> 329 <output> 330 <soap:body use="encoded" namespace="urn:Nebulous/Server/SOAP" 331 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 332 </output> 333 </operation> 334 <operation name="listxattr_object"> 335 <soap:operation soapAction="urn:Nebulous/Server/SOAP#listxattr_object" /> 336 <input> 337 <soap:body use="encoded" namespace="urn:Nebulous/Server/SOAP" 338 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 339 </input> 340 <output> 341 <soap:body use="encoded" namespace="urn:Nebulous/Server/SOAP" 342 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> 343 </output> 344 </operation> 345 <operation name="removexattr_object"> 346 <soap:operation soapAction="urn:Nebulous/Server/SOAP#removexattr_object" /> 242 347 <input> 243 348 <soap:body use="encoded" namespace="urn:Nebulous/Server/SOAP" -
trunk/Nebulous/nebclient/src/nebulous.h
r20110 r20208 1 1 /* src/nebulous.h 2 2 Generated by wsdl2h 1.2.11 from nebulous.wsdl and typemap.dat 3 2008-10-1 3 22:06:54GMT3 2008-10-16 23:26:37 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: … … 111 111 - @ref ns1__lock_USCOREobject 112 112 - @ref ns1__unlock_USCOREobject 113 - @ref ns1__setxattr_USCOREobject 114 - @ref ns1__getxattr_USCOREobject 115 - @ref ns1__listxattr_USCOREobject 116 - @ref ns1__removexattr_USCOREobject 113 117 - @ref ns1__find_USCOREobjects 114 118 - @ref ns1__find_USCOREinstances … … 450 454 /******************************************************************************\ 451 455 * * 456 * ns1__setxattr_USCOREobject * 457 * * 458 \******************************************************************************/ 459 460 461 /// Operation "ns1__setxattr_USCOREobject" of service binding "SOAP" 462 463 /** 464 465 Operation details: 466 467 - SOAP RPC encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 468 - SOAP action="urn:Nebulous/Server/SOAP#setxattr_object" 469 470 C stub function (defined in soapClient.c[pp] generated by soapcpp2): 471 @code 472 int soap_call_ns1__setxattr_USCOREobject( 473 struct soap *soap, 474 NULL, // char *endpoint = NULL selects default endpoint for this operation 475 NULL, // char *action = NULL selects default action for this operation 476 // request parameters: 477 char* key, 478 char* name, 479 char* value, 480 char* flags, 481 // response parameters: 482 int *result 483 ); 484 @endcode 485 486 C server function (called from the service dispatcher defined in soapServer.c[pp]): 487 @code 488 int ns1__setxattr_USCOREobject( 489 struct soap *soap, 490 // request parameters: 491 char* key, 492 char* name, 493 char* value, 494 char* flags, 495 // response parameters: 496 int *result 497 ); 498 @endcode 499 500 */ 501 502 //gsoap ns1 service method-style: setxattr_USCOREobject rpc 503 //gsoap ns1 service method-encoding: setxattr_USCOREobject http://schemas.xmlsoap.org/soap/encoding/ 504 //gsoap ns1 service method-action: setxattr_USCOREobject urn:Nebulous/Server/SOAP#setxattr_object 505 int ns1__setxattr_USCOREobject( 506 char* key, ///< Request parameter 507 char* name, ///< Request parameter 508 char* value, ///< Request parameter 509 char* flags, ///< Request parameter 510 int *result ///< Response parameter 511 ); 512 513 /******************************************************************************\ 514 * * 515 * ns1__getxattr_USCOREobject * 516 * * 517 \******************************************************************************/ 518 519 520 /// Operation "ns1__getxattr_USCOREobject" of service binding "SOAP" 521 522 /** 523 524 Operation details: 525 526 - SOAP RPC encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 527 - SOAP action="urn:Nebulous/Server/SOAP#getxattr_object" 528 529 C stub function (defined in soapClient.c[pp] generated by soapcpp2): 530 @code 531 int soap_call_ns1__getxattr_USCOREobject( 532 struct soap *soap, 533 NULL, // char *endpoint = NULL selects default endpoint for this operation 534 NULL, // char *action = NULL selects default action for this operation 535 // request parameters: 536 char* key, 537 char* name, 538 // response parameters: 539 char* *result 540 ); 541 @endcode 542 543 C server function (called from the service dispatcher defined in soapServer.c[pp]): 544 @code 545 int ns1__getxattr_USCOREobject( 546 struct soap *soap, 547 // request parameters: 548 char* key, 549 char* name, 550 // response parameters: 551 char* *result 552 ); 553 @endcode 554 555 */ 556 557 //gsoap ns1 service method-style: getxattr_USCOREobject rpc 558 //gsoap ns1 service method-encoding: getxattr_USCOREobject http://schemas.xmlsoap.org/soap/encoding/ 559 //gsoap ns1 service method-action: getxattr_USCOREobject urn:Nebulous/Server/SOAP#getxattr_object 560 int ns1__getxattr_USCOREobject( 561 char* key, ///< Request parameter 562 char* name, ///< Request parameter 563 char* *result ///< Response parameter 564 ); 565 566 /******************************************************************************\ 567 * * 568 * ns1__listxattr_USCOREobject * 569 * * 570 \******************************************************************************/ 571 572 /// Operation response struct "ns1__listxattr_USCOREobjectResponse" of service binding "SOAP" operation "ns1__listxattr_USCOREobject" 573 struct ns1__listxattr_USCOREobjectResponse 574 { 575 struct ArrayOfString* result; 576 }; 577 578 /// Operation "ns1__listxattr_USCOREobject" of service binding "SOAP" 579 580 /** 581 582 Operation details: 583 584 - SOAP RPC encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 585 - SOAP action="urn:Nebulous/Server/SOAP#listxattr_object" 586 587 C stub function (defined in soapClient.c[pp] generated by soapcpp2): 588 @code 589 int soap_call_ns1__listxattr_USCOREobject( 590 struct soap *soap, 591 NULL, // char *endpoint = NULL selects default endpoint for this operation 592 NULL, // char *action = NULL selects default action for this operation 593 // request parameters: 594 char* key, 595 // response parameters: 596 struct ns1__listxattr_USCOREobjectResponse* 597 ); 598 @endcode 599 600 C server function (called from the service dispatcher defined in soapServer.c[pp]): 601 @code 602 int ns1__listxattr_USCOREobject( 603 struct soap *soap, 604 // request parameters: 605 char* key, 606 // response parameters: 607 struct ns1__listxattr_USCOREobjectResponse* 608 ); 609 @endcode 610 611 */ 612 613 //gsoap ns1 service method-style: listxattr_USCOREobject rpc 614 //gsoap ns1 service method-encoding: listxattr_USCOREobject http://schemas.xmlsoap.org/soap/encoding/ 615 //gsoap ns1 service method-action: listxattr_USCOREobject urn:Nebulous/Server/SOAP#listxattr_object 616 int ns1__listxattr_USCOREobject( 617 char* key, ///< Request parameter 618 struct ns1__listxattr_USCOREobjectResponse* ///< Response struct parameter 619 ); 620 621 /******************************************************************************\ 622 * * 623 * ns1__removexattr_USCOREobject * 624 * * 625 \******************************************************************************/ 626 627 628 /// Operation "ns1__removexattr_USCOREobject" of service binding "SOAP" 629 630 /** 631 632 Operation details: 633 634 - SOAP RPC encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 635 - SOAP action="urn:Nebulous/Server/SOAP#removexattr_object" 636 637 C stub function (defined in soapClient.c[pp] generated by soapcpp2): 638 @code 639 int soap_call_ns1__removexattr_USCOREobject( 640 struct soap *soap, 641 NULL, // char *endpoint = NULL selects default endpoint for this operation 642 NULL, // char *action = NULL selects default action for this operation 643 // request parameters: 644 char* key, 645 char* name, 646 // response parameters: 647 int *result 648 ); 649 @endcode 650 651 C server function (called from the service dispatcher defined in soapServer.c[pp]): 652 @code 653 int ns1__removexattr_USCOREobject( 654 struct soap *soap, 655 // request parameters: 656 char* key, 657 char* name, 658 // response parameters: 659 int *result 660 ); 661 @endcode 662 663 */ 664 665 //gsoap ns1 service method-style: removexattr_USCOREobject rpc 666 //gsoap ns1 service method-encoding: removexattr_USCOREobject http://schemas.xmlsoap.org/soap/encoding/ 667 //gsoap ns1 service method-action: removexattr_USCOREobject urn:Nebulous/Server/SOAP#removexattr_object 668 int ns1__removexattr_USCOREobject( 669 char* key, ///< Request parameter 670 char* name, ///< Request parameter 671 int *result ///< Response parameter 672 ); 673 674 /******************************************************************************\ 675 * * 452 676 * ns1__find_USCOREobjects * 453 677 * * -
trunk/Nebulous/nebclient/src/soapC.c
r20110 r20208 12 12 #endif 13 13 14 SOAP_SOURCE_STAMP("@(#) soapC.c ver 2.7.11 2008-10-1 3 22:06:55GMT")14 SOAP_SOURCE_STAMP("@(#) soapC.c ver 2.7.11 2008-10-16 23:26:39 GMT") 15 15 16 16 … … 177 177 case SOAP_TYPE_ns1__find_USCOREobjectsResponse: 178 178 return soap_in_ns1__find_USCOREobjectsResponse(soap, NULL, NULL, "ns1:find_objectsResponse"); 179 case SOAP_TYPE_ns1__removexattr_USCOREobject: 180 return soap_in_ns1__removexattr_USCOREobject(soap, NULL, NULL, "ns1:removexattr_object"); 181 case SOAP_TYPE_ns1__removexattr_USCOREobjectResponse: 182 return soap_in_ns1__removexattr_USCOREobjectResponse(soap, NULL, NULL, "ns1:removexattr_objectResponse"); 183 case SOAP_TYPE_ns1__listxattr_USCOREobject: 184 return soap_in_ns1__listxattr_USCOREobject(soap, NULL, NULL, "ns1:listxattr_object"); 185 case SOAP_TYPE_ns1__listxattr_USCOREobjectResponse: 186 return soap_in_ns1__listxattr_USCOREobjectResponse(soap, NULL, NULL, "ns1:listxattr_objectResponse"); 187 case SOAP_TYPE_ns1__getxattr_USCOREobject: 188 return soap_in_ns1__getxattr_USCOREobject(soap, NULL, NULL, "ns1:getxattr_object"); 189 case SOAP_TYPE_ns1__getxattr_USCOREobjectResponse: 190 return soap_in_ns1__getxattr_USCOREobjectResponse(soap, NULL, NULL, "ns1:getxattr_objectResponse"); 191 case SOAP_TYPE_ns1__setxattr_USCOREobject: 192 return soap_in_ns1__setxattr_USCOREobject(soap, NULL, NULL, "ns1:setxattr_object"); 193 case SOAP_TYPE_ns1__setxattr_USCOREobjectResponse: 194 return soap_in_ns1__setxattr_USCOREobjectResponse(soap, NULL, NULL, "ns1:setxattr_objectResponse"); 179 195 case SOAP_TYPE_ns1__unlock_USCOREobject: 180 196 return soap_in_ns1__unlock_USCOREobject(soap, NULL, NULL, "ns1:unlock_object"); … … 209 225 case SOAP_TYPE_PointerTons1__find_USCOREobjectsResponse: 210 226 return soap_in_PointerTons1__find_USCOREobjectsResponse(soap, NULL, NULL, "ns1:find_objectsResponse"); 227 case SOAP_TYPE_PointerTons1__listxattr_USCOREobjectResponse: 228 return soap_in_PointerTons1__listxattr_USCOREobjectResponse(soap, NULL, NULL, "ns1:listxattr_objectResponse"); 211 229 case SOAP_TYPE_PointerToArrayOfString: 212 230 return soap_in_PointerToArrayOfString(soap, NULL, NULL, "xsd:string"); … … 263 281 { *type = SOAP_TYPE_ns1__find_USCOREobjectsResponse; 264 282 return soap_in_ns1__find_USCOREobjectsResponse(soap, NULL, NULL, NULL); 283 } 284 if (!soap_match_tag(soap, t, "ns1:removexattr_object")) 285 { *type = SOAP_TYPE_ns1__removexattr_USCOREobject; 286 return soap_in_ns1__removexattr_USCOREobject(soap, NULL, NULL, NULL); 287 } 288 if (!soap_match_tag(soap, t, "ns1:removexattr_objectResponse")) 289 { *type = SOAP_TYPE_ns1__removexattr_USCOREobjectResponse; 290 return soap_in_ns1__removexattr_USCOREobjectResponse(soap, NULL, NULL, NULL); 291 } 292 if (!soap_match_tag(soap, t, "ns1:listxattr_object")) 293 { *type = SOAP_TYPE_ns1__listxattr_USCOREobject; 294 return soap_in_ns1__listxattr_USCOREobject(soap, NULL, NULL, NULL); 295 } 296 if (!soap_match_tag(soap, t, "ns1:listxattr_objectResponse")) 297 { *type = SOAP_TYPE_ns1__listxattr_USCOREobjectResponse; 298 return soap_in_ns1__listxattr_USCOREobjectResponse(soap, NULL, NULL, NULL); 299 } 300 if (!soap_match_tag(soap, t, "ns1:getxattr_object")) 301 { *type = SOAP_TYPE_ns1__getxattr_USCOREobject; 302 return soap_in_ns1__getxattr_USCOREobject(soap, NULL, NULL, NULL); 303 } 304 if (!soap_match_tag(soap, t, "ns1:getxattr_objectResponse")) 305 { *type = SOAP_TYPE_ns1__getxattr_USCOREobjectResponse; 306 return soap_in_ns1__getxattr_USCOREobjectResponse(soap, NULL, NULL, NULL); 307 } 308 if (!soap_match_tag(soap, t, "ns1:setxattr_object")) 309 { *type = SOAP_TYPE_ns1__setxattr_USCOREobject; 310 return soap_in_ns1__setxattr_USCOREobject(soap, NULL, NULL, NULL); 311 } 312 if (!soap_match_tag(soap, t, "ns1:setxattr_objectResponse")) 313 { *type = SOAP_TYPE_ns1__setxattr_USCOREobjectResponse; 314 return soap_in_ns1__setxattr_USCOREobjectResponse(soap, NULL, NULL, NULL); 265 315 } 266 316 if (!soap_match_tag(soap, t, "ns1:unlock_object")) … … 406 456 case SOAP_TYPE_ns1__find_USCOREobjectsResponse: 407 457 return soap_out_ns1__find_USCOREobjectsResponse(soap, tag, id, (const struct ns1__find_USCOREobjectsResponse *)ptr, "ns1:find_objectsResponse"); 458 case SOAP_TYPE_ns1__removexattr_USCOREobject: 459 return soap_out_ns1__removexattr_USCOREobject(soap, tag, id, (const struct ns1__removexattr_USCOREobject *)ptr, "ns1:removexattr_object"); 460 case SOAP_TYPE_ns1__removexattr_USCOREobjectResponse: 461 return soap_out_ns1__removexattr_USCOREobjectResponse(soap, tag, id, (const struct ns1__removexattr_USCOREobjectResponse *)ptr, "ns1:removexattr_objectResponse"); 462 case SOAP_TYPE_ns1__listxattr_USCOREobject: 463 return soap_out_ns1__listxattr_USCOREobject(soap, tag, id, (const struct ns1__listxattr_USCOREobject *)ptr, "ns1:listxattr_object"); 464 case SOAP_TYPE_ns1__listxattr_USCOREobjectResponse: 465 return soap_out_ns1__listxattr_USCOREobjectResponse(soap, tag, id, (const struct ns1__listxattr_USCOREobjectResponse *)ptr, "ns1:listxattr_objectResponse"); 466 case SOAP_TYPE_ns1__getxattr_USCOREobject: 467 return soap_out_ns1__getxattr_USCOREobject(soap, tag, id, (const struct ns1__getxattr_USCOREobject *)ptr, "ns1:getxattr_object"); 468 case SOAP_TYPE_ns1__getxattr_USCOREobjectResponse: 469 return soap_out_ns1__getxattr_USCOREobjectResponse(soap, tag, id, (const struct ns1__getxattr_USCOREobjectResponse *)ptr, "ns1:getxattr_objectResponse"); 470 case SOAP_TYPE_ns1__setxattr_USCOREobject: 471 return soap_out_ns1__setxattr_USCOREobject(soap, tag, id, (const struct ns1__setxattr_USCOREobject *)ptr, "ns1:setxattr_object"); 472 case SOAP_TYPE_ns1__setxattr_USCOREobjectResponse: 473 return soap_out_ns1__setxattr_USCOREobjectResponse(soap, tag, id, (const struct ns1__setxattr_USCOREobjectResponse *)ptr, "ns1:setxattr_objectResponse"); 408 474 case SOAP_TYPE_ns1__unlock_USCOREobject: 409 475 return soap_out_ns1__unlock_USCOREobject(soap, tag, id, (const struct ns1__unlock_USCOREobject *)ptr, "ns1:unlock_object"); … … 438 504 case SOAP_TYPE_PointerTons1__find_USCOREobjectsResponse: 439 505 return soap_out_PointerTons1__find_USCOREobjectsResponse(soap, tag, id, (struct ns1__find_USCOREobjectsResponse *const*)ptr, "ns1:find_objectsResponse"); 506 case SOAP_TYPE_PointerTons1__listxattr_USCOREobjectResponse: 507 return soap_out_PointerTons1__listxattr_USCOREobjectResponse(soap, tag, id, (struct ns1__listxattr_USCOREobjectResponse *const*)ptr, "ns1:listxattr_objectResponse"); 440 508 case SOAP_TYPE_PointerToArrayOfString: 441 509 return soap_out_PointerToArrayOfString(soap, tag, id, (struct ArrayOfString *const*)ptr, "xsd:string"); … … 482 550 case SOAP_TYPE_ns1__find_USCOREobjectsResponse: 483 551 soap_serialize_ns1__find_USCOREobjectsResponse(soap, (const struct ns1__find_USCOREobjectsResponse *)ptr); 552 break; 553 case SOAP_TYPE_ns1__removexattr_USCOREobject: 554 soap_serialize_ns1__removexattr_USCOREobject(soap, (const struct ns1__removexattr_USCOREobject *)ptr); 555 break; 556 case SOAP_TYPE_ns1__removexattr_USCOREobjectResponse: 557 soap_serialize_ns1__removexattr_USCOREobjectResponse(soap, (const struct ns1__removexattr_USCOREobjectResponse *)ptr); 558 break; 559 case SOAP_TYPE_ns1__listxattr_USCOREobject: 560 soap_serialize_ns1__listxattr_USCOREobject(soap, (const struct ns1__listxattr_USCOREobject *)ptr); 561 break; 562 case SOAP_TYPE_ns1__listxattr_USCOREobjectResponse: 563 soap_serialize_ns1__listxattr_USCOREobjectResponse(soap, (const struct ns1__listxattr_USCOREobjectResponse *)ptr); 564 break; 565 case SOAP_TYPE_ns1__getxattr_USCOREobject: 566 soap_serialize_ns1__getxattr_USCOREobject(soap, (const struct ns1__getxattr_USCOREobject *)ptr); 567 break; 568 case SOAP_TYPE_ns1__getxattr_USCOREobjectResponse: 569 soap_serialize_ns1__getxattr_USCOREobjectResponse(soap, (const struct ns1__getxattr_USCOREobjectResponse *)ptr); 570 break; 571 case SOAP_TYPE_ns1__setxattr_USCOREobject: 572 soap_serialize_ns1__setxattr_USCOREobject(soap, (const struct ns1__setxattr_USCOREobject *)ptr); 573 break; 574 case SOAP_TYPE_ns1__setxattr_USCOREobjectResponse: 575 soap_serialize_ns1__setxattr_USCOREobjectResponse(soap, (const struct ns1__setxattr_USCOREobjectResponse *)ptr); 484 576 break; 485 577 case SOAP_TYPE_ns1__unlock_USCOREobject: … … 531 623 soap_serialize_PointerTons1__find_USCOREobjectsResponse(soap, (struct ns1__find_USCOREobjectsResponse *const*)ptr); 532 624 break; 625 case SOAP_TYPE_PointerTons1__listxattr_USCOREobjectResponse: 626 soap_serialize_PointerTons1__listxattr_USCOREobjectResponse(soap, (struct ns1__listxattr_USCOREobjectResponse *const*)ptr); 627 break; 533 628 case SOAP_TYPE_PointerToArrayOfString: 534 629 soap_serialize_PointerToArrayOfString(soap, (struct ArrayOfString *const*)ptr); … … 1686 1781 else 1687 1782 { a = (struct ns1__find_USCOREobjectsResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns1__find_USCOREobjectsResponse, 0, sizeof(struct ns1__find_USCOREobjectsResponse), 0, NULL); 1783 if (soap->body && soap_element_end_in(soap, tag)) 1784 return NULL; 1785 } 1786 return a; 1787 } 1788 1789 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__removexattr_USCOREobject(struct soap *soap, struct ns1__removexattr_USCOREobject *a) 1790 { 1791 (void)soap; (void)a; /* appease -Wall -Werror */ 1792 soap_default_string(soap, &a->key); 1793 soap_default_string(soap, &a->name); 1794 } 1795 1796 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__removexattr_USCOREobject(struct soap *soap, const struct ns1__removexattr_USCOREobject *a) 1797 { 1798 (void)soap; (void)a; /* appease -Wall -Werror */ 1799 soap_serialize_string(soap, &a->key); 1800 soap_serialize_string(soap, &a->name); 1801 } 1802 1803 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__removexattr_USCOREobject(struct soap *soap, const struct ns1__removexattr_USCOREobject *a, const char *tag, const char *type) 1804 { 1805 register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns1__removexattr_USCOREobject); 1806 if (soap_out_ns1__removexattr_USCOREobject(soap, tag, id, a, type)) 1807 return soap->error; 1808 return soap_putindependent(soap); 1809 } 1810 1811 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__removexattr_USCOREobject(struct soap *soap, const char *tag, int id, const struct ns1__removexattr_USCOREobject *a, const char *type) 1812 { 1813 if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns1__removexattr_USCOREobject), type)) 1814 return soap->error; 1815 if (soap_out_string(soap, "key", -1, &a->key, "")) 1816 return soap->error; 1817 if (soap_out_string(soap, "name", -1, &a->name, "")) 1818 return soap->error; 1819 return soap_element_end_out(soap, tag); 1820 } 1821 1822 SOAP_FMAC3 struct ns1__removexattr_USCOREobject * SOAP_FMAC4 soap_get_ns1__removexattr_USCOREobject(struct soap *soap, struct ns1__removexattr_USCOREobject *p, const char *tag, const char *type) 1823 { 1824 if ((p = soap_in_ns1__removexattr_USCOREobject(soap, tag, p, type))) 1825 if (soap_getindependent(soap)) 1826 return NULL; 1827 return p; 1828 } 1829 1830 SOAP_FMAC3 struct ns1__removexattr_USCOREobject * SOAP_FMAC4 soap_in_ns1__removexattr_USCOREobject(struct soap *soap, const char *tag, struct ns1__removexattr_USCOREobject *a, const char *type) 1831 { 1832 size_t soap_flag_key = 1; 1833 size_t soap_flag_name = 1; 1834 if (soap_element_begin_in(soap, tag, 0, type)) 1835 return NULL; 1836 a = (struct ns1__removexattr_USCOREobject *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns1__removexattr_USCOREobject, sizeof(struct ns1__removexattr_USCOREobject), 0, NULL, NULL, NULL); 1837 if (!a) 1838 return NULL; 1839 soap_default_ns1__removexattr_USCOREobject(soap, a); 1840 if (soap->body && !*soap->href) 1841 { 1842 for (;;) 1843 { soap->error = SOAP_TAG_MISMATCH; 1844 if (soap_flag_key && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) 1845 if (soap_in_string(soap, "key", &a->key, "xsd:string")) 1846 { soap_flag_key--; 1847 continue; 1848 } 1849 if (soap_flag_name && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) 1850 if (soap_in_string(soap, "name", &a->name, "xsd:string")) 1851 { soap_flag_name--; 1852 continue; 1853 } 1854 if (soap->error == SOAP_TAG_MISMATCH) 1855 soap->error = soap_ignore_element(soap); 1856 if (soap->error == SOAP_NO_TAG) 1857 break; 1858 if (soap->error) 1859 return NULL; 1860 } 1861 if (soap_element_end_in(soap, tag)) 1862 return NULL; 1863 } 1864 else 1865 { a = (struct ns1__removexattr_USCOREobject *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns1__removexattr_USCOREobject, 0, sizeof(struct ns1__removexattr_USCOREobject), 0, NULL); 1866 if (soap->body && soap_element_end_in(soap, tag)) 1867 return NULL; 1868 } 1869 return a; 1870 } 1871 1872 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__removexattr_USCOREobjectResponse(struct soap *soap, struct ns1__removexattr_USCOREobjectResponse *a) 1873 { 1874 (void)soap; (void)a; /* appease -Wall -Werror */ 1875 a->result = NULL; 1876 } 1877 1878 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__removexattr_USCOREobjectResponse(struct soap *soap, const struct ns1__removexattr_USCOREobjectResponse *a) 1879 { 1880 (void)soap; (void)a; /* appease -Wall -Werror */ 1881 soap_serialize_PointerToint(soap, &a->result); 1882 } 1883 1884 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__removexattr_USCOREobjectResponse(struct soap *soap, const struct ns1__removexattr_USCOREobjectResponse *a, const char *tag, const char *type) 1885 { 1886 register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns1__removexattr_USCOREobjectResponse); 1887 if (soap_out_ns1__removexattr_USCOREobjectResponse(soap, tag, id, a, type)) 1888 return soap->error; 1889 return soap_putindependent(soap); 1890 } 1891 1892 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__removexattr_USCOREobjectResponse(struct soap *soap, const char *tag, int id, const struct ns1__removexattr_USCOREobjectResponse *a, const char *type) 1893 { 1894 if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns1__removexattr_USCOREobjectResponse), type)) 1895 return soap->error; 1896 if (soap_out_PointerToint(soap, "result", -1, &a->result, "")) 1897 return soap->error; 1898 return soap_element_end_out(soap, tag); 1899 } 1900 1901 SOAP_FMAC3 struct ns1__removexattr_USCOREobjectResponse * SOAP_FMAC4 soap_get_ns1__removexattr_USCOREobjectResponse(struct soap *soap, struct ns1__removexattr_USCOREobjectResponse *p, const char *tag, const char *type) 1902 { 1903 if ((p = soap_in_ns1__removexattr_USCOREobjectResponse(soap, tag, p, type))) 1904 if (soap_getindependent(soap)) 1905 return NULL; 1906 return p; 1907 } 1908 1909 SOAP_FMAC3 struct ns1__removexattr_USCOREobjectResponse * SOAP_FMAC4 soap_in_ns1__removexattr_USCOREobjectResponse(struct soap *soap, const char *tag, struct ns1__removexattr_USCOREobjectResponse *a, const char *type) 1910 { 1911 size_t soap_flag_result = 1; 1912 if (soap_element_begin_in(soap, tag, 0, type)) 1913 return NULL; 1914 a = (struct ns1__removexattr_USCOREobjectResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns1__removexattr_USCOREobjectResponse, sizeof(struct ns1__removexattr_USCOREobjectResponse), 0, NULL, NULL, NULL); 1915 if (!a) 1916 return NULL; 1917 soap_default_ns1__removexattr_USCOREobjectResponse(soap, a); 1918 if (soap->body && !*soap->href) 1919 { 1920 for (;;) 1921 { soap->error = SOAP_TAG_MISMATCH; 1922 if (soap_flag_result && soap->error == SOAP_TAG_MISMATCH) 1923 if (soap_in_PointerToint(soap, "result", &a->result, "xsd:int")) 1924 { soap_flag_result--; 1925 continue; 1926 } 1927 if (soap->error == SOAP_TAG_MISMATCH) 1928 soap->error = soap_ignore_element(soap); 1929 if (soap->error == SOAP_NO_TAG) 1930 break; 1931 if (soap->error) 1932 return NULL; 1933 } 1934 if (soap_element_end_in(soap, tag)) 1935 return NULL; 1936 } 1937 else 1938 { a = (struct ns1__removexattr_USCOREobjectResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns1__removexattr_USCOREobjectResponse, 0, sizeof(struct ns1__removexattr_USCOREobjectResponse), 0, NULL); 1939 if (soap->body && soap_element_end_in(soap, tag)) 1940 return NULL; 1941 } 1942 return a; 1943 } 1944 1945 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__listxattr_USCOREobject(struct soap *soap, struct ns1__listxattr_USCOREobject *a) 1946 { 1947 (void)soap; (void)a; /* appease -Wall -Werror */ 1948 soap_default_string(soap, &a->key); 1949 } 1950 1951 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__listxattr_USCOREobject(struct soap *soap, const struct ns1__listxattr_USCOREobject *a) 1952 { 1953 (void)soap; (void)a; /* appease -Wall -Werror */ 1954 soap_serialize_string(soap, &a->key); 1955 } 1956 1957 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__listxattr_USCOREobject(struct soap *soap, const struct ns1__listxattr_USCOREobject *a, const char *tag, const char *type) 1958 { 1959 register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns1__listxattr_USCOREobject); 1960 if (soap_out_ns1__listxattr_USCOREobject(soap, tag, id, a, type)) 1961 return soap->error; 1962 return soap_putindependent(soap); 1963 } 1964 1965 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__listxattr_USCOREobject(struct soap *soap, const char *tag, int id, const struct ns1__listxattr_USCOREobject *a, const char *type) 1966 { 1967 if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns1__listxattr_USCOREobject), type)) 1968 return soap->error; 1969 if (soap_out_string(soap, "key", -1, &a->key, "")) 1970 return soap->error; 1971 return soap_element_end_out(soap, tag); 1972 } 1973 1974 SOAP_FMAC3 struct ns1__listxattr_USCOREobject * SOAP_FMAC4 soap_get_ns1__listxattr_USCOREobject(struct soap *soap, struct ns1__listxattr_USCOREobject *p, const char *tag, const char *type) 1975 { 1976 if ((p = soap_in_ns1__listxattr_USCOREobject(soap, tag, p, type))) 1977 if (soap_getindependent(soap)) 1978 return NULL; 1979 return p; 1980 } 1981 1982 SOAP_FMAC3 struct ns1__listxattr_USCOREobject * SOAP_FMAC4 soap_in_ns1__listxattr_USCOREobject(struct soap *soap, const char *tag, struct ns1__listxattr_USCOREobject *a, const char *type) 1983 { 1984 size_t soap_flag_key = 1; 1985 if (soap_element_begin_in(soap, tag, 0, type)) 1986 return NULL; 1987 a = (struct ns1__listxattr_USCOREobject *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns1__listxattr_USCOREobject, sizeof(struct ns1__listxattr_USCOREobject), 0, NULL, NULL, NULL); 1988 if (!a) 1989 return NULL; 1990 soap_default_ns1__listxattr_USCOREobject(soap, a); 1991 if (soap->body && !*soap->href) 1992 { 1993 for (;;) 1994 { soap->error = SOAP_TAG_MISMATCH; 1995 if (soap_flag_key && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) 1996 if (soap_in_string(soap, "key", &a->key, "xsd:string")) 1997 { soap_flag_key--; 1998 continue; 1999 } 2000 if (soap->error == SOAP_TAG_MISMATCH) 2001 soap->error = soap_ignore_element(soap); 2002 if (soap->error == SOAP_NO_TAG) 2003 break; 2004 if (soap->error) 2005 return NULL; 2006 } 2007 if (soap_element_end_in(soap, tag)) 2008 return NULL; 2009 } 2010 else 2011 { a = (struct ns1__listxattr_USCOREobject *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns1__listxattr_USCOREobject, 0, sizeof(struct ns1__listxattr_USCOREobject), 0, NULL); 2012 if (soap->body && soap_element_end_in(soap, tag)) 2013 return NULL; 2014 } 2015 return a; 2016 } 2017 2018 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__listxattr_USCOREobjectResponse(struct soap *soap, struct ns1__listxattr_USCOREobjectResponse *a) 2019 { 2020 (void)soap; (void)a; /* appease -Wall -Werror */ 2021 a->result = NULL; 2022 } 2023 2024 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__listxattr_USCOREobjectResponse(struct soap *soap, const struct ns1__listxattr_USCOREobjectResponse *a) 2025 { 2026 (void)soap; (void)a; /* appease -Wall -Werror */ 2027 soap_serialize_PointerToArrayOfString(soap, &a->result); 2028 } 2029 2030 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__listxattr_USCOREobjectResponse(struct soap *soap, const struct ns1__listxattr_USCOREobjectResponse *a, const char *tag, const char *type) 2031 { 2032 register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns1__listxattr_USCOREobjectResponse); 2033 if (soap_out_ns1__listxattr_USCOREobjectResponse(soap, tag, id, a, type)) 2034 return soap->error; 2035 return soap_putindependent(soap); 2036 } 2037 2038 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__listxattr_USCOREobjectResponse(struct soap *soap, const char *tag, int id, const struct ns1__listxattr_USCOREobjectResponse *a, const char *type) 2039 { 2040 if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns1__listxattr_USCOREobjectResponse), type)) 2041 return soap->error; 2042 if (soap_out_PointerToArrayOfString(soap, "result", -1, &a->result, "")) 2043 return soap->error; 2044 return soap_element_end_out(soap, tag); 2045 } 2046 2047 SOAP_FMAC3 struct ns1__listxattr_USCOREobjectResponse * SOAP_FMAC4 soap_get_ns1__listxattr_USCOREobjectResponse(struct soap *soap, struct ns1__listxattr_USCOREobjectResponse *p, const char *tag, const char *type) 2048 { 2049 if ((p = soap_in_ns1__listxattr_USCOREobjectResponse(soap, tag, p, type))) 2050 if (soap_getindependent(soap)) 2051 return NULL; 2052 return p; 2053 } 2054 2055 SOAP_FMAC3 struct ns1__listxattr_USCOREobjectResponse * SOAP_FMAC4 soap_in_ns1__listxattr_USCOREobjectResponse(struct soap *soap, const char *tag, struct ns1__listxattr_USCOREobjectResponse *a, const char *type) 2056 { 2057 size_t soap_flag_result = 1; 2058 if (soap_element_begin_in(soap, tag, 0, type)) 2059 return NULL; 2060 a = (struct ns1__listxattr_USCOREobjectResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns1__listxattr_USCOREobjectResponse, sizeof(struct ns1__listxattr_USCOREobjectResponse), 0, NULL, NULL, NULL); 2061 if (!a) 2062 return NULL; 2063 soap_default_ns1__listxattr_USCOREobjectResponse(soap, a); 2064 if (soap->body && !*soap->href) 2065 { 2066 for (;;) 2067 { soap->error = SOAP_TAG_MISMATCH; 2068 if (soap_flag_result && soap->error == SOAP_TAG_MISMATCH) 2069 if (soap_in_PointerToArrayOfString(soap, "result", &a->result, "xsd:string")) 2070 { soap_flag_result--; 2071 continue; 2072 } 2073 if (soap->error == SOAP_TAG_MISMATCH) 2074 soap->error = soap_ignore_element(soap); 2075 if (soap->error == SOAP_NO_TAG) 2076 break; 2077 if (soap->error) 2078 return NULL; 2079 } 2080 if (soap_element_end_in(soap, tag)) 2081 return NULL; 2082 } 2083 else 2084 { a = (struct ns1__listxattr_USCOREobjectResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns1__listxattr_USCOREobjectResponse, 0, sizeof(struct ns1__listxattr_USCOREobjectResponse), 0, NULL); 2085 if (soap->body && soap_element_end_in(soap, tag)) 2086 return NULL; 2087 } 2088 return a; 2089 } 2090 2091 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__getxattr_USCOREobject(struct soap *soap, struct ns1__getxattr_USCOREobject *a) 2092 { 2093 (void)soap; (void)a; /* appease -Wall -Werror */ 2094 soap_default_string(soap, &a->key); 2095 soap_default_string(soap, &a->name); 2096 } 2097 2098 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__getxattr_USCOREobject(struct soap *soap, const struct ns1__getxattr_USCOREobject *a) 2099 { 2100 (void)soap; (void)a; /* appease -Wall -Werror */ 2101 soap_serialize_string(soap, &a->key); 2102 soap_serialize_string(soap, &a->name); 2103 } 2104 2105 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__getxattr_USCOREobject(struct soap *soap, const struct ns1__getxattr_USCOREobject *a, const char *tag, const char *type) 2106 { 2107 register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns1__getxattr_USCOREobject); 2108 if (soap_out_ns1__getxattr_USCOREobject(soap, tag, id, a, type)) 2109 return soap->error; 2110 return soap_putindependent(soap); 2111 } 2112 2113 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__getxattr_USCOREobject(struct soap *soap, const char *tag, int id, const struct ns1__getxattr_USCOREobject *a, const char *type) 2114 { 2115 if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns1__getxattr_USCOREobject), type)) 2116 return soap->error; 2117 if (soap_out_string(soap, "key", -1, &a->key, "")) 2118 return soap->error; 2119 if (soap_out_string(soap, "name", -1, &a->name, "")) 2120 return soap->error; 2121 return soap_element_end_out(soap, tag); 2122 } 2123 2124 SOAP_FMAC3 struct ns1__getxattr_USCOREobject * SOAP_FMAC4 soap_get_ns1__getxattr_USCOREobject(struct soap *soap, struct ns1__getxattr_USCOREobject *p, const char *tag, const char *type) 2125 { 2126 if ((p = soap_in_ns1__getxattr_USCOREobject(soap, tag, p, type))) 2127 if (soap_getindependent(soap)) 2128 return NULL; 2129 return p; 2130 } 2131 2132 SOAP_FMAC3 struct ns1__getxattr_USCOREobject * SOAP_FMAC4 soap_in_ns1__getxattr_USCOREobject(struct soap *soap, const char *tag, struct ns1__getxattr_USCOREobject *a, const char *type) 2133 { 2134 size_t soap_flag_key = 1; 2135 size_t soap_flag_name = 1; 2136 if (soap_element_begin_in(soap, tag, 0, type)) 2137 return NULL; 2138 a = (struct ns1__getxattr_USCOREobject *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns1__getxattr_USCOREobject, sizeof(struct ns1__getxattr_USCOREobject), 0, NULL, NULL, NULL); 2139 if (!a) 2140 return NULL; 2141 soap_default_ns1__getxattr_USCOREobject(soap, a); 2142 if (soap->body && !*soap->href) 2143 { 2144 for (;;) 2145 { soap->error = SOAP_TAG_MISMATCH; 2146 if (soap_flag_key && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) 2147 if (soap_in_string(soap, "key", &a->key, "xsd:string")) 2148 { soap_flag_key--; 2149 continue; 2150 } 2151 if (soap_flag_name && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) 2152 if (soap_in_string(soap, "name", &a->name, "xsd:string")) 2153 { soap_flag_name--; 2154 continue; 2155 } 2156 if (soap->error == SOAP_TAG_MISMATCH) 2157 soap->error = soap_ignore_element(soap); 2158 if (soap->error == SOAP_NO_TAG) 2159 break; 2160 if (soap->error) 2161 return NULL; 2162 } 2163 if (soap_element_end_in(soap, tag)) 2164 return NULL; 2165 } 2166 else 2167 { a = (struct ns1__getxattr_USCOREobject *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns1__getxattr_USCOREobject, 0, sizeof(struct ns1__getxattr_USCOREobject), 0, NULL); 2168 if (soap->body && soap_element_end_in(soap, tag)) 2169 return NULL; 2170 } 2171 return a; 2172 } 2173 2174 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__getxattr_USCOREobjectResponse(struct soap *soap, struct ns1__getxattr_USCOREobjectResponse *a) 2175 { 2176 (void)soap; (void)a; /* appease -Wall -Werror */ 2177 a->result = NULL; 2178 } 2179 2180 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__getxattr_USCOREobjectResponse(struct soap *soap, const struct ns1__getxattr_USCOREobjectResponse *a) 2181 { 2182 (void)soap; (void)a; /* appease -Wall -Werror */ 2183 soap_serialize_PointerTostring(soap, &a->result); 2184 } 2185 2186 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__getxattr_USCOREobjectResponse(struct soap *soap, const struct ns1__getxattr_USCOREobjectResponse *a, const char *tag, const char *type) 2187 { 2188 register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns1__getxattr_USCOREobjectResponse); 2189 if (soap_out_ns1__getxattr_USCOREobjectResponse(soap, tag, id, a, type)) 2190 return soap->error; 2191 return soap_putindependent(soap); 2192 } 2193 2194 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__getxattr_USCOREobjectResponse(struct soap *soap, const char *tag, int id, const struct ns1__getxattr_USCOREobjectResponse *a, const char *type) 2195 { 2196 if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns1__getxattr_USCOREobjectResponse), type)) 2197 return soap->error; 2198 if (soap_out_PointerTostring(soap, "result", -1, &a->result, "")) 2199 return soap->error; 2200 return soap_element_end_out(soap, tag); 2201 } 2202 2203 SOAP_FMAC3 struct ns1__getxattr_USCOREobjectResponse * SOAP_FMAC4 soap_get_ns1__getxattr_USCOREobjectResponse(struct soap *soap, struct ns1__getxattr_USCOREobjectResponse *p, const char *tag, const char *type) 2204 { 2205 if ((p = soap_in_ns1__getxattr_USCOREobjectResponse(soap, tag, p, type))) 2206 if (soap_getindependent(soap)) 2207 return NULL; 2208 return p; 2209 } 2210 2211 SOAP_FMAC3 struct ns1__getxattr_USCOREobjectResponse * SOAP_FMAC4 soap_in_ns1__getxattr_USCOREobjectResponse(struct soap *soap, const char *tag, struct ns1__getxattr_USCOREobjectResponse *a, const char *type) 2212 { 2213 size_t soap_flag_result = 1; 2214 if (soap_element_begin_in(soap, tag, 0, type)) 2215 return NULL; 2216 a = (struct ns1__getxattr_USCOREobjectResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns1__getxattr_USCOREobjectResponse, sizeof(struct ns1__getxattr_USCOREobjectResponse), 0, NULL, NULL, NULL); 2217 if (!a) 2218 return NULL; 2219 soap_default_ns1__getxattr_USCOREobjectResponse(soap, a); 2220 if (soap->body && !*soap->href) 2221 { 2222 for (;;) 2223 { soap->error = SOAP_TAG_MISMATCH; 2224 if (soap_flag_result && soap->error == SOAP_TAG_MISMATCH) 2225 if (soap_in_PointerTostring(soap, "result", &a->result, "xsd:string")) 2226 { soap_flag_result--; 2227 continue; 2228 } 2229 if (soap->error == SOAP_TAG_MISMATCH) 2230 soap->error = soap_ignore_element(soap); 2231 if (soap->error == SOAP_NO_TAG) 2232 break; 2233 if (soap->error) 2234 return NULL; 2235 } 2236 if (soap_element_end_in(soap, tag)) 2237 return NULL; 2238 } 2239 else 2240 { a = (struct ns1__getxattr_USCOREobjectResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns1__getxattr_USCOREobjectResponse, 0, sizeof(struct ns1__getxattr_USCOREobjectResponse), 0, NULL); 2241 if (soap->body && soap_element_end_in(soap, tag)) 2242 return NULL; 2243 } 2244 return a; 2245 } 2246 2247 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__setxattr_USCOREobject(struct soap *soap, struct ns1__setxattr_USCOREobject *a) 2248 { 2249 (void)soap; (void)a; /* appease -Wall -Werror */ 2250 soap_default_string(soap, &a->key); 2251 soap_default_string(soap, &a->name); 2252 soap_default_string(soap, &a->value); 2253 soap_default_string(soap, &a->flags); 2254 } 2255 2256 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__setxattr_USCOREobject(struct soap *soap, const struct ns1__setxattr_USCOREobject *a) 2257 { 2258 (void)soap; (void)a; /* appease -Wall -Werror */ 2259 soap_serialize_string(soap, &a->key); 2260 soap_serialize_string(soap, &a->name); 2261 soap_serialize_string(soap, &a->value); 2262 soap_serialize_string(soap, &a->flags); 2263 } 2264 2265 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__setxattr_USCOREobject(struct soap *soap, const struct ns1__setxattr_USCOREobject *a, const char *tag, const char *type) 2266 { 2267 register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns1__setxattr_USCOREobject); 2268 if (soap_out_ns1__setxattr_USCOREobject(soap, tag, id, a, type)) 2269 return soap->error; 2270 return soap_putindependent(soap); 2271 } 2272 2273 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__setxattr_USCOREobject(struct soap *soap, const char *tag, int id, const struct ns1__setxattr_USCOREobject *a, const char *type) 2274 { 2275 if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns1__setxattr_USCOREobject), type)) 2276 return soap->error; 2277 if (soap_out_string(soap, "key", -1, &a->key, "")) 2278 return soap->error; 2279 if (soap_out_string(soap, "name", -1, &a->name, "")) 2280 return soap->error; 2281 if (soap_out_string(soap, "value", -1, &a->value, "")) 2282 return soap->error; 2283 if (soap_out_string(soap, "flags", -1, &a->flags, "")) 2284 return soap->error; 2285 return soap_element_end_out(soap, tag); 2286 } 2287 2288 SOAP_FMAC3 struct ns1__setxattr_USCOREobject * SOAP_FMAC4 soap_get_ns1__setxattr_USCOREobject(struct soap *soap, struct ns1__setxattr_USCOREobject *p, const char *tag, const char *type) 2289 { 2290 if ((p = soap_in_ns1__setxattr_USCOREobject(soap, tag, p, type))) 2291 if (soap_getindependent(soap)) 2292 return NULL; 2293 return p; 2294 } 2295 2296 SOAP_FMAC3 struct ns1__setxattr_USCOREobject * SOAP_FMAC4 soap_in_ns1__setxattr_USCOREobject(struct soap *soap, const char *tag, struct ns1__setxattr_USCOREobject *a, const char *type) 2297 { 2298 size_t soap_flag_key = 1; 2299 size_t soap_flag_name = 1; 2300 size_t soap_flag_value = 1; 2301 size_t soap_flag_flags = 1; 2302 if (soap_element_begin_in(soap, tag, 0, type)) 2303 return NULL; 2304 a = (struct ns1__setxattr_USCOREobject *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns1__setxattr_USCOREobject, sizeof(struct ns1__setxattr_USCOREobject), 0, NULL, NULL, NULL); 2305 if (!a) 2306 return NULL; 2307 soap_default_ns1__setxattr_USCOREobject(soap, a); 2308 if (soap->body && !*soap->href) 2309 { 2310 for (;;) 2311 { soap->error = SOAP_TAG_MISMATCH; 2312 if (soap_flag_key && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) 2313 if (soap_in_string(soap, "key", &a->key, "xsd:string")) 2314 { soap_flag_key--; 2315 continue; 2316 } 2317 if (soap_flag_name && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) 2318 if (soap_in_string(soap, "name", &a->name, "xsd:string")) 2319 { soap_flag_name--; 2320 continue; 2321 } 2322 if (soap_flag_value && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) 2323 if (soap_in_string(soap, "value", &a->value, "xsd:string")) 2324 { soap_flag_value--; 2325 continue; 2326 } 2327 if (soap_flag_flags && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) 2328 if (soap_in_string(soap, "flags", &a->flags, "xsd:string")) 2329 { soap_flag_flags--; 2330 continue; 2331 } 2332 if (soap->error == SOAP_TAG_MISMATCH) 2333 soap->error = soap_ignore_element(soap); 2334 if (soap->error == SOAP_NO_TAG) 2335 break; 2336 if (soap->error) 2337 return NULL; 2338 } 2339 if (soap_element_end_in(soap, tag)) 2340 return NULL; 2341 } 2342 else 2343 { a = (struct ns1__setxattr_USCOREobject *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns1__setxattr_USCOREobject, 0, sizeof(struct ns1__setxattr_USCOREobject), 0, NULL); 2344 if (soap->body && soap_element_end_in(soap, tag)) 2345 return NULL; 2346 } 2347 return a; 2348 } 2349 2350 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__setxattr_USCOREobjectResponse(struct soap *soap, struct ns1__setxattr_USCOREobjectResponse *a) 2351 { 2352 (void)soap; (void)a; /* appease -Wall -Werror */ 2353 a->result = NULL; 2354 } 2355 2356 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__setxattr_USCOREobjectResponse(struct soap *soap, const struct ns1__setxattr_USCOREobjectResponse *a) 2357 { 2358 (void)soap; (void)a; /* appease -Wall -Werror */ 2359 soap_serialize_PointerToint(soap, &a->result); 2360 } 2361 2362 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__setxattr_USCOREobjectResponse(struct soap *soap, const struct ns1__setxattr_USCOREobjectResponse *a, const char *tag, const char *type) 2363 { 2364 register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_ns1__setxattr_USCOREobjectResponse); 2365 if (soap_out_ns1__setxattr_USCOREobjectResponse(soap, tag, id, a, type)) 2366 return soap->error; 2367 return soap_putindependent(soap); 2368 } 2369 2370 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__setxattr_USCOREobjectResponse(struct soap *soap, const char *tag, int id, const struct ns1__setxattr_USCOREobjectResponse *a, const char *type) 2371 { 2372 if (soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns1__setxattr_USCOREobjectResponse), type)) 2373 return soap->error; 2374 if (soap_out_PointerToint(soap, "result", -1, &a->result, "")) 2375 return soap->error; 2376 return soap_element_end_out(soap, tag); 2377 } 2378 2379 SOAP_FMAC3 struct ns1__setxattr_USCOREobjectResponse * SOAP_FMAC4 soap_get_ns1__setxattr_USCOREobjectResponse(struct soap *soap, struct ns1__setxattr_USCOREobjectResponse *p, const char *tag, const char *type) 2380 { 2381 if ((p = soap_in_ns1__setxattr_USCOREobjectResponse(soap, tag, p, type))) 2382 if (soap_getindependent(soap)) 2383 return NULL; 2384 return p; 2385 } 2386 2387 SOAP_FMAC3 struct ns1__setxattr_USCOREobjectResponse * SOAP_FMAC4 soap_in_ns1__setxattr_USCOREobjectResponse(struct soap *soap, const char *tag, struct ns1__setxattr_USCOREobjectResponse *a, const char *type) 2388 { 2389 size_t soap_flag_result = 1; 2390 if (soap_element_begin_in(soap, tag, 0, type)) 2391 return NULL; 2392 a = (struct ns1__setxattr_USCOREobjectResponse *)soap_id_enter(soap, soap->id, a, SOAP_TYPE_ns1__setxattr_USCOREobjectResponse, sizeof(struct ns1__setxattr_USCOREobjectResponse), 0, NULL, NULL, NULL); 2393 if (!a) 2394 return NULL; 2395 soap_default_ns1__setxattr_USCOREobjectResponse(soap, a); 2396 if (soap->body && !*soap->href) 2397 { 2398 for (;;) 2399 { soap->error = SOAP_TAG_MISMATCH; 2400 if (soap_flag_result && soap->error == SOAP_TAG_MISMATCH) 2401 if (soap_in_PointerToint(soap, "result", &a->result, "xsd:int")) 2402 { soap_flag_result--; 2403 continue; 2404 } 2405 if (soap->error == SOAP_TAG_MISMATCH) 2406 soap->error = soap_ignore_element(soap); 2407 if (soap->error == SOAP_NO_TAG) 2408 break; 2409 if (soap->error) 2410 return NULL; 2411 } 2412 if (soap_element_end_in(soap, tag)) 2413 return NULL; 2414 } 2415 else 2416 { a = (struct ns1__setxattr_USCOREobjectResponse *)soap_id_forward(soap, soap->href, (void*)a, 0, SOAP_TYPE_ns1__setxattr_USCOREobjectResponse, 0, sizeof(struct ns1__setxattr_USCOREobjectResponse), 0, NULL); 1688 2417 if (soap->body && soap_element_end_in(soap, tag)) 1689 2418 return NULL; … … 3064 3793 } 3065 3794 3795 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__listxattr_USCOREobjectResponse(struct soap *soap, struct ns1__listxattr_USCOREobjectResponse *const*a) 3796 { 3797 if (!soap_reference(soap, *a, SOAP_TYPE_ns1__listxattr_USCOREobjectResponse)) 3798 soap_serialize_ns1__listxattr_USCOREobjectResponse(soap, *a); 3799 } 3800 3801 SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__listxattr_USCOREobjectResponse(struct soap *soap, struct ns1__listxattr_USCOREobjectResponse *const*a, const char *tag, const char *type) 3802 { 3803 register int id = soap_embed(soap, (void*)a, NULL, 0, tag, SOAP_TYPE_PointerTons1__listxattr_USCOREobjectResponse); 3804 if (soap_out_PointerTons1__listxattr_USCOREobjectResponse(soap, tag, id, a, type)) 3805 return soap->error; 3806 return soap_putindependent(soap); 3807 } 3808 3809 SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__listxattr_USCOREobjectResponse(struct soap *soap, const char *tag, int id, struct ns1__listxattr_USCOREobjectResponse *const*a, const char *type) 3810 { 3811 id = soap_element_id(soap, tag, id, *a, NULL, 0, type, SOAP_TYPE_ns1__listxattr_USCOREobjectResponse); 3812 if (id < 0) 3813 return soap->error; 3814 return soap_out_ns1__listxattr_USCOREobjectResponse(soap, tag, id, *a, type); 3815 } 3816 3817 SOAP_FMAC3 struct ns1__listxattr_USCOREobjectResponse ** SOAP_FMAC4 soap_get_PointerTons1__listxattr_USCOREobjectResponse(struct soap *soap, struct ns1__listxattr_USCOREobjectResponse **p, const char *tag, const char *type) 3818 { 3819 if ((p = soap_in_PointerTons1__listxattr_USCOREobjectResponse(soap, tag, p, type))) 3820 if (soap_getindependent(soap)) 3821 return NULL; 3822 return p; 3823 } 3824 3825 SOAP_FMAC3 struct ns1__listxattr_USCOREobjectResponse ** SOAP_FMAC4 soap_in_PointerTons1__listxattr_USCOREobjectResponse(struct soap *soap, const char *tag, struct ns1__listxattr_USCOREobjectResponse **a, const char *type) 3826 { 3827 if (soap_element_begin_in(soap, tag, 1, NULL)) 3828 return NULL; 3829 if (!a) 3830 if (!(a = (struct ns1__listxattr_USCOREobjectResponse **)soap_malloc(soap, sizeof(struct ns1__listxattr_USCOREobjectResponse *)))) 3831 return NULL; 3832 *a = NULL; 3833 if (!soap->null && *soap->href != '#') 3834 { soap_revert(soap); 3835 if (!(*a = soap_in_ns1__listxattr_USCOREobjectResponse(soap, tag, *a, type))) 3836 return NULL; 3837 } 3838 else 3839 { a = (struct ns1__listxattr_USCOREobjectResponse **)soap_id_lookup(soap, soap->href, (void**)a, SOAP_TYPE_ns1__listxattr_USCOREobjectResponse, sizeof(struct ns1__listxattr_USCOREobjectResponse), 0); 3840 if (soap->body && soap_element_end_in(soap, tag)) 3841 return NULL; 3842 } 3843 return a; 3844 } 3845 3066 3846 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToArrayOfString(struct soap *soap, struct ArrayOfString *const*a) 3067 3847 { -
trunk/Nebulous/nebclient/src/soapClient.c
r20110 r20208 10 10 #endif 11 11 12 SOAP_SOURCE_STAMP("@(#) soapClient.c ver 2.7.11 2008-10-1 3 22:06:55GMT")12 SOAP_SOURCE_STAMP("@(#) soapClient.c ver 2.7.11 2008-10-16 23:26:38 GMT") 13 13 14 14 … … 361 361 } 362 362 363 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__find_USCOREobjects(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *pattern, struct ns1__find_USCOREobjectsResponse *_param_1) 363 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__setxattr_USCOREobject(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, char *name, char *value, char *flags, int *result) 364 { struct ns1__setxattr_USCOREobject soap_tmp_ns1__setxattr_USCOREobject; 365 struct ns1__setxattr_USCOREobjectResponse *soap_tmp_ns1__setxattr_USCOREobjectResponse; 366 if (!soap_endpoint) 367 soap_endpoint = "http://localhost:80/nebulous"; 368 if (!soap_action) 369 soap_action = "urn:Nebulous/Server/SOAP#setxattr_object"; 370 soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; 371 soap_tmp_ns1__setxattr_USCOREobject.key = key; 372 soap_tmp_ns1__setxattr_USCOREobject.name = name; 373 soap_tmp_ns1__setxattr_USCOREobject.value = value; 374 soap_tmp_ns1__setxattr_USCOREobject.flags = flags; 375 soap_begin(soap); 376 soap_serializeheader(soap); 377 soap_serialize_ns1__setxattr_USCOREobject(soap, &soap_tmp_ns1__setxattr_USCOREobject); 378 if (soap_begin_count(soap)) 379 return soap->error; 380 if (soap->mode & SOAP_IO_LENGTH) 381 { if (soap_envelope_begin_out(soap) 382 || soap_putheader(soap) 383 || soap_body_begin_out(soap) 384 || soap_put_ns1__setxattr_USCOREobject(soap, &soap_tmp_ns1__setxattr_USCOREobject, "ns1:setxattr_object", "") 385 || soap_body_end_out(soap) 386 || soap_envelope_end_out(soap)) 387 return soap->error; 388 } 389 if (soap_end_count(soap)) 390 return soap->error; 391 if (soap_connect(soap, soap_endpoint, soap_action) 392 || soap_envelope_begin_out(soap) 393 || soap_putheader(soap) 394 || soap_body_begin_out(soap) 395 || soap_put_ns1__setxattr_USCOREobject(soap, &soap_tmp_ns1__setxattr_USCOREobject, "ns1:setxattr_object", "") 396 || soap_body_end_out(soap) 397 || soap_envelope_end_out(soap) 398 || soap_end_send(soap)) 399 return soap_closesock(soap); 400 if (!result) 401 return soap_closesock(soap); 402 soap_default_int(soap, result); 403 if (soap_begin_recv(soap) 404 || soap_envelope_begin_in(soap) 405 || soap_recv_header(soap) 406 || soap_body_begin_in(soap)) 407 return soap_closesock(soap); 408 soap_tmp_ns1__setxattr_USCOREobjectResponse = soap_get_ns1__setxattr_USCOREobjectResponse(soap, NULL, "ns1:setxattr_objectResponse", ""); 409 if (soap->error) 410 { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) 411 return soap_recv_fault(soap); 412 return soap_closesock(soap); 413 } 414 if (soap_body_end_in(soap) 415 || soap_envelope_end_in(soap) 416 || soap_end_recv(soap)) 417 return soap_closesock(soap); 418 if (result && soap_tmp_ns1__setxattr_USCOREobjectResponse->result) 419 *result = *soap_tmp_ns1__setxattr_USCOREobjectResponse->result; 420 return soap_closesock(soap); 421 } 422 423 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__getxattr_USCOREobject(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, char *name, char **result) 424 { struct ns1__getxattr_USCOREobject soap_tmp_ns1__getxattr_USCOREobject; 425 struct ns1__getxattr_USCOREobjectResponse *soap_tmp_ns1__getxattr_USCOREobjectResponse; 426 if (!soap_endpoint) 427 soap_endpoint = "http://localhost:80/nebulous"; 428 if (!soap_action) 429 soap_action = "urn:Nebulous/Server/SOAP#getxattr_object"; 430 soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; 431 soap_tmp_ns1__getxattr_USCOREobject.key = key; 432 soap_tmp_ns1__getxattr_USCOREobject.name = name; 433 soap_begin(soap); 434 soap_serializeheader(soap); 435 soap_serialize_ns1__getxattr_USCOREobject(soap, &soap_tmp_ns1__getxattr_USCOREobject); 436 if (soap_begin_count(soap)) 437 return soap->error; 438 if (soap->mode & SOAP_IO_LENGTH) 439 { if (soap_envelope_begin_out(soap) 440 || soap_putheader(soap) 441 || soap_body_begin_out(soap) 442 || soap_put_ns1__getxattr_USCOREobject(soap, &soap_tmp_ns1__getxattr_USCOREobject, "ns1:getxattr_object", "") 443 || soap_body_end_out(soap) 444 || soap_envelope_end_out(soap)) 445 return soap->error; 446 } 447 if (soap_end_count(soap)) 448 return soap->error; 449 if (soap_connect(soap, soap_endpoint, soap_action) 450 || soap_envelope_begin_out(soap) 451 || soap_putheader(soap) 452 || soap_body_begin_out(soap) 453 || soap_put_ns1__getxattr_USCOREobject(soap, &soap_tmp_ns1__getxattr_USCOREobject, "ns1:getxattr_object", "") 454 || soap_body_end_out(soap) 455 || soap_envelope_end_out(soap) 456 || soap_end_send(soap)) 457 return soap_closesock(soap); 458 if (!result) 459 return soap_closesock(soap); 460 *result = NULL; 461 if (soap_begin_recv(soap) 462 || soap_envelope_begin_in(soap) 463 || soap_recv_header(soap) 464 || soap_body_begin_in(soap)) 465 return soap_closesock(soap); 466 soap_tmp_ns1__getxattr_USCOREobjectResponse = soap_get_ns1__getxattr_USCOREobjectResponse(soap, NULL, "ns1:getxattr_objectResponse", ""); 467 if (soap->error) 468 { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) 469 return soap_recv_fault(soap); 470 return soap_closesock(soap); 471 } 472 if (soap_body_end_in(soap) 473 || soap_envelope_end_in(soap) 474 || soap_end_recv(soap)) 475 return soap_closesock(soap); 476 if (result && soap_tmp_ns1__getxattr_USCOREobjectResponse->result) 477 *result = *soap_tmp_ns1__getxattr_USCOREobjectResponse->result; 478 return soap_closesock(soap); 479 } 480 481 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__listxattr_USCOREobject(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, struct ns1__listxattr_USCOREobjectResponse *_param_1) 482 { struct ns1__listxattr_USCOREobject soap_tmp_ns1__listxattr_USCOREobject; 483 if (!soap_endpoint) 484 soap_endpoint = "http://localhost:80/nebulous"; 485 if (!soap_action) 486 soap_action = "urn:Nebulous/Server/SOAP#listxattr_object"; 487 soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; 488 soap_tmp_ns1__listxattr_USCOREobject.key = key; 489 soap_begin(soap); 490 soap_serializeheader(soap); 491 soap_serialize_ns1__listxattr_USCOREobject(soap, &soap_tmp_ns1__listxattr_USCOREobject); 492 if (soap_begin_count(soap)) 493 return soap->error; 494 if (soap->mode & SOAP_IO_LENGTH) 495 { if (soap_envelope_begin_out(soap) 496 || soap_putheader(soap) 497 || soap_body_begin_out(soap) 498 || soap_put_ns1__listxattr_USCOREobject(soap, &soap_tmp_ns1__listxattr_USCOREobject, "ns1:listxattr_object", "") 499 || soap_body_end_out(soap) 500 || soap_envelope_end_out(soap)) 501 return soap->error; 502 } 503 if (soap_end_count(soap)) 504 return soap->error; 505 if (soap_connect(soap, soap_endpoint, soap_action) 506 || soap_envelope_begin_out(soap) 507 || soap_putheader(soap) 508 || soap_body_begin_out(soap) 509 || soap_put_ns1__listxattr_USCOREobject(soap, &soap_tmp_ns1__listxattr_USCOREobject, "ns1:listxattr_object", "") 510 || soap_body_end_out(soap) 511 || soap_envelope_end_out(soap) 512 || soap_end_send(soap)) 513 return soap_closesock(soap); 514 if (!_param_1) 515 return soap_closesock(soap); 516 soap_default_ns1__listxattr_USCOREobjectResponse(soap, _param_1); 517 if (soap_begin_recv(soap) 518 || soap_envelope_begin_in(soap) 519 || soap_recv_header(soap) 520 || soap_body_begin_in(soap)) 521 return soap_closesock(soap); 522 soap_get_ns1__listxattr_USCOREobjectResponse(soap, _param_1, "ns1:listxattr_objectResponse", ""); 523 if (soap->error) 524 { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) 525 return soap_recv_fault(soap); 526 return soap_closesock(soap); 527 } 528 if (soap_body_end_in(soap) 529 || soap_envelope_end_in(soap) 530 || soap_end_recv(soap)) 531 return soap_closesock(soap); 532 return soap_closesock(soap); 533 } 534 535 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__removexattr_USCOREobject(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, char *name, int *result) 536 { struct ns1__removexattr_USCOREobject soap_tmp_ns1__removexattr_USCOREobject; 537 struct ns1__removexattr_USCOREobjectResponse *soap_tmp_ns1__removexattr_USCOREobjectResponse; 538 if (!soap_endpoint) 539 soap_endpoint = "http://localhost:80/nebulous"; 540 if (!soap_action) 541 soap_action = "urn:Nebulous/Server/SOAP#removexattr_object"; 542 soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; 543 soap_tmp_ns1__removexattr_USCOREobject.key = key; 544 soap_tmp_ns1__removexattr_USCOREobject.name = name; 545 soap_begin(soap); 546 soap_serializeheader(soap); 547 soap_serialize_ns1__removexattr_USCOREobject(soap, &soap_tmp_ns1__removexattr_USCOREobject); 548 if (soap_begin_count(soap)) 549 return soap->error; 550 if (soap->mode & SOAP_IO_LENGTH) 551 { if (soap_envelope_begin_out(soap) 552 || soap_putheader(soap) 553 || soap_body_begin_out(soap) 554 || soap_put_ns1__removexattr_USCOREobject(soap, &soap_tmp_ns1__removexattr_USCOREobject, "ns1:removexattr_object", "") 555 || soap_body_end_out(soap) 556 || soap_envelope_end_out(soap)) 557 return soap->error; 558 } 559 if (soap_end_count(soap)) 560 return soap->error; 561 if (soap_connect(soap, soap_endpoint, soap_action) 562 || soap_envelope_begin_out(soap) 563 || soap_putheader(soap) 564 || soap_body_begin_out(soap) 565 || soap_put_ns1__removexattr_USCOREobject(soap, &soap_tmp_ns1__removexattr_USCOREobject, "ns1:removexattr_object", "") 566 || soap_body_end_out(soap) 567 || soap_envelope_end_out(soap) 568 || soap_end_send(soap)) 569 return soap_closesock(soap); 570 if (!result) 571 return soap_closesock(soap); 572 soap_default_int(soap, result); 573 if (soap_begin_recv(soap) 574 || soap_envelope_begin_in(soap) 575 || soap_recv_header(soap) 576 || soap_body_begin_in(soap)) 577 return soap_closesock(soap); 578 soap_tmp_ns1__removexattr_USCOREobjectResponse = soap_get_ns1__removexattr_USCOREobjectResponse(soap, NULL, "ns1:removexattr_objectResponse", ""); 579 if (soap->error) 580 { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) 581 return soap_recv_fault(soap); 582 return soap_closesock(soap); 583 } 584 if (soap_body_end_in(soap) 585 || soap_envelope_end_in(soap) 586 || soap_end_recv(soap)) 587 return soap_closesock(soap); 588 if (result && soap_tmp_ns1__removexattr_USCOREobjectResponse->result) 589 *result = *soap_tmp_ns1__removexattr_USCOREobjectResponse->result; 590 return soap_closesock(soap); 591 } 592 593 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__find_USCOREobjects(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *pattern, struct ns1__find_USCOREobjectsResponse *_param_2) 364 594 { struct ns1__find_USCOREobjects soap_tmp_ns1__find_USCOREobjects; 365 595 if (!soap_endpoint) … … 394 624 || soap_end_send(soap)) 395 625 return soap_closesock(soap); 396 if (!_param_ 1)397 return soap_closesock(soap); 398 soap_default_ns1__find_USCOREobjectsResponse(soap, _param_ 1);399 if (soap_begin_recv(soap) 400 || soap_envelope_begin_in(soap) 401 || soap_recv_header(soap) 402 || soap_body_begin_in(soap)) 403 return soap_closesock(soap); 404 soap_get_ns1__find_USCOREobjectsResponse(soap, _param_ 1, "ns1:find_objectsResponse", "");405 if (soap->error) 406 { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) 407 return soap_recv_fault(soap); 408 return soap_closesock(soap); 409 } 410 if (soap_body_end_in(soap) 411 || soap_envelope_end_in(soap) 412 || soap_end_recv(soap)) 413 return soap_closesock(soap); 414 return soap_closesock(soap); 415 } 416 417 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__find_USCOREinstances(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, char *volume, struct ns1__find_USCOREinstancesResponse *_param_ 2)626 if (!_param_2) 627 return soap_closesock(soap); 628 soap_default_ns1__find_USCOREobjectsResponse(soap, _param_2); 629 if (soap_begin_recv(soap) 630 || soap_envelope_begin_in(soap) 631 || soap_recv_header(soap) 632 || soap_body_begin_in(soap)) 633 return soap_closesock(soap); 634 soap_get_ns1__find_USCOREobjectsResponse(soap, _param_2, "ns1:find_objectsResponse", ""); 635 if (soap->error) 636 { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) 637 return soap_recv_fault(soap); 638 return soap_closesock(soap); 639 } 640 if (soap_body_end_in(soap) 641 || soap_envelope_end_in(soap) 642 || soap_end_recv(soap)) 643 return soap_closesock(soap); 644 return soap_closesock(soap); 645 } 646 647 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__find_USCOREinstances(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, char *volume, struct ns1__find_USCOREinstancesResponse *_param_3) 418 648 { struct ns1__find_USCOREinstances soap_tmp_ns1__find_USCOREinstances; 419 649 if (!soap_endpoint) … … 449 679 || soap_end_send(soap)) 450 680 return soap_closesock(soap); 451 if (!_param_ 2)452 return soap_closesock(soap); 453 soap_default_ns1__find_USCOREinstancesResponse(soap, _param_ 2);454 if (soap_begin_recv(soap) 455 || soap_envelope_begin_in(soap) 456 || soap_recv_header(soap) 457 || soap_body_begin_in(soap)) 458 return soap_closesock(soap); 459 soap_get_ns1__find_USCOREinstancesResponse(soap, _param_ 2, "ns1:find_instancesResponse", "");681 if (!_param_3) 682 return soap_closesock(soap); 683 soap_default_ns1__find_USCOREinstancesResponse(soap, _param_3); 684 if (soap_begin_recv(soap) 685 || soap_envelope_begin_in(soap) 686 || soap_recv_header(soap) 687 || soap_body_begin_in(soap)) 688 return soap_closesock(soap); 689 soap_get_ns1__find_USCOREinstancesResponse(soap, _param_3, "ns1:find_instancesResponse", ""); 460 690 if (soap->error) 461 691 { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) … … 527 757 } 528 758 529 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_ 3)759 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) 530 760 { struct ns1__stat_USCOREobject soap_tmp_ns1__stat_USCOREobject; 531 761 if (!soap_endpoint) … … 560 790 || soap_end_send(soap)) 561 791 return soap_closesock(soap); 562 if (!_param_ 3)563 return soap_closesock(soap); 564 soap_default_ns1__stat_USCOREobjectResponse(soap, _param_ 3);565 if (soap_begin_recv(soap) 566 || soap_envelope_begin_in(soap) 567 || soap_recv_header(soap) 568 || soap_body_begin_in(soap)) 569 return soap_closesock(soap); 570 soap_get_ns1__stat_USCOREobjectResponse(soap, _param_ 3, "ns1:stat_objectResponse", "");792 if (!_param_4) 793 return soap_closesock(soap); 794 soap_default_ns1__stat_USCOREobjectResponse(soap, _param_4); 795 if (soap_begin_recv(soap) 796 || soap_envelope_begin_in(soap) 797 || soap_recv_header(soap) 798 || soap_body_begin_in(soap)) 799 return soap_closesock(soap); 800 soap_get_ns1__stat_USCOREobjectResponse(soap, _param_4, "ns1:stat_objectResponse", ""); 571 801 if (soap->error) 572 802 { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) -
trunk/Nebulous/nebclient/src/soapH.h
r20110 r20208 42 42 43 43 #ifndef SOAP_TYPE_SOAP_ENV__Fault 44 #define SOAP_TYPE_SOAP_ENV__Fault ( 51)44 #define SOAP_TYPE_SOAP_ENV__Fault (64) 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 ( 50)58 #define SOAP_TYPE_SOAP_ENV__Reason (63) 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 ( 47)72 #define SOAP_TYPE_SOAP_ENV__Detail (60) 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 ( 45)86 #define SOAP_TYPE_SOAP_ENV__Code (58) 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 ( 44)100 #define SOAP_TYPE_SOAP_ENV__Header (57) 101 101 #endif 102 102 SOAP_FMAC3 void SOAP_FMAC4 soap_default_SOAP_ENV__Header(struct soap*, struct SOAP_ENV__Header *); … … 110 110 111 111 #ifndef SOAP_TYPE_ns1__stat_USCOREobject 112 #define SOAP_TYPE_ns1__stat_USCOREobject ( 43)112 #define SOAP_TYPE_ns1__stat_USCOREobject (56) 113 113 #endif 114 114 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__stat_USCOREobject(struct soap*, struct ns1__stat_USCOREobject *); … … 120 120 121 121 #ifndef SOAP_TYPE_ns1__stat_USCOREobjectResponse 122 #define SOAP_TYPE_ns1__stat_USCOREobjectResponse ( 40)122 #define SOAP_TYPE_ns1__stat_USCOREobjectResponse (53) 123 123 #endif 124 124 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__stat_USCOREobjectResponse(struct soap*, struct ns1__stat_USCOREobjectResponse *); … … 130 130 131 131 #ifndef SOAP_TYPE_ns1__delete_USCOREinstance 132 #define SOAP_TYPE_ns1__delete_USCOREinstance ( 39)132 #define SOAP_TYPE_ns1__delete_USCOREinstance (52) 133 133 #endif 134 134 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__delete_USCOREinstance(struct soap*, struct ns1__delete_USCOREinstance *); … … 140 140 141 141 #ifndef SOAP_TYPE_ns1__delete_USCOREinstanceResponse 142 #define SOAP_TYPE_ns1__delete_USCOREinstanceResponse ( 38)142 #define SOAP_TYPE_ns1__delete_USCOREinstanceResponse (51) 143 143 #endif 144 144 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__delete_USCOREinstanceResponse(struct soap*, struct ns1__delete_USCOREinstanceResponse *); … … 150 150 151 151 #ifndef SOAP_TYPE_ns1__find_USCOREinstances 152 #define SOAP_TYPE_ns1__find_USCOREinstances ( 36)152 #define SOAP_TYPE_ns1__find_USCOREinstances (49) 153 153 #endif 154 154 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__find_USCOREinstances(struct soap*, struct ns1__find_USCOREinstances *); … … 160 160 161 161 #ifndef SOAP_TYPE_ns1__find_USCOREinstancesResponse 162 #define SOAP_TYPE_ns1__find_USCOREinstancesResponse ( 33)162 #define SOAP_TYPE_ns1__find_USCOREinstancesResponse (46) 163 163 #endif 164 164 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__find_USCOREinstancesResponse(struct soap*, struct ns1__find_USCOREinstancesResponse *); … … 170 170 171 171 #ifndef SOAP_TYPE_ns1__find_USCOREobjects 172 #define SOAP_TYPE_ns1__find_USCOREobjects ( 32)172 #define SOAP_TYPE_ns1__find_USCOREobjects (45) 173 173 #endif 174 174 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__find_USCOREobjects(struct soap*, struct ns1__find_USCOREobjects *); … … 180 180 181 181 #ifndef SOAP_TYPE_ns1__find_USCOREobjectsResponse 182 #define SOAP_TYPE_ns1__find_USCOREobjectsResponse ( 28)182 #define SOAP_TYPE_ns1__find_USCOREobjectsResponse (42) 183 183 #endif 184 184 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__find_USCOREobjectsResponse(struct soap*, struct ns1__find_USCOREobjectsResponse *); … … 189 189 SOAP_FMAC3 struct ns1__find_USCOREobjectsResponse * SOAP_FMAC4 soap_in_ns1__find_USCOREobjectsResponse(struct soap*, const char*, struct ns1__find_USCOREobjectsResponse *, const char*); 190 190 191 #ifndef SOAP_TYPE_ns1__removexattr_USCOREobject 192 #define SOAP_TYPE_ns1__removexattr_USCOREobject (41) 193 #endif 194 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__removexattr_USCOREobject(struct soap*, struct ns1__removexattr_USCOREobject *); 195 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__removexattr_USCOREobject(struct soap*, const struct ns1__removexattr_USCOREobject *); 196 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__removexattr_USCOREobject(struct soap*, const struct ns1__removexattr_USCOREobject *, const char*, const char*); 197 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__removexattr_USCOREobject(struct soap*, const char*, int, const struct ns1__removexattr_USCOREobject *, const char*); 198 SOAP_FMAC3 struct ns1__removexattr_USCOREobject * SOAP_FMAC4 soap_get_ns1__removexattr_USCOREobject(struct soap*, struct ns1__removexattr_USCOREobject *, const char*, const char*); 199 SOAP_FMAC3 struct ns1__removexattr_USCOREobject * SOAP_FMAC4 soap_in_ns1__removexattr_USCOREobject(struct soap*, const char*, struct ns1__removexattr_USCOREobject *, const char*); 200 201 #ifndef SOAP_TYPE_ns1__removexattr_USCOREobjectResponse 202 #define SOAP_TYPE_ns1__removexattr_USCOREobjectResponse (40) 203 #endif 204 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__removexattr_USCOREobjectResponse(struct soap*, struct ns1__removexattr_USCOREobjectResponse *); 205 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__removexattr_USCOREobjectResponse(struct soap*, const struct ns1__removexattr_USCOREobjectResponse *); 206 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__removexattr_USCOREobjectResponse(struct soap*, const struct ns1__removexattr_USCOREobjectResponse *, const char*, const char*); 207 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__removexattr_USCOREobjectResponse(struct soap*, const char*, int, const struct ns1__removexattr_USCOREobjectResponse *, const char*); 208 SOAP_FMAC3 struct ns1__removexattr_USCOREobjectResponse * SOAP_FMAC4 soap_get_ns1__removexattr_USCOREobjectResponse(struct soap*, struct ns1__removexattr_USCOREobjectResponse *, const char*, const char*); 209 SOAP_FMAC3 struct ns1__removexattr_USCOREobjectResponse * SOAP_FMAC4 soap_in_ns1__removexattr_USCOREobjectResponse(struct soap*, const char*, struct ns1__removexattr_USCOREobjectResponse *, const char*); 210 211 #ifndef SOAP_TYPE_ns1__listxattr_USCOREobject 212 #define SOAP_TYPE_ns1__listxattr_USCOREobject (38) 213 #endif 214 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__listxattr_USCOREobject(struct soap*, struct ns1__listxattr_USCOREobject *); 215 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__listxattr_USCOREobject(struct soap*, const struct ns1__listxattr_USCOREobject *); 216 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__listxattr_USCOREobject(struct soap*, const struct ns1__listxattr_USCOREobject *, const char*, const char*); 217 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__listxattr_USCOREobject(struct soap*, const char*, int, const struct ns1__listxattr_USCOREobject *, const char*); 218 SOAP_FMAC3 struct ns1__listxattr_USCOREobject * SOAP_FMAC4 soap_get_ns1__listxattr_USCOREobject(struct soap*, struct ns1__listxattr_USCOREobject *, const char*, const char*); 219 SOAP_FMAC3 struct ns1__listxattr_USCOREobject * SOAP_FMAC4 soap_in_ns1__listxattr_USCOREobject(struct soap*, const char*, struct ns1__listxattr_USCOREobject *, const char*); 220 221 #ifndef SOAP_TYPE_ns1__listxattr_USCOREobjectResponse 222 #define SOAP_TYPE_ns1__listxattr_USCOREobjectResponse (34) 223 #endif 224 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__listxattr_USCOREobjectResponse(struct soap*, struct ns1__listxattr_USCOREobjectResponse *); 225 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__listxattr_USCOREobjectResponse(struct soap*, const struct ns1__listxattr_USCOREobjectResponse *); 226 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__listxattr_USCOREobjectResponse(struct soap*, const struct ns1__listxattr_USCOREobjectResponse *, const char*, const char*); 227 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__listxattr_USCOREobjectResponse(struct soap*, const char*, int, const struct ns1__listxattr_USCOREobjectResponse *, const char*); 228 SOAP_FMAC3 struct ns1__listxattr_USCOREobjectResponse * SOAP_FMAC4 soap_get_ns1__listxattr_USCOREobjectResponse(struct soap*, struct ns1__listxattr_USCOREobjectResponse *, const char*, const char*); 229 SOAP_FMAC3 struct ns1__listxattr_USCOREobjectResponse * SOAP_FMAC4 soap_in_ns1__listxattr_USCOREobjectResponse(struct soap*, const char*, struct ns1__listxattr_USCOREobjectResponse *, const char*); 230 231 #ifndef SOAP_TYPE_ns1__getxattr_USCOREobject 232 #define SOAP_TYPE_ns1__getxattr_USCOREobject (33) 233 #endif 234 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__getxattr_USCOREobject(struct soap*, struct ns1__getxattr_USCOREobject *); 235 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__getxattr_USCOREobject(struct soap*, const struct ns1__getxattr_USCOREobject *); 236 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__getxattr_USCOREobject(struct soap*, const struct ns1__getxattr_USCOREobject *, const char*, const char*); 237 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__getxattr_USCOREobject(struct soap*, const char*, int, const struct ns1__getxattr_USCOREobject *, const char*); 238 SOAP_FMAC3 struct ns1__getxattr_USCOREobject * SOAP_FMAC4 soap_get_ns1__getxattr_USCOREobject(struct soap*, struct ns1__getxattr_USCOREobject *, const char*, const char*); 239 SOAP_FMAC3 struct ns1__getxattr_USCOREobject * SOAP_FMAC4 soap_in_ns1__getxattr_USCOREobject(struct soap*, const char*, struct ns1__getxattr_USCOREobject *, const char*); 240 241 #ifndef SOAP_TYPE_ns1__getxattr_USCOREobjectResponse 242 #define SOAP_TYPE_ns1__getxattr_USCOREobjectResponse (32) 243 #endif 244 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__getxattr_USCOREobjectResponse(struct soap*, struct ns1__getxattr_USCOREobjectResponse *); 245 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__getxattr_USCOREobjectResponse(struct soap*, const struct ns1__getxattr_USCOREobjectResponse *); 246 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__getxattr_USCOREobjectResponse(struct soap*, const struct ns1__getxattr_USCOREobjectResponse *, const char*, const char*); 247 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__getxattr_USCOREobjectResponse(struct soap*, const char*, int, const struct ns1__getxattr_USCOREobjectResponse *, const char*); 248 SOAP_FMAC3 struct ns1__getxattr_USCOREobjectResponse * SOAP_FMAC4 soap_get_ns1__getxattr_USCOREobjectResponse(struct soap*, struct ns1__getxattr_USCOREobjectResponse *, const char*, const char*); 249 SOAP_FMAC3 struct ns1__getxattr_USCOREobjectResponse * SOAP_FMAC4 soap_in_ns1__getxattr_USCOREobjectResponse(struct soap*, const char*, struct ns1__getxattr_USCOREobjectResponse *, const char*); 250 251 #ifndef SOAP_TYPE_ns1__setxattr_USCOREobject 252 #define SOAP_TYPE_ns1__setxattr_USCOREobject (30) 253 #endif 254 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__setxattr_USCOREobject(struct soap*, struct ns1__setxattr_USCOREobject *); 255 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__setxattr_USCOREobject(struct soap*, const struct ns1__setxattr_USCOREobject *); 256 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__setxattr_USCOREobject(struct soap*, const struct ns1__setxattr_USCOREobject *, const char*, const char*); 257 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__setxattr_USCOREobject(struct soap*, const char*, int, const struct ns1__setxattr_USCOREobject *, const char*); 258 SOAP_FMAC3 struct ns1__setxattr_USCOREobject * SOAP_FMAC4 soap_get_ns1__setxattr_USCOREobject(struct soap*, struct ns1__setxattr_USCOREobject *, const char*, const char*); 259 SOAP_FMAC3 struct ns1__setxattr_USCOREobject * SOAP_FMAC4 soap_in_ns1__setxattr_USCOREobject(struct soap*, const char*, struct ns1__setxattr_USCOREobject *, const char*); 260 261 #ifndef SOAP_TYPE_ns1__setxattr_USCOREobjectResponse 262 #define SOAP_TYPE_ns1__setxattr_USCOREobjectResponse (29) 263 #endif 264 SOAP_FMAC3 void SOAP_FMAC4 soap_default_ns1__setxattr_USCOREobjectResponse(struct soap*, struct ns1__setxattr_USCOREobjectResponse *); 265 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_ns1__setxattr_USCOREobjectResponse(struct soap*, const struct ns1__setxattr_USCOREobjectResponse *); 266 SOAP_FMAC3 int SOAP_FMAC4 soap_put_ns1__setxattr_USCOREobjectResponse(struct soap*, const struct ns1__setxattr_USCOREobjectResponse *, const char*, const char*); 267 SOAP_FMAC3 int SOAP_FMAC4 soap_out_ns1__setxattr_USCOREobjectResponse(struct soap*, const char*, int, const struct ns1__setxattr_USCOREobjectResponse *, const char*); 268 SOAP_FMAC3 struct ns1__setxattr_USCOREobjectResponse * SOAP_FMAC4 soap_get_ns1__setxattr_USCOREobjectResponse(struct soap*, struct ns1__setxattr_USCOREobjectResponse *, const char*, const char*); 269 SOAP_FMAC3 struct ns1__setxattr_USCOREobjectResponse * SOAP_FMAC4 soap_in_ns1__setxattr_USCOREobjectResponse(struct soap*, const char*, struct ns1__setxattr_USCOREobjectResponse *, const char*); 270 191 271 #ifndef SOAP_TYPE_ns1__unlock_USCOREobject 192 272 #define SOAP_TYPE_ns1__unlock_USCOREobject (27) … … 322 402 323 403 #ifndef SOAP_TYPE_PointerToSOAP_ENV__Reason 324 #define SOAP_TYPE_PointerToSOAP_ENV__Reason ( 53)404 #define SOAP_TYPE_PointerToSOAP_ENV__Reason (66) 325 405 #endif 326 406 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Reason(struct soap*, struct SOAP_ENV__Reason *const*); … … 335 415 336 416 #ifndef SOAP_TYPE_PointerToSOAP_ENV__Detail 337 #define SOAP_TYPE_PointerToSOAP_ENV__Detail ( 52)417 #define SOAP_TYPE_PointerToSOAP_ENV__Detail (65) 338 418 #endif 339 419 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Detail(struct soap*, struct SOAP_ENV__Detail *const*); … … 348 428 349 429 #ifndef SOAP_TYPE_PointerToSOAP_ENV__Code 350 #define SOAP_TYPE_PointerToSOAP_ENV__Code ( 46)430 #define SOAP_TYPE_PointerToSOAP_ENV__Code (59) 351 431 #endif 352 432 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToSOAP_ENV__Code(struct soap*, struct SOAP_ENV__Code *const*); … … 359 439 360 440 #ifndef SOAP_TYPE_PointerTons1__stat_USCOREobjectResponse 361 #define SOAP_TYPE_PointerTons1__stat_USCOREobjectResponse ( 41)441 #define SOAP_TYPE_PointerTons1__stat_USCOREobjectResponse (54) 362 442 #endif 363 443 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__stat_USCOREobjectResponse(struct soap*, struct ns1__stat_USCOREobjectResponse *const*); … … 368 448 369 449 #ifndef SOAP_TYPE_PointerTons1__find_USCOREinstancesResponse 370 #define SOAP_TYPE_PointerTons1__find_USCOREinstancesResponse ( 34)450 #define SOAP_TYPE_PointerTons1__find_USCOREinstancesResponse (47) 371 451 #endif 372 452 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__find_USCOREinstancesResponse(struct soap*, struct ns1__find_USCOREinstancesResponse *const*); … … 377 457 378 458 #ifndef SOAP_TYPE_PointerTons1__find_USCOREobjectsResponse 379 #define SOAP_TYPE_PointerTons1__find_USCOREobjectsResponse ( 30)459 #define SOAP_TYPE_PointerTons1__find_USCOREobjectsResponse (43) 380 460 #endif 381 461 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__find_USCOREobjectsResponse(struct soap*, struct ns1__find_USCOREobjectsResponse *const*); … … 385 465 SOAP_FMAC3 struct ns1__find_USCOREobjectsResponse ** SOAP_FMAC4 soap_in_PointerTons1__find_USCOREobjectsResponse(struct soap*, const char*, struct ns1__find_USCOREobjectsResponse **, const char*); 386 466 467 #ifndef SOAP_TYPE_PointerTons1__listxattr_USCOREobjectResponse 468 #define SOAP_TYPE_PointerTons1__listxattr_USCOREobjectResponse (36) 469 #endif 470 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerTons1__listxattr_USCOREobjectResponse(struct soap*, struct ns1__listxattr_USCOREobjectResponse *const*); 471 SOAP_FMAC3 int SOAP_FMAC4 soap_put_PointerTons1__listxattr_USCOREobjectResponse(struct soap*, struct ns1__listxattr_USCOREobjectResponse *const*, const char*, const char*); 472 SOAP_FMAC3 int SOAP_FMAC4 soap_out_PointerTons1__listxattr_USCOREobjectResponse(struct soap*, const char *, int, struct ns1__listxattr_USCOREobjectResponse *const*, const char *); 473 SOAP_FMAC3 struct ns1__listxattr_USCOREobjectResponse ** SOAP_FMAC4 soap_get_PointerTons1__listxattr_USCOREobjectResponse(struct soap*, struct ns1__listxattr_USCOREobjectResponse **, const char*, const char*); 474 SOAP_FMAC3 struct ns1__listxattr_USCOREobjectResponse ** SOAP_FMAC4 soap_in_PointerTons1__listxattr_USCOREobjectResponse(struct soap*, const char*, struct ns1__listxattr_USCOREobjectResponse **, const char*); 475 387 476 #ifndef SOAP_TYPE_PointerToArrayOfString 388 #define SOAP_TYPE_PointerToArrayOfString ( 29)477 #define SOAP_TYPE_PointerToArrayOfString (35) 389 478 #endif 390 479 SOAP_FMAC3 void SOAP_FMAC4 soap_serialize_PointerToArrayOfString(struct soap*, struct ArrayOfString *const*); -
trunk/Nebulous/nebclient/src/soapServer.c
r20110 r20208 10 10 #endif 11 11 12 SOAP_SOURCE_STAMP("@(#) soapServer.c ver 2.7.11 2008-10-1 3 22:06:55GMT")12 SOAP_SOURCE_STAMP("@(#) soapServer.c ver 2.7.11 2008-10-16 23:26:38 GMT") 13 13 14 14 … … 89 89 if (!soap_match_tag(soap, soap->tag, "ns1:unlock_object")) 90 90 return soap_serve_ns1__unlock_USCOREobject(soap); 91 if (!soap_match_tag(soap, soap->tag, "ns1:setxattr_object")) 92 return soap_serve_ns1__setxattr_USCOREobject(soap); 93 if (!soap_match_tag(soap, soap->tag, "ns1:getxattr_object")) 94 return soap_serve_ns1__getxattr_USCOREobject(soap); 95 if (!soap_match_tag(soap, soap->tag, "ns1:listxattr_object")) 96 return soap_serve_ns1__listxattr_USCOREobject(soap); 97 if (!soap_match_tag(soap, soap->tag, "ns1:removexattr_object")) 98 return soap_serve_ns1__removexattr_USCOREobject(soap); 91 99 if (!soap_match_tag(soap, soap->tag, "ns1:find_objects")) 92 100 return soap_serve_ns1__find_USCOREobjects(soap); … … 365 373 } 366 374 375 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__setxattr_USCOREobject(struct soap *soap) 376 { struct ns1__setxattr_USCOREobject soap_tmp_ns1__setxattr_USCOREobject; 377 struct ns1__setxattr_USCOREobjectResponse soap_tmp_ns1__setxattr_USCOREobjectResponse; 378 int soap_tmp_int; 379 soap_default_ns1__setxattr_USCOREobjectResponse(soap, &soap_tmp_ns1__setxattr_USCOREobjectResponse); 380 soap_default_int(soap, &soap_tmp_int); 381 soap_tmp_ns1__setxattr_USCOREobjectResponse.result = &soap_tmp_int; 382 soap_default_ns1__setxattr_USCOREobject(soap, &soap_tmp_ns1__setxattr_USCOREobject); 383 soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; 384 if (!soap_get_ns1__setxattr_USCOREobject(soap, &soap_tmp_ns1__setxattr_USCOREobject, "ns1:setxattr_object", NULL)) 385 return soap->error; 386 if (soap_body_end_in(soap) 387 || soap_envelope_end_in(soap) 388 || soap_end_recv(soap)) 389 return soap->error; 390 soap->error = ns1__setxattr_USCOREobject(soap, soap_tmp_ns1__setxattr_USCOREobject.key, soap_tmp_ns1__setxattr_USCOREobject.name, soap_tmp_ns1__setxattr_USCOREobject.value, soap_tmp_ns1__setxattr_USCOREobject.flags, &soap_tmp_int); 391 if (soap->error) 392 return soap->error; 393 soap_serializeheader(soap); 394 soap_serialize_ns1__setxattr_USCOREobjectResponse(soap, &soap_tmp_ns1__setxattr_USCOREobjectResponse); 395 if (soap_begin_count(soap)) 396 return soap->error; 397 if (soap->mode & SOAP_IO_LENGTH) 398 { if (soap_envelope_begin_out(soap) 399 || soap_putheader(soap) 400 || soap_body_begin_out(soap) 401 || soap_put_ns1__setxattr_USCOREobjectResponse(soap, &soap_tmp_ns1__setxattr_USCOREobjectResponse, "ns1:setxattr_objectResponse", "") 402 || soap_body_end_out(soap) 403 || soap_envelope_end_out(soap)) 404 return soap->error; 405 }; 406 if (soap_end_count(soap) 407 || soap_response(soap, SOAP_OK) 408 || soap_envelope_begin_out(soap) 409 || soap_putheader(soap) 410 || soap_body_begin_out(soap) 411 || soap_put_ns1__setxattr_USCOREobjectResponse(soap, &soap_tmp_ns1__setxattr_USCOREobjectResponse, "ns1:setxattr_objectResponse", "") 412 || soap_body_end_out(soap) 413 || soap_envelope_end_out(soap) 414 || soap_end_send(soap)) 415 return soap->error; 416 return soap_closesock(soap); 417 } 418 419 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__getxattr_USCOREobject(struct soap *soap) 420 { struct ns1__getxattr_USCOREobject soap_tmp_ns1__getxattr_USCOREobject; 421 struct ns1__getxattr_USCOREobjectResponse soap_tmp_ns1__getxattr_USCOREobjectResponse; 422 char * soap_tmp_string; 423 soap_default_ns1__getxattr_USCOREobjectResponse(soap, &soap_tmp_ns1__getxattr_USCOREobjectResponse); 424 soap_tmp_string = NULL; 425 soap_tmp_ns1__getxattr_USCOREobjectResponse.result = &soap_tmp_string; 426 soap_default_ns1__getxattr_USCOREobject(soap, &soap_tmp_ns1__getxattr_USCOREobject); 427 soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; 428 if (!soap_get_ns1__getxattr_USCOREobject(soap, &soap_tmp_ns1__getxattr_USCOREobject, "ns1:getxattr_object", NULL)) 429 return soap->error; 430 if (soap_body_end_in(soap) 431 || soap_envelope_end_in(soap) 432 || soap_end_recv(soap)) 433 return soap->error; 434 soap->error = ns1__getxattr_USCOREobject(soap, soap_tmp_ns1__getxattr_USCOREobject.key, soap_tmp_ns1__getxattr_USCOREobject.name, &soap_tmp_string); 435 if (soap->error) 436 return soap->error; 437 soap_serializeheader(soap); 438 soap_serialize_ns1__getxattr_USCOREobjectResponse(soap, &soap_tmp_ns1__getxattr_USCOREobjectResponse); 439 if (soap_begin_count(soap)) 440 return soap->error; 441 if (soap->mode & SOAP_IO_LENGTH) 442 { if (soap_envelope_begin_out(soap) 443 || soap_putheader(soap) 444 || soap_body_begin_out(soap) 445 || soap_put_ns1__getxattr_USCOREobjectResponse(soap, &soap_tmp_ns1__getxattr_USCOREobjectResponse, "ns1:getxattr_objectResponse", "") 446 || soap_body_end_out(soap) 447 || soap_envelope_end_out(soap)) 448 return soap->error; 449 }; 450 if (soap_end_count(soap) 451 || soap_response(soap, SOAP_OK) 452 || soap_envelope_begin_out(soap) 453 || soap_putheader(soap) 454 || soap_body_begin_out(soap) 455 || soap_put_ns1__getxattr_USCOREobjectResponse(soap, &soap_tmp_ns1__getxattr_USCOREobjectResponse, "ns1:getxattr_objectResponse", "") 456 || soap_body_end_out(soap) 457 || soap_envelope_end_out(soap) 458 || soap_end_send(soap)) 459 return soap->error; 460 return soap_closesock(soap); 461 } 462 463 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__listxattr_USCOREobject(struct soap *soap) 464 { struct ns1__listxattr_USCOREobject soap_tmp_ns1__listxattr_USCOREobject; 465 struct ns1__listxattr_USCOREobjectResponse _param_1; 466 soap_default_ns1__listxattr_USCOREobjectResponse(soap, &_param_1); 467 soap_default_ns1__listxattr_USCOREobject(soap, &soap_tmp_ns1__listxattr_USCOREobject); 468 soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; 469 if (!soap_get_ns1__listxattr_USCOREobject(soap, &soap_tmp_ns1__listxattr_USCOREobject, "ns1:listxattr_object", NULL)) 470 return soap->error; 471 if (soap_body_end_in(soap) 472 || soap_envelope_end_in(soap) 473 || soap_end_recv(soap)) 474 return soap->error; 475 soap->error = ns1__listxattr_USCOREobject(soap, soap_tmp_ns1__listxattr_USCOREobject.key, &_param_1); 476 if (soap->error) 477 return soap->error; 478 soap_serializeheader(soap); 479 soap_serialize_ns1__listxattr_USCOREobjectResponse(soap, &_param_1); 480 if (soap_begin_count(soap)) 481 return soap->error; 482 if (soap->mode & SOAP_IO_LENGTH) 483 { if (soap_envelope_begin_out(soap) 484 || soap_putheader(soap) 485 || soap_body_begin_out(soap) 486 || soap_put_ns1__listxattr_USCOREobjectResponse(soap, &_param_1, "ns1:listxattr_objectResponse", "") 487 || soap_body_end_out(soap) 488 || soap_envelope_end_out(soap)) 489 return soap->error; 490 }; 491 if (soap_end_count(soap) 492 || soap_response(soap, SOAP_OK) 493 || soap_envelope_begin_out(soap) 494 || soap_putheader(soap) 495 || soap_body_begin_out(soap) 496 || soap_put_ns1__listxattr_USCOREobjectResponse(soap, &_param_1, "ns1:listxattr_objectResponse", "") 497 || soap_body_end_out(soap) 498 || soap_envelope_end_out(soap) 499 || soap_end_send(soap)) 500 return soap->error; 501 return soap_closesock(soap); 502 } 503 504 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__removexattr_USCOREobject(struct soap *soap) 505 { struct ns1__removexattr_USCOREobject soap_tmp_ns1__removexattr_USCOREobject; 506 struct ns1__removexattr_USCOREobjectResponse soap_tmp_ns1__removexattr_USCOREobjectResponse; 507 int soap_tmp_int; 508 soap_default_ns1__removexattr_USCOREobjectResponse(soap, &soap_tmp_ns1__removexattr_USCOREobjectResponse); 509 soap_default_int(soap, &soap_tmp_int); 510 soap_tmp_ns1__removexattr_USCOREobjectResponse.result = &soap_tmp_int; 511 soap_default_ns1__removexattr_USCOREobject(soap, &soap_tmp_ns1__removexattr_USCOREobject); 512 soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; 513 if (!soap_get_ns1__removexattr_USCOREobject(soap, &soap_tmp_ns1__removexattr_USCOREobject, "ns1:removexattr_object", NULL)) 514 return soap->error; 515 if (soap_body_end_in(soap) 516 || soap_envelope_end_in(soap) 517 || soap_end_recv(soap)) 518 return soap->error; 519 soap->error = ns1__removexattr_USCOREobject(soap, soap_tmp_ns1__removexattr_USCOREobject.key, soap_tmp_ns1__removexattr_USCOREobject.name, &soap_tmp_int); 520 if (soap->error) 521 return soap->error; 522 soap_serializeheader(soap); 523 soap_serialize_ns1__removexattr_USCOREobjectResponse(soap, &soap_tmp_ns1__removexattr_USCOREobjectResponse); 524 if (soap_begin_count(soap)) 525 return soap->error; 526 if (soap->mode & SOAP_IO_LENGTH) 527 { if (soap_envelope_begin_out(soap) 528 || soap_putheader(soap) 529 || soap_body_begin_out(soap) 530 || soap_put_ns1__removexattr_USCOREobjectResponse(soap, &soap_tmp_ns1__removexattr_USCOREobjectResponse, "ns1:removexattr_objectResponse", "") 531 || soap_body_end_out(soap) 532 || soap_envelope_end_out(soap)) 533 return soap->error; 534 }; 535 if (soap_end_count(soap) 536 || soap_response(soap, SOAP_OK) 537 || soap_envelope_begin_out(soap) 538 || soap_putheader(soap) 539 || soap_body_begin_out(soap) 540 || soap_put_ns1__removexattr_USCOREobjectResponse(soap, &soap_tmp_ns1__removexattr_USCOREobjectResponse, "ns1:removexattr_objectResponse", "") 541 || soap_body_end_out(soap) 542 || soap_envelope_end_out(soap) 543 || soap_end_send(soap)) 544 return soap->error; 545 return soap_closesock(soap); 546 } 547 367 548 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__find_USCOREobjects(struct soap *soap) 368 549 { struct ns1__find_USCOREobjects soap_tmp_ns1__find_USCOREobjects; 369 struct ns1__find_USCOREobjectsResponse _param_ 1;370 soap_default_ns1__find_USCOREobjectsResponse(soap, &_param_ 1);550 struct ns1__find_USCOREobjectsResponse _param_2; 551 soap_default_ns1__find_USCOREobjectsResponse(soap, &_param_2); 371 552 soap_default_ns1__find_USCOREobjects(soap, &soap_tmp_ns1__find_USCOREobjects); 372 553 soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; … … 377 558 || soap_end_recv(soap)) 378 559 return soap->error; 379 soap->error = ns1__find_USCOREobjects(soap, soap_tmp_ns1__find_USCOREobjects.pattern, &_param_ 1);380 if (soap->error) 381 return soap->error; 382 soap_serializeheader(soap); 383 soap_serialize_ns1__find_USCOREobjectsResponse(soap, &_param_ 1);384 if (soap_begin_count(soap)) 385 return soap->error; 386 if (soap->mode & SOAP_IO_LENGTH) 387 { if (soap_envelope_begin_out(soap) 388 || soap_putheader(soap) 389 || soap_body_begin_out(soap) 390 || soap_put_ns1__find_USCOREobjectsResponse(soap, &_param_ 1, "ns1:find_objectsResponse", "")391 || soap_body_end_out(soap) 392 || soap_envelope_end_out(soap)) 393 return soap->error; 394 }; 395 if (soap_end_count(soap) 396 || soap_response(soap, SOAP_OK) 397 || soap_envelope_begin_out(soap) 398 || soap_putheader(soap) 399 || soap_body_begin_out(soap) 400 || soap_put_ns1__find_USCOREobjectsResponse(soap, &_param_ 1, "ns1:find_objectsResponse", "")560 soap->error = ns1__find_USCOREobjects(soap, soap_tmp_ns1__find_USCOREobjects.pattern, &_param_2); 561 if (soap->error) 562 return soap->error; 563 soap_serializeheader(soap); 564 soap_serialize_ns1__find_USCOREobjectsResponse(soap, &_param_2); 565 if (soap_begin_count(soap)) 566 return soap->error; 567 if (soap->mode & SOAP_IO_LENGTH) 568 { if (soap_envelope_begin_out(soap) 569 || soap_putheader(soap) 570 || soap_body_begin_out(soap) 571 || soap_put_ns1__find_USCOREobjectsResponse(soap, &_param_2, "ns1:find_objectsResponse", "") 572 || soap_body_end_out(soap) 573 || soap_envelope_end_out(soap)) 574 return soap->error; 575 }; 576 if (soap_end_count(soap) 577 || soap_response(soap, SOAP_OK) 578 || soap_envelope_begin_out(soap) 579 || soap_putheader(soap) 580 || soap_body_begin_out(soap) 581 || soap_put_ns1__find_USCOREobjectsResponse(soap, &_param_2, "ns1:find_objectsResponse", "") 401 582 || soap_body_end_out(soap) 402 583 || soap_envelope_end_out(soap) … … 408 589 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__find_USCOREinstances(struct soap *soap) 409 590 { struct ns1__find_USCOREinstances soap_tmp_ns1__find_USCOREinstances; 410 struct ns1__find_USCOREinstancesResponse _param_ 2;411 soap_default_ns1__find_USCOREinstancesResponse(soap, &_param_ 2);591 struct ns1__find_USCOREinstancesResponse _param_3; 592 soap_default_ns1__find_USCOREinstancesResponse(soap, &_param_3); 412 593 soap_default_ns1__find_USCOREinstances(soap, &soap_tmp_ns1__find_USCOREinstances); 413 594 soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; … … 418 599 || soap_end_recv(soap)) 419 600 return soap->error; 420 soap->error = ns1__find_USCOREinstances(soap, soap_tmp_ns1__find_USCOREinstances.key, soap_tmp_ns1__find_USCOREinstances.volume, &_param_ 2);421 if (soap->error) 422 return soap->error; 423 soap_serializeheader(soap); 424 soap_serialize_ns1__find_USCOREinstancesResponse(soap, &_param_ 2);425 if (soap_begin_count(soap)) 426 return soap->error; 427 if (soap->mode & SOAP_IO_LENGTH) 428 { if (soap_envelope_begin_out(soap) 429 || soap_putheader(soap) 430 || soap_body_begin_out(soap) 431 || soap_put_ns1__find_USCOREinstancesResponse(soap, &_param_ 2, "ns1:find_instancesResponse", "")432 || soap_body_end_out(soap) 433 || soap_envelope_end_out(soap)) 434 return soap->error; 435 }; 436 if (soap_end_count(soap) 437 || soap_response(soap, SOAP_OK) 438 || soap_envelope_begin_out(soap) 439 || soap_putheader(soap) 440 || soap_body_begin_out(soap) 441 || soap_put_ns1__find_USCOREinstancesResponse(soap, &_param_ 2, "ns1:find_instancesResponse", "")601 soap->error = ns1__find_USCOREinstances(soap, soap_tmp_ns1__find_USCOREinstances.key, soap_tmp_ns1__find_USCOREinstances.volume, &_param_3); 602 if (soap->error) 603 return soap->error; 604 soap_serializeheader(soap); 605 soap_serialize_ns1__find_USCOREinstancesResponse(soap, &_param_3); 606 if (soap_begin_count(soap)) 607 return soap->error; 608 if (soap->mode & SOAP_IO_LENGTH) 609 { if (soap_envelope_begin_out(soap) 610 || soap_putheader(soap) 611 || soap_body_begin_out(soap) 612 || soap_put_ns1__find_USCOREinstancesResponse(soap, &_param_3, "ns1:find_instancesResponse", "") 613 || soap_body_end_out(soap) 614 || soap_envelope_end_out(soap)) 615 return soap->error; 616 }; 617 if (soap_end_count(soap) 618 || soap_response(soap, SOAP_OK) 619 || soap_envelope_begin_out(soap) 620 || soap_putheader(soap) 621 || soap_body_begin_out(soap) 622 || soap_put_ns1__find_USCOREinstancesResponse(soap, &_param_3, "ns1:find_instancesResponse", "") 442 623 || soap_body_end_out(soap) 443 624 || soap_envelope_end_out(soap) … … 493 674 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__stat_USCOREobject(struct soap *soap) 494 675 { struct ns1__stat_USCOREobject soap_tmp_ns1__stat_USCOREobject; 495 struct ns1__stat_USCOREobjectResponse _param_ 3;496 soap_default_ns1__stat_USCOREobjectResponse(soap, &_param_ 3);676 struct ns1__stat_USCOREobjectResponse _param_4; 677 soap_default_ns1__stat_USCOREobjectResponse(soap, &_param_4); 497 678 soap_default_ns1__stat_USCOREobject(soap, &soap_tmp_ns1__stat_USCOREobject); 498 679 soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; … … 503 684 || soap_end_recv(soap)) 504 685 return soap->error; 505 soap->error = ns1__stat_USCOREobject(soap, soap_tmp_ns1__stat_USCOREobject.key, &_param_ 3);506 if (soap->error) 507 return soap->error; 508 soap_serializeheader(soap); 509 soap_serialize_ns1__stat_USCOREobjectResponse(soap, &_param_ 3);510 if (soap_begin_count(soap)) 511 return soap->error; 512 if (soap->mode & SOAP_IO_LENGTH) 513 { if (soap_envelope_begin_out(soap) 514 || soap_putheader(soap) 515 || soap_body_begin_out(soap) 516 || soap_put_ns1__stat_USCOREobjectResponse(soap, &_param_ 3, "ns1:stat_objectResponse", "")517 || soap_body_end_out(soap) 518 || soap_envelope_end_out(soap)) 519 return soap->error; 520 }; 521 if (soap_end_count(soap) 522 || soap_response(soap, SOAP_OK) 523 || soap_envelope_begin_out(soap) 524 || soap_putheader(soap) 525 || soap_body_begin_out(soap) 526 || soap_put_ns1__stat_USCOREobjectResponse(soap, &_param_ 3, "ns1:stat_objectResponse", "")686 soap->error = ns1__stat_USCOREobject(soap, soap_tmp_ns1__stat_USCOREobject.key, &_param_4); 687 if (soap->error) 688 return soap->error; 689 soap_serializeheader(soap); 690 soap_serialize_ns1__stat_USCOREobjectResponse(soap, &_param_4); 691 if (soap_begin_count(soap)) 692 return soap->error; 693 if (soap->mode & SOAP_IO_LENGTH) 694 { if (soap_envelope_begin_out(soap) 695 || soap_putheader(soap) 696 || soap_body_begin_out(soap) 697 || soap_put_ns1__stat_USCOREobjectResponse(soap, &_param_4, "ns1:stat_objectResponse", "") 698 || soap_body_end_out(soap) 699 || soap_envelope_end_out(soap)) 700 return soap->error; 701 }; 702 if (soap_end_count(soap) 703 || soap_response(soap, SOAP_OK) 704 || soap_envelope_begin_out(soap) 705 || soap_putheader(soap) 706 || soap_body_begin_out(soap) 707 || soap_put_ns1__stat_USCOREobjectResponse(soap, &_param_4, "ns1:stat_objectResponse", "") 527 708 || soap_body_end_out(soap) 528 709 || soap_envelope_end_out(soap) -
trunk/Nebulous/nebclient/src/soapStub.h
r20110 r20208 155 155 #endif 156 156 157 #ifndef SOAP_TYPE_ns1__setxattr_USCOREobjectResponse 158 #define SOAP_TYPE_ns1__setxattr_USCOREobjectResponse (29) 159 /* ns1:setxattr_objectResponse */ 160 struct ns1__setxattr_USCOREobjectResponse 161 { 162 int *result; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* optional element of type xsd:int */ 163 }; 164 #endif 165 166 #ifndef SOAP_TYPE_ns1__setxattr_USCOREobject 167 #define SOAP_TYPE_ns1__setxattr_USCOREobject (30) 168 /* ns1:setxattr_object */ 169 struct ns1__setxattr_USCOREobject 170 { 171 char *key; /* optional element of type xsd:string */ 172 char *name; /* optional element of type xsd:string */ 173 char *value; /* optional element of type xsd:string */ 174 char *flags; /* optional element of type xsd:string */ 175 }; 176 #endif 177 178 #ifndef SOAP_TYPE_ns1__getxattr_USCOREobjectResponse 179 #define SOAP_TYPE_ns1__getxattr_USCOREobjectResponse (32) 180 /* ns1:getxattr_objectResponse */ 181 struct ns1__getxattr_USCOREobjectResponse 182 { 183 char **result; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* optional element of type xsd:string */ 184 }; 185 #endif 186 187 #ifndef SOAP_TYPE_ns1__getxattr_USCOREobject 188 #define SOAP_TYPE_ns1__getxattr_USCOREobject (33) 189 /* ns1:getxattr_object */ 190 struct ns1__getxattr_USCOREobject 191 { 192 char *key; /* optional element of type xsd:string */ 193 char *name; /* optional element of type xsd:string */ 194 }; 195 #endif 196 197 #ifndef SOAP_TYPE_ns1__listxattr_USCOREobjectResponse 198 #define SOAP_TYPE_ns1__listxattr_USCOREobjectResponse (34) 199 /* ns1:listxattr_objectResponse */ 200 struct ns1__listxattr_USCOREobjectResponse 201 { 202 struct ArrayOfString *result; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* optional element of type ArrayOfstring */ 203 }; 204 #endif 205 206 #ifndef SOAP_TYPE_ns1__listxattr_USCOREobject 207 #define SOAP_TYPE_ns1__listxattr_USCOREobject (38) 208 /* ns1:listxattr_object */ 209 struct ns1__listxattr_USCOREobject 210 { 211 char *key; /* optional element of type xsd:string */ 212 }; 213 #endif 214 215 #ifndef SOAP_TYPE_ns1__removexattr_USCOREobjectResponse 216 #define SOAP_TYPE_ns1__removexattr_USCOREobjectResponse (40) 217 /* ns1:removexattr_objectResponse */ 218 struct ns1__removexattr_USCOREobjectResponse 219 { 220 int *result; /* SOAP 1.2 RPC return element (when namespace qualified) */ /* optional element of type xsd:int */ 221 }; 222 #endif 223 224 #ifndef SOAP_TYPE_ns1__removexattr_USCOREobject 225 #define SOAP_TYPE_ns1__removexattr_USCOREobject (41) 226 /* ns1:removexattr_object */ 227 struct ns1__removexattr_USCOREobject 228 { 229 char *key; /* optional element of type xsd:string */ 230 char *name; /* optional element of type xsd:string */ 231 }; 232 #endif 233 157 234 #ifndef SOAP_TYPE_ns1__find_USCOREobjectsResponse 158 #define SOAP_TYPE_ns1__find_USCOREobjectsResponse ( 28)235 #define SOAP_TYPE_ns1__find_USCOREobjectsResponse (42) 159 236 /* ns1:find_objectsResponse */ 160 237 struct ns1__find_USCOREobjectsResponse … … 165 242 166 243 #ifndef SOAP_TYPE_ns1__find_USCOREobjects 167 #define SOAP_TYPE_ns1__find_USCOREobjects ( 32)244 #define SOAP_TYPE_ns1__find_USCOREobjects (45) 168 245 /* ns1:find_objects */ 169 246 struct ns1__find_USCOREobjects … … 174 251 175 252 #ifndef SOAP_TYPE_ns1__find_USCOREinstancesResponse 176 #define SOAP_TYPE_ns1__find_USCOREinstancesResponse ( 33)253 #define SOAP_TYPE_ns1__find_USCOREinstancesResponse (46) 177 254 /* ns1:find_instancesResponse */ 178 255 struct ns1__find_USCOREinstancesResponse … … 183 260 184 261 #ifndef SOAP_TYPE_ns1__find_USCOREinstances 185 #define SOAP_TYPE_ns1__find_USCOREinstances ( 36)262 #define SOAP_TYPE_ns1__find_USCOREinstances (49) 186 263 /* ns1:find_instances */ 187 264 struct ns1__find_USCOREinstances … … 193 270 194 271 #ifndef SOAP_TYPE_ns1__delete_USCOREinstanceResponse 195 #define SOAP_TYPE_ns1__delete_USCOREinstanceResponse ( 38)272 #define SOAP_TYPE_ns1__delete_USCOREinstanceResponse (51) 196 273 /* ns1:delete_instanceResponse */ 197 274 struct ns1__delete_USCOREinstanceResponse … … 202 279 203 280 #ifndef SOAP_TYPE_ns1__delete_USCOREinstance 204 #define SOAP_TYPE_ns1__delete_USCOREinstance ( 39)281 #define SOAP_TYPE_ns1__delete_USCOREinstance (52) 205 282 /* ns1:delete_instance */ 206 283 struct ns1__delete_USCOREinstance … … 211 288 212 289 #ifndef SOAP_TYPE_ns1__stat_USCOREobjectResponse 213 #define SOAP_TYPE_ns1__stat_USCOREobjectResponse ( 40)290 #define SOAP_TYPE_ns1__stat_USCOREobjectResponse (53) 214 291 /* ns1:stat_objectResponse */ 215 292 struct ns1__stat_USCOREobjectResponse … … 220 297 221 298 #ifndef SOAP_TYPE_ns1__stat_USCOREobject 222 #define SOAP_TYPE_ns1__stat_USCOREobject ( 43)299 #define SOAP_TYPE_ns1__stat_USCOREobject (56) 223 300 /* ns1:stat_object */ 224 301 struct ns1__stat_USCOREobject … … 229 306 230 307 #ifndef SOAP_TYPE_SOAP_ENV__Header 231 #define SOAP_TYPE_SOAP_ENV__Header ( 44)308 #define SOAP_TYPE_SOAP_ENV__Header (57) 232 309 /* SOAP Header: */ 233 310 struct SOAP_ENV__Header … … 240 317 241 318 #ifndef SOAP_TYPE_SOAP_ENV__Code 242 #define SOAP_TYPE_SOAP_ENV__Code ( 45)319 #define SOAP_TYPE_SOAP_ENV__Code (58) 243 320 /* SOAP Fault Code: */ 244 321 struct SOAP_ENV__Code … … 250 327 251 328 #ifndef SOAP_TYPE_SOAP_ENV__Detail 252 #define SOAP_TYPE_SOAP_ENV__Detail ( 47)329 #define SOAP_TYPE_SOAP_ENV__Detail (60) 253 330 /* SOAP-ENV:Detail */ 254 331 struct SOAP_ENV__Detail … … 261 338 262 339 #ifndef SOAP_TYPE_SOAP_ENV__Reason 263 #define SOAP_TYPE_SOAP_ENV__Reason ( 50)340 #define SOAP_TYPE_SOAP_ENV__Reason (63) 264 341 /* SOAP-ENV:Reason */ 265 342 struct SOAP_ENV__Reason … … 270 347 271 348 #ifndef SOAP_TYPE_SOAP_ENV__Fault 272 #define SOAP_TYPE_SOAP_ENV__Fault ( 51)349 #define SOAP_TYPE_SOAP_ENV__Fault (64) 273 350 /* SOAP Fault: */ 274 351 struct SOAP_ENV__Fault … … 343 420 SOAP_FMAC5 int SOAP_FMAC6 ns1__unlock_USCOREobject(struct soap*, char *key, char *type, int *result); 344 421 345 SOAP_FMAC5 int SOAP_FMAC6 ns1__find_USCOREobjects(struct soap*, char *pattern, struct ns1__find_USCOREobjectsResponse *_param_1); 346 347 SOAP_FMAC5 int SOAP_FMAC6 ns1__find_USCOREinstances(struct soap*, char *key, char *volume, struct ns1__find_USCOREinstancesResponse *_param_2); 422 SOAP_FMAC5 int SOAP_FMAC6 ns1__setxattr_USCOREobject(struct soap*, char *key, char *name, char *value, char *flags, int *result); 423 424 SOAP_FMAC5 int SOAP_FMAC6 ns1__getxattr_USCOREobject(struct soap*, char *key, char *name, char **result); 425 426 SOAP_FMAC5 int SOAP_FMAC6 ns1__listxattr_USCOREobject(struct soap*, char *key, struct ns1__listxattr_USCOREobjectResponse *_param_1); 427 428 SOAP_FMAC5 int SOAP_FMAC6 ns1__removexattr_USCOREobject(struct soap*, char *key, char *name, int *result); 429 430 SOAP_FMAC5 int SOAP_FMAC6 ns1__find_USCOREobjects(struct soap*, char *pattern, struct ns1__find_USCOREobjectsResponse *_param_2); 431 432 SOAP_FMAC5 int SOAP_FMAC6 ns1__find_USCOREinstances(struct soap*, char *key, char *volume, struct ns1__find_USCOREinstancesResponse *_param_3); 348 433 349 434 SOAP_FMAC5 int SOAP_FMAC6 ns1__delete_USCOREinstance(struct soap*, char *uri, int *result); 350 435 351 SOAP_FMAC5 int SOAP_FMAC6 ns1__stat_USCOREobject(struct soap*, char *key, struct ns1__stat_USCOREobjectResponse *_param_ 3);436 SOAP_FMAC5 int SOAP_FMAC6 ns1__stat_USCOREobject(struct soap*, char *key, struct ns1__stat_USCOREobjectResponse *_param_4); 352 437 353 438 /******************************************************************************\ … … 370 455 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__unlock_USCOREobject(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, char *type, int *result); 371 456 372 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__find_USCOREobjects(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *pattern, struct ns1__find_USCOREobjectsResponse *_param_1); 373 374 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__find_USCOREinstances(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, char *volume, struct ns1__find_USCOREinstancesResponse *_param_2); 457 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__setxattr_USCOREobject(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, char *name, char *value, char *flags, int *result); 458 459 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__getxattr_USCOREobject(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, char *name, char **result); 460 461 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__listxattr_USCOREobject(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, struct ns1__listxattr_USCOREobjectResponse *_param_1); 462 463 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__removexattr_USCOREobject(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, char *name, int *result); 464 465 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__find_USCOREobjects(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *pattern, struct ns1__find_USCOREobjectsResponse *_param_2); 466 467 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__find_USCOREinstances(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, char *volume, struct ns1__find_USCOREinstancesResponse *_param_3); 375 468 376 469 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__delete_USCOREinstance(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *uri, int *result); 377 470 378 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_ 3);471 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); 379 472 380 473 /******************************************************************************\ … … 399 492 400 493 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__unlock_USCOREobject(struct soap*); 494 495 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__setxattr_USCOREobject(struct soap*); 496 497 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__getxattr_USCOREobject(struct soap*); 498 499 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__listxattr_USCOREobject(struct soap*); 500 501 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__removexattr_USCOREobject(struct soap*); 401 502 402 503 SOAP_FMAC5 int SOAP_FMAC6 soap_serve_ns1__find_USCOREobjects(struct soap*);
Note:
See TracChangeset
for help on using the changeset viewer.
