Changeset 24289 for trunk/Nebulous/nebclient/src/soapClient.c
- Timestamp:
- Jun 1, 2009, 2:29:20 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous/nebclient/src/soapClient.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/nebclient/src/soapClient.c
r23935 r24289 10 10 #endif 11 11 12 SOAP_SOURCE_STAMP("@(#) soapClient.c ver 2.7.12 2009-0 4-20 22:15:21GMT")12 SOAP_SOURCE_STAMP("@(#) soapClient.c ver 2.7.12 2009-06-01 23:55:50 GMT") 13 13 14 14 … … 812 812 } 813 813 814 SOAP_FMAC5 int SOAP_FMAC6 soap_call_ns1__chmod_USCOREobject(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *key, int mode, int *result) 815 { struct ns1__chmod_USCOREobject soap_tmp_ns1__chmod_USCOREobject; 816 struct ns1__chmod_USCOREobjectResponse *soap_tmp_ns1__chmod_USCOREobjectResponse; 817 if (!soap_endpoint) 818 soap_endpoint = "http://localhost:80/nebulous"; 819 if (!soap_action) 820 soap_action = "urn:Nebulous/Server/SOAP#chmod_object"; 821 soap->encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/"; 822 soap_tmp_ns1__chmod_USCOREobject.key = key; 823 soap_tmp_ns1__chmod_USCOREobject.mode = mode; 824 soap_begin(soap); 825 soap_serializeheader(soap); 826 soap_serialize_ns1__chmod_USCOREobject(soap, &soap_tmp_ns1__chmod_USCOREobject); 827 if (soap_begin_count(soap)) 828 return soap->error; 829 if (soap->mode & SOAP_IO_LENGTH) 830 { if (soap_envelope_begin_out(soap) 831 || soap_putheader(soap) 832 || soap_body_begin_out(soap) 833 || soap_put_ns1__chmod_USCOREobject(soap, &soap_tmp_ns1__chmod_USCOREobject, "ns1:chmod_object", "") 834 || soap_body_end_out(soap) 835 || soap_envelope_end_out(soap)) 836 return soap->error; 837 } 838 if (soap_end_count(soap)) 839 return soap->error; 840 if (soap_connect(soap, soap_endpoint, soap_action) 841 || soap_envelope_begin_out(soap) 842 || soap_putheader(soap) 843 || soap_body_begin_out(soap) 844 || soap_put_ns1__chmod_USCOREobject(soap, &soap_tmp_ns1__chmod_USCOREobject, "ns1:chmod_object", "") 845 || soap_body_end_out(soap) 846 || soap_envelope_end_out(soap) 847 || soap_end_send(soap)) 848 return soap_closesock(soap); 849 if (!result) 850 return soap_closesock(soap); 851 soap_default_int(soap, result); 852 if (soap_begin_recv(soap) 853 || soap_envelope_begin_in(soap) 854 || soap_recv_header(soap) 855 || soap_body_begin_in(soap)) 856 return soap_closesock(soap); 857 soap_tmp_ns1__chmod_USCOREobjectResponse = soap_get_ns1__chmod_USCOREobjectResponse(soap, NULL, "ns1:chmod_objectResponse", ""); 858 if (soap->error) 859 { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) 860 return soap_recv_fault(soap); 861 return soap_closesock(soap); 862 } 863 if (soap_body_end_in(soap) 864 || soap_envelope_end_in(soap) 865 || soap_end_recv(soap)) 866 return soap_closesock(soap); 867 if (result && soap_tmp_ns1__chmod_USCOREobjectResponse->result) 868 *result = *soap_tmp_ns1__chmod_USCOREobjectResponse->result; 869 return soap_closesock(soap); 870 } 871 814 872 #ifdef __cplusplus 815 873 }
Note:
See TracChangeset
for help on using the changeset viewer.
