root/tools/soap-util/trunk/SoapStubs/soapClient.cpp
| Revision 34, 37.3 kB (checked in by kjaleel, 5 years ago) |
|---|
| Line | |
|---|---|
| 1 | /* soapClient.cpp |
| 2 | Generated by gSOAP 2.7.9f from Init-Service-1.0.h |
| 3 | Copyright(C) 2000-2006, Robert van Engelen, Genivia Inc. All Rights Reserved. |
| 4 | This part of the software is released under one of the following licenses: |
| 5 | GPL, the gSOAP public license, or Genivia's license for commercial use. |
| 6 | */ |
| 7 | #include "stdafx.h" |
| 8 | #include "soapH.h" |
| 9 | |
| 10 | SOAP_SOURCE_STAMP("@(#) soapClient.cpp ver 2.7.9f 2007-09-20 09:40:46 GMT") |
| 11 | |
| 12 | |
| 13 | SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__getChallengeQuestion(struct soap *soap, const char *soap_endpoint, const char *soap_action, ns2__getChallengeQuestionRequestType *ns2__getChallengeQuestionRequest, ns2__getChallengeQuestionResponseType *ns2__getChallengeQuestionResponse) |
| 14 | { struct __ns1__getChallengeQuestion soap_tmp___ns1__getChallengeQuestion; |
| 15 | if (!soap_endpoint) |
| 16 | soap_endpoint = "http://api.so.telnic.org/init"; |
| 17 | if (!soap_action) |
| 18 | soap_action = "http://ws.telnic.org/so/init/getChallengeQuestionAction"; |
| 19 | soap->encodingStyle = NULL; |
| 20 | soap_tmp___ns1__getChallengeQuestion.ns2__getChallengeQuestionRequest = ns2__getChallengeQuestionRequest; |
| 21 | soap_begin(soap); |
| 22 | soap_serializeheader(soap); |
| 23 | soap_serialize___ns1__getChallengeQuestion(soap, &soap_tmp___ns1__getChallengeQuestion); |
| 24 | if (soap_begin_count(soap)) |
| 25 | return soap->error; |
| 26 | if (soap->mode & SOAP_IO_LENGTH) |
| 27 | { if (soap_envelope_begin_out(soap) |
| 28 | || soap_putheader(soap) |
| 29 | || soap_body_begin_out(soap) |
| 30 | || soap_put___ns1__getChallengeQuestion(soap, &soap_tmp___ns1__getChallengeQuestion, "-ns1:getChallengeQuestion", "") |
| 31 | || soap_body_end_out(soap) |
| 32 | || soap_envelope_end_out(soap)) |
| 33 | return soap->error; |
| 34 | } |
| 35 | if (soap_end_count(soap)) |
| 36 | return soap->error; |
| 37 | if (soap_connect(soap, soap_endpoint, soap_action) |
| 38 | || soap_envelope_begin_out(soap) |
| 39 | || soap_putheader(soap) |
| 40 | || soap_body_begin_out(soap) |
| 41 | || soap_put___ns1__getChallengeQuestion(soap, &soap_tmp___ns1__getChallengeQuestion, "-ns1:getChallengeQuestion", "") |
| 42 | || soap_body_end_out(soap) |
| 43 | || soap_envelope_end_out(soap) |
| 44 | || soap_end_send(soap)) |
| 45 | return soap_closesock(soap); |
| 46 | if (!ns2__getChallengeQuestionResponse) |
| 47 | return soap_closesock(soap); |
| 48 | ns2__getChallengeQuestionResponse->soap_default(soap); |
| 49 | if (soap_begin_recv(soap) |
| 50 | || soap_envelope_begin_in(soap) |
| 51 | || soap_recv_header(soap) |
| 52 | || soap_body_begin_in(soap)) |
| 53 | return soap_closesock(soap); |
| 54 | ns2__getChallengeQuestionResponse->soap_get(soap, "ns2:getChallengeQuestionResponse", "ns2:getChallengeQuestionResponseType"); |
| 55 | if (soap->error) |
| 56 | { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) |
| 57 | return soap_recv_fault(soap); |
| 58 | return soap_closesock(soap); |
| 59 | } |
| 60 | if (soap_body_end_in(soap) |
| 61 | || soap_envelope_end_in(soap) |
| 62 | || soap_end_recv(soap)) |
| 63 | return soap_closesock(soap); |
| 64 | return soap_closesock(soap); |
| 65 | } |
| 66 | |
| 67 | SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns1__getAPICredentials(struct soap *soap, const char *soap_endpoint, const char *soap_action, ns2__getAPICredentialsRequestType *ns2__getAPICredentialsRequest, ns2__getAPICredentialsResponseType *ns2__getAPICredentialsResponse) |
| 68 | { struct __ns1__getAPICredentials soap_tmp___ns1__getAPICredentials; |
| 69 | if (!soap_endpoint) |
| 70 | soap_endpoint = "http://api.so.telnic.org/init"; |
| 71 | if (!soap_action) |
| 72 | soap_action = "http://ws.telnic.org/so/init/getAPICredentialsAction"; |
| 73 | soap->encodingStyle = NULL; |
| 74 | soap_tmp___ns1__getAPICredentials.ns2__getAPICredentialsRequest = ns2__getAPICredentialsRequest; |
| 75 | soap_begin(soap); |
| 76 | soap_serializeheader(soap); |
| 77 | soap_serialize___ns1__getAPICredentials(soap, &soap_tmp___ns1__getAPICredentials); |
| 78 | if (soap_begin_count(soap)) |
| 79 | return soap->error; |
| 80 | if (soap->mode & SOAP_IO_LENGTH) |
| 81 | { if (soap_envelope_begin_out(soap) |
| 82 | || soap_putheader(soap) |
| 83 | || soap_body_begin_out(soap) |
| 84 | || soap_put___ns1__getAPICredentials(soap, &soap_tmp___ns1__getAPICredentials, "-ns1:getAPICredentials", "") |
| 85 | || soap_body_end_out(soap) |
| 86 | || soap_envelope_end_out(soap)) |
| 87 | return soap->error; |
| 88 | } |
| 89 | if (soap_end_count(soap)) |
| 90 | return soap->error; |
| 91 | if (soap_connect(soap, soap_endpoint, soap_action) |
| 92 | || soap_envelope_begin_out(soap) |
| 93 | || soap_putheader(soap) |
| 94 | || soap_body_begin_out(soap) |
| 95 | || soap_put___ns1__getAPICredentials(soap, &soap_tmp___ns1__getAPICredentials, "-ns1:getAPICredentials", "") |
| 96 | || soap_body_end_out(soap) |
| 97 | || soap_envelope_end_out(soap) |
| 98 | || soap_end_send(soap)) |
| 99 | return soap_closesock(soap); |
| 100 | if (!ns2__getAPICredentialsResponse) |
| 101 | return soap_closesock(soap); |
| 102 | ns2__getAPICredentialsResponse->soap_default(soap); |
| 103 | if (soap_begin_recv(soap) |
| 104 | || soap_envelope_begin_in(soap) |
| 105 | || soap_recv_header(soap) |
| 106 | || soap_body_begin_in(soap)) |
| 107 | return soap_closesock(soap); |
| 108 | ns2__getAPICredentialsResponse->soap_get(soap, "ns2:getAPICredentialsResponse", "ns2:getAPICredentialsResponseType"); |
| 109 | if (soap->error) |
| 110 | { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) |
| 111 | return soap_recv_fault(soap); |
| 112 | return soap_closesock(soap); |
| 113 | } |
| 114 | if (soap_body_end_in(soap) |
| 115 | || soap_envelope_end_in(soap) |
| 116 | || soap_end_recv(soap)) |
| 117 | return soap_closesock(soap); |
| 118 | return soap_closesock(soap); |
| 119 | } |
| 120 | |
| 121 | SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns4__storeKey(struct soap *soap, const char *soap_endpoint, const char *soap_action, ns5__storeKeyRequestType *ns5__storeKeyRequest, ns5__storeKeyResponseType *ns5__storeKeyResponse) |
| 122 | { struct __ns4__storeKey soap_tmp___ns4__storeKey; |
| 123 | if (!soap_endpoint) |
| 124 | soap_endpoint = "http://api.so.telnic.org/so"; |
| 125 | if (!soap_action) |
| 126 | soap_action = "http://ws.telnic.org/so/member/keystore/storeKeyAction"; |
| 127 | soap->encodingStyle = NULL; |
| 128 | soap_tmp___ns4__storeKey.ns5__storeKeyRequest = ns5__storeKeyRequest; |
| 129 | soap_begin(soap); |
| 130 | soap_serializeheader(soap); |
| 131 | soap_serialize___ns4__storeKey(soap, &soap_tmp___ns4__storeKey); |
| 132 | if (soap_begin_count(soap)) |
| 133 | return soap->error; |
| 134 | if (soap->mode & SOAP_IO_LENGTH) |
| 135 | { if (soap_envelope_begin_out(soap) |
| 136 | || soap_putheader(soap) |
| 137 | || soap_body_begin_out(soap) |
| 138 | || soap_put___ns4__storeKey(soap, &soap_tmp___ns4__storeKey, "-ns4:storeKey", "") |
| 139 | || soap_body_end_out(soap) |
| 140 | || soap_envelope_end_out(soap)) |
| 141 | return soap->error; |
| 142 | } |
| 143 | if (soap_end_count(soap)) |
| 144 | return soap->error; |
| 145 | if (soap_connect(soap, soap_endpoint, soap_action) |
| 146 | || soap_envelope_begin_out(soap) |
| 147 | || soap_putheader(soap) |
| 148 | || soap_body_begin_out(soap) |
| 149 | || soap_put___ns4__storeKey(soap, &soap_tmp___ns4__storeKey, "-ns4:storeKey", "") |
| 150 | || soap_body_end_out(soap) |
| 151 | || soap_envelope_end_out(soap) |
| 152 | || soap_end_send(soap)) |
| 153 | return soap_closesock(soap); |
| 154 | if (!ns5__storeKeyResponse) |
| 155 | return soap_closesock(soap); |
| 156 | ns5__storeKeyResponse->soap_default(soap); |
| 157 | if (soap_begin_recv(soap) |
| 158 | || soap_envelope_begin_in(soap) |
| 159 | || soap_recv_header(soap) |
| 160 | || soap_body_begin_in(soap)) |
| 161 | return soap_closesock(soap); |
| 162 | ns5__storeKeyResponse->soap_get(soap, "ns5:storeKeyResponse", "ns5:storeKeyResponseType"); |
| 163 | if (soap->error) |
| 164 | { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) |
| 165 | return soap_recv_fault(soap); |
| 166 | return soap_closesock(soap); |
| 167 | } |
| 168 | if (soap_body_end_in(soap) |
| 169 | || soap_envelope_end_in(soap) |
| 170 | || soap_end_recv(soap)) |
| 171 | return soap_closesock(soap); |
| 172 | return soap_closesock(soap); |
| 173 | } |
| 174 | |
| 175 | SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns4__createKeyPair(struct soap *soap, const char *soap_endpoint, const char *soap_action, ns5__createKeyPairRequestType *ns5__createKeyPairRequest, ns5__createKeyPairResponseType *ns5__createKeyPairResponse) |
| 176 | { struct __ns4__createKeyPair soap_tmp___ns4__createKeyPair; |
| 177 | if (!soap_endpoint) |
| 178 | soap_endpoint = "http://api.so.telnic.org/so"; |
| 179 | if (!soap_action) |
| 180 | soap_action = "http://ws.telnic.org/so/member/keystore/createKeyPairAction"; |
| 181 | soap->encodingStyle = NULL; |
| 182 | soap_tmp___ns4__createKeyPair.ns5__createKeyPairRequest = ns5__createKeyPairRequest; |
| 183 | soap_begin(soap); |
| 184 | soap_serializeheader(soap); |
| 185 | soap_serialize___ns4__createKeyPair(soap, &soap_tmp___ns4__createKeyPair); |
| 186 | if (soap_begin_count(soap)) |
| 187 | return soap->error; |
| 188 | if (soap->mode & SOAP_IO_LENGTH) |
| 189 | { if (soap_envelope_begin_out(soap) |
| 190 | || soap_putheader(soap) |
| 191 | || soap_body_begin_out(soap) |
| 192 | || soap_put___ns4__createKeyPair(soap, &soap_tmp___ns4__createKeyPair, "-ns4:createKeyPair", "") |
| 193 | || soap_body_end_out(soap) |
| 194 | || soap_envelope_end_out(soap)) |
| 195 | return soap->error; |
| 196 | } |
| 197 | if (soap_end_count(soap)) |
| 198 | return soap->error; |
| 199 | if (soap_connect(soap, soap_endpoint, soap_action) |
| 200 | || soap_envelope_begin_out(soap) |
| 201 | || soap_putheader(soap) |
| 202 | || soap_body_begin_out(soap) |
| 203 | || soap_put___ns4__createKeyPair(soap, &soap_tmp___ns4__createKeyPair, "-ns4:createKeyPair", "") |
| 204 | || soap_body_end_out(soap) |
| 205 | || soap_envelope_end_out(soap) |
| 206 | || soap_end_send(soap)) |
| 207 | return soap_closesock(soap); |
| 208 | if (!ns5__createKeyPairResponse) |
| 209 | return soap_closesock(soap); |
| 210 | ns5__createKeyPairResponse->soap_default(soap); |
| 211 | if (soap_begin_recv(soap) |
| 212 | || soap_envelope_begin_in(soap) |
| 213 | || soap_recv_header(soap) |
| 214 | || soap_body_begin_in(soap)) |
| 215 | return soap_closesock(soap); |
| 216 | ns5__createKeyPairResponse->soap_get(soap, "ns5:createKeyPairResponse", "ns5:createKeyPairResponseType"); |
| 217 | if (soap->error) |
| 218 | { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) |
| 219 | return soap_recv_fault(soap); |
| 220 | return soap_closesock(soap); |
| 221 | } |
| 222 | if (soap_body_end_in(soap) |
| 223 | || soap_envelope_end_in(soap) |
| 224 | || soap_end_recv(soap)) |
| 225 | return soap_closesock(soap); |
| 226 | return soap_closesock(soap); |
| 227 | } |
| 228 | |
| 229 | SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns4__getKey(struct soap *soap, const char *soap_endpoint, const char *soap_action, ns5__getKeyRequestType *ns5__getKeyRequest, ns5__getKeyResponseType *ns5__getKeyResponse) |
| 230 | { struct __ns4__getKey soap_tmp___ns4__getKey; |
| 231 | if (!soap_endpoint) |
| 232 | soap_endpoint = "http://api.so.telnic.org/so"; |
| 233 | if (!soap_action) |
| 234 | soap_action = "http://ws.telnic.org/so/member/keystore/getKeyAction"; |
| 235 | soap->encodingStyle = NULL; |
| 236 | soap_tmp___ns4__getKey.ns5__getKeyRequest = ns5__getKeyRequest; |
| 237 | soap_begin(soap); |
| 238 | soap_serializeheader(soap); |
| 239 | soap_serialize___ns4__getKey(soap, &soap_tmp___ns4__getKey); |
| 240 | if (soap_begin_count(soap)) |
| 241 | return soap->error; |
| 242 | if (soap->mode & SOAP_IO_LENGTH) |
| 243 | { if (soap_envelope_begin_out(soap) |
| 244 | || soap_putheader(soap) |
| 245 | || soap_body_begin_out(soap) |
| 246 | || soap_put___ns4__getKey(soap, &soap_tmp___ns4__getKey, "-ns4:getKey", "") |
| 247 | || soap_body_end_out(soap) |
| 248 | || soap_envelope_end_out(soap)) |
| 249 | return soap->error; |
| 250 | } |
| 251 | if (soap_end_count(soap)) |
| 252 | return soap->error; |
| 253 | if (soap_connect(soap, soap_endpoint, soap_action) |
| 254 | || soap_envelope_begin_out(soap) |
| 255 | || soap_putheader(soap) |
| 256 | || soap_body_begin_out(soap) |
| 257 | || soap_put___ns4__getKey(soap, &soap_tmp___ns4__getKey, "-ns4:getKey", "") |
| 258 | || soap_body_end_out(soap) |
| 259 | || soap_envelope_end_out(soap) |
| 260 | || soap_end_send(soap)) |
| 261 | return soap_closesock(soap); |
| 262 | if (!ns5__getKeyResponse) |
| 263 | return soap_closesock(soap); |
| 264 | ns5__getKeyResponse->soap_default(soap); |
| 265 | if (soap_begin_recv(soap) |
| 266 | || soap_envelope_begin_in(soap) |
| 267 | || soap_recv_header(soap) |
| 268 | || soap_body_begin_in(soap)) |
| 269 | return soap_closesock(soap); |
| 270 | ns5__getKeyResponse->soap_get(soap, "ns5:getKeyResponse", "ns5:getKeyResponseType"); |
| 271 | if (soap->error) |
| 272 | { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) |
| 273 | return soap_recv_fault(soap); |
| 274 | return soap_closesock(soap); |
| 275 | } |
| 276 | if (soap_body_end_in(soap) |
| 277 | || soap_envelope_end_in(soap) |
| 278 | || soap_end_recv(soap)) |
| 279 | return soap_closesock(soap); |
| 280 | return soap_closesock(soap); |
| 281 | } |
| 282 | |
| 283 | SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns4__deleteKey(struct soap *soap, const char *soap_endpoint, const char *soap_action, ns5__deleteKeyRequestType *ns5__deleteKeyRequest, ns5__deleteKeyResponseType *ns5__deleteKeyResponse) |
| 284 | { struct __ns4__deleteKey soap_tmp___ns4__deleteKey; |
| 285 | if (!soap_endpoint) |
| 286 | soap_endpoint = "http://api.so.telnic.org/so"; |
| 287 | if (!soap_action) |
| 288 | soap_action = "http://ws.telnic.org/so/member/keystore/deleteKeyAction"; |
| 289 | soap->encodingStyle = NULL; |
| 290 | soap_tmp___ns4__deleteKey.ns5__deleteKeyRequest = ns5__deleteKeyRequest; |
| 291 | soap_begin(soap); |
| 292 | soap_serializeheader(soap); |
| 293 | soap_serialize___ns4__deleteKey(soap, &soap_tmp___ns4__deleteKey); |
| 294 | if (soap_begin_count(soap)) |
| 295 | return soap->error; |
| 296 | if (soap->mode & SOAP_IO_LENGTH) |
| 297 | { if (soap_envelope_begin_out(soap) |
| 298 | || soap_putheader(soap) |
| 299 | || soap_body_begin_out(soap) |
| 300 | || soap_put___ns4__deleteKey(soap, &soap_tmp___ns4__deleteKey, "-ns4:deleteKey", "") |
| 301 | || soap_body_end_out(soap) |
| 302 | || soap_envelope_end_out(soap)) |
| 303 | return soap->error; |
| 304 | } |
| 305 | if (soap_end_count(soap)) |
| 306 | return soap->error; |
| 307 | if (soap_connect(soap, soap_endpoint, soap_action) |
| 308 | || soap_envelope_begin_out(soap) |
| 309 | || soap_putheader(soap) |
| 310 | || soap_body_begin_out(soap) |
| 311 | || soap_put___ns4__deleteKey(soap, &soap_tmp___ns4__deleteKey, "-ns4:deleteKey", "") |
| 312 | || soap_body_end_out(soap) |
| 313 | || soap_envelope_end_out(soap) |
| 314 | || soap_end_send(soap)) |
| 315 | return soap_closesock(soap); |
| 316 | if (!ns5__deleteKeyResponse) |
| 317 | return soap_closesock(soap); |
| 318 | ns5__deleteKeyResponse->soap_default(soap); |
| 319 | if (soap_begin_recv(soap) |
| 320 | || soap_envelope_begin_in(soap) |
| 321 | || soap_recv_header(soap) |
| 322 | || soap_body_begin_in(soap)) |
| 323 | return soap_closesock(soap); |
| 324 | ns5__deleteKeyResponse->soap_get(soap, "ns5:deleteKeyResponse", "ns5:deleteKeyResponseType"); |
| 325 | if (soap->error) |
| 326 | { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) |
| 327 | return soap_recv_fault(soap); |
| 328 | return soap_closesock(soap); |
| 329 | } |
| 330 | if (soap_body_end_in(soap) |
| 331 | || soap_envelope_end_in(soap) |
| 332 | || soap_end_recv(soap)) |
| 333 | return soap_closesock(soap); |
| 334 | return soap_closesock(soap); |
| 335 | } |
| 336 | |
| 337 | SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns4__storePublisher(struct soap *soap, const char *soap_endpoint, const char *soap_action, ns6__storePublisherRequestType *ns6__storePublisherRequest, ns6__storePublisherResponseType *ns6__storePublisherResponse) |
| 338 | { struct __ns4__storePublisher soap_tmp___ns4__storePublisher; |
| 339 | if (!soap_endpoint) |
| 340 | soap_endpoint = "http://api.so.telnic.org/so"; |
| 341 | if (!soap_action) |
| 342 | soap_action = "http://ws.telnic.org/so/member/publisherstore/storePublisherAction"; |
| 343 | soap->encodingStyle = NULL; |
| 344 | soap_tmp___ns4__storePublisher.ns6__storePublisherRequest = ns6__storePublisherRequest; |
| 345 | soap_begin(soap); |
| 346 | soap_serializeheader(soap); |
| 347 | soap_serialize___ns4__storePublisher(soap, &soap_tmp___ns4__storePublisher); |
| 348 | if (soap_begin_count(soap)) |
| 349 | return soap->error; |
| 350 | if (soap->mode & SOAP_IO_LENGTH) |
| 351 | { if (soap_envelope_begin_out(soap) |
| 352 | || soap_putheader(soap) |
| 353 | || soap_body_begin_out(soap) |
| 354 | || soap_put___ns4__storePublisher(soap, &soap_tmp___ns4__storePublisher, "-ns4:storePublisher", "") |
| 355 | || soap_body_end_out(soap) |
| 356 | || soap_envelope_end_out(soap)) |
| 357 | return soap->error; |
| 358 | } |
| 359 | if (soap_end_count(soap)) |
| 360 | return soap->error; |
| 361 | if (soap_connect(soap, soap_endpoint, soap_action) |
| 362 | || soap_envelope_begin_out(soap) |
| 363 | || soap_putheader(soap) |
| 364 | || soap_body_begin_out(soap) |
| 365 | || soap_put___ns4__storePublisher(soap, &soap_tmp___ns4__storePublisher, "-ns4:storePublisher", "") |
| 366 | || soap_body_end_out(soap) |
| 367 | || soap_envelope_end_out(soap) |
| 368 | || soap_end_send(soap)) |
| 369 | return soap_closesock(soap); |
| 370 | if (!ns6__storePublisherResponse) |
| 371 | return soap_closesock(soap); |
| 372 | ns6__storePublisherResponse->soap_default(soap); |
| 373 | if (soap_begin_recv(soap) |
| 374 | || soap_envelope_begin_in(soap) |
| 375 | || soap_recv_header(soap) |
| 376 | || soap_body_begin_in(soap)) |
| 377 | return soap_closesock(soap); |
| 378 | ns6__storePublisherResponse->soap_get(soap, "ns6:storePublisherResponse", "ns6:storePublisherResponseType"); |
| 379 | if (soap->error) |
| 380 | { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) |
| 381 | return soap_recv_fault(soap); |
| 382 | return soap_closesock(soap); |
| 383 | } |
| 384 | if (soap_body_end_in(soap) |
| 385 | || soap_envelope_end_in(soap) |
| 386 | || soap_end_recv(soap)) |
| 387 | return soap_closesock(soap); |
| 388 | return soap_closesock(soap); |
| 389 | } |
| 390 | |
| 391 | SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns4__listPublishers(struct soap *soap, const char *soap_endpoint, const char *soap_action, ns6__listPublishersRequestType *ns6__listPublishersRequest, ns6__listPublishersResponseType *ns6__listPublishersResponse) |
| 392 | { struct __ns4__listPublishers soap_tmp___ns4__listPublishers; |
| 393 | if (!soap_endpoint) |
| 394 | soap_endpoint = "http://api.so.telnic.org/so"; |
| 395 | if (!soap_action) |
| 396 | soap_action = "http://ws.telnic.org/so/member/publisherstore/listPublishersAction"; |
| 397 | soap->encodingStyle = NULL; |
| 398 | soap_tmp___ns4__listPublishers.ns6__listPublishersRequest = ns6__listPublishersRequest; |
| 399 | soap_begin(soap); |
| 400 | soap_serializeheader(soap); |
| 401 | soap_serialize___ns4__listPublishers(soap, &soap_tmp___ns4__listPublishers); |
| 402 | if (soap_begin_count(soap)) |
| 403 | return soap->error; |
| 404 | if (soap->mode & SOAP_IO_LENGTH) |
| 405 | { if (soap_envelope_begin_out(soap) |
| 406 | || soap_putheader(soap) |
| 407 | || soap_body_begin_out(soap) |
| 408 | || soap_put___ns4__listPublishers(soap, &soap_tmp___ns4__listPublishers, "-ns4:listPublishers", "") |
| 409 | || soap_body_end_out(soap) |
| 410 | || soap_envelope_end_out(soap)) |
| 411 | return soap->error; |
| 412 | } |
| 413 | if (soap_end_count(soap)) |
| 414 | return soap->error; |
| 415 | if (soap_connect(soap, soap_endpoint, soap_action) |
| 416 | || soap_envelope_begin_out(soap) |
| 417 | || soap_putheader(soap) |
| 418 | || soap_body_begin_out(soap) |
| 419 | || soap_put___ns4__listPublishers(soap, &soap_tmp___ns4__listPublishers, "-ns4:listPublishers", "") |
| 420 | || soap_body_end_out(soap) |
| 421 | || soap_envelope_end_out(soap) |
| 422 | || soap_end_send(soap)) |
| 423 | return soap_closesock(soap); |
| 424 | if (!ns6__listPublishersResponse) |
| 425 | return soap_closesock(soap); |
| 426 | ns6__listPublishersResponse->soap_default(soap); |
| 427 | if (soap_begin_recv(soap) |
| 428 | || soap_envelope_begin_in(soap) |
| 429 | || soap_recv_header(soap) |
| 430 | || soap_body_begin_in(soap)) |
| 431 | return soap_closesock(soap); |
| 432 | ns6__listPublishersResponse->soap_get(soap, "ns6:listPublishersResponse", "ns6:listPublishersResponseType"); |
| 433 | if (soap->error) |
| 434 | { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) |
| 435 | return soap_recv_fault(soap); |
| 436 | return soap_closesock(soap); |
| 437 | } |
| 438 | if (soap_body_end_in(soap) |
| 439 | || soap_envelope_end_in(soap) |
| 440 | || soap_end_recv(soap)) |
| 441 | return soap_closesock(soap); |
| 442 | return soap_closesock(soap); |
| 443 | } |
| 444 | |
| 445 | SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns4__deletePublisher(struct soap *soap, const char *soap_endpoint, const char *soap_action, ns6__deletePublisherRequestType *ns6__deletePublisherRequest, ns6__deletePublisherResponseType *ns6__deletePublisherResponse) |
| 446 | { struct __ns4__deletePublisher soap_tmp___ns4__deletePublisher; |
| 447 | if (!soap_endpoint) |
| 448 | soap_endpoint = "http://api.so.telnic.org/so"; |
| 449 | if (!soap_action) |
| 450 | soap_action = "http://ws.telnic.org/so/member/publisherstore/deletePublisherAction"; |
| 451 | soap->encodingStyle = NULL; |
| 452 | soap_tmp___ns4__deletePublisher.ns6__deletePublisherRequest = ns6__deletePublisherRequest; |
| 453 | soap_begin(soap); |
| 454 | soap_serializeheader(soap); |
| 455 | soap_serialize___ns4__deletePublisher(soap, &soap_tmp___ns4__deletePublisher); |
| 456 | if (soap_begin_count(soap)) |
| 457 | return soap->error; |
| 458 | if (soap->mode & SOAP_IO_LENGTH) |
| 459 | { if (soap_envelope_begin_out(soap) |
| 460 | || soap_putheader(soap) |
| 461 | || soap_body_begin_out(soap) |
| 462 | || soap_put___ns4__deletePublisher(soap, &soap_tmp___ns4__deletePublisher, "-ns4:deletePublisher", "") |
| 463 | || soap_body_end_out(soap) |
| 464 | || soap_envelope_end_out(soap)) |
| 465 | return soap->error; |
| 466 | } |
| 467 | if (soap_end_count(soap)) |
| 468 | return soap->error; |
| 469 | if (soap_connect(soap, soap_endpoint, soap_action) |
| 470 | || soap_envelope_begin_out(soap) |
| 471 | || soap_putheader(soap) |
| 472 | || soap_body_begin_out(soap) |
| 473 | || soap_put___ns4__deletePublisher(soap, &soap_tmp___ns4__deletePublisher, "-ns4:deletePublisher", "") |
| 474 | || soap_body_end_out(soap) |
| 475 | || soap_envelope_end_out(soap) |
| 476 | || soap_end_send(soap)) |
| 477 | return soap_closesock(soap); |
| 478 | if (!ns6__deletePublisherResponse) |
| 479 | return soap_closesock(soap); |
| 480 | ns6__deletePublisherResponse->soap_default(soap); |
| 481 | if (soap_begin_recv(soap) |
| 482 | || soap_envelope_begin_in(soap) |
| 483 | || soap_recv_header(soap) |
| 484 | || soap_body_begin_in(soap)) |
| 485 | return soap_closesock(soap); |
| 486 | ns6__deletePublisherResponse->soap_get(soap, "ns6:deletePublisherResponse", "ns6:deletePublisherResponseType"); |
| 487 | if (soap->error) |
| 488 | { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) |
| 489 | return soap_recv_fault(soap); |
| 490 | return soap_closesock(soap); |
| 491 | } |
| 492 | if (soap_body_end_in(soap) |
| 493 | || soap_envelope_end_in(soap) |
| 494 | || soap_end_recv(soap)) |
| 495 | return soap_closesock(soap); |
| 496 | return soap_closesock(soap); |
| 497 | } |
| 498 | |
| 499 | SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns4__getUserInfo(struct soap *soap, const char *soap_endpoint, const char *soap_action, ns7__getUserInfoRequestType *ns7__getUserInfoRequest, ns7__getUserInfoResponseType *ns7__getUserInfoResponse) |
| 500 | { struct __ns4__getUserInfo soap_tmp___ns4__getUserInfo; |
| 501 | if (!soap_endpoint) |
| 502 | soap_endpoint = "http://api.so.telnic.org/so"; |
| 503 | if (!soap_action) |
| 504 | soap_action = "http://ws.telnic.org/so/member/usermanagement/getUserInfoAction"; |
| 505 | soap->encodingStyle = NULL; |
| 506 | soap_tmp___ns4__getUserInfo.ns7__getUserInfoRequest = ns7__getUserInfoRequest; |
| 507 | soap_begin(soap); |
| 508 | soap_serializeheader(soap); |
| 509 | soap_serialize___ns4__getUserInfo(soap, &soap_tmp___ns4__getUserInfo); |
| 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___ns4__getUserInfo(soap, &soap_tmp___ns4__getUserInfo, "-ns4:getUserInfo", "") |
| 517 | || soap_body_end_out(soap) |
| 518 | || soap_envelope_end_out(soap)) |
| 519 | return soap->error; |
| 520 | } |
| 521 | if (soap_end_count(soap)) |
| 522 | return soap->error; |
| 523 | if (soap_connect(soap, soap_endpoint, soap_action) |
| 524 | || soap_envelope_begin_out(soap) |
| 525 | || soap_putheader(soap) |
| 526 | || soap_body_begin_out(soap) |
| 527 | || soap_put___ns4__getUserInfo(soap, &soap_tmp___ns4__getUserInfo, "-ns4:getUserInfo", "") |
| 528 | || soap_body_end_out(soap) |
| 529 | || soap_envelope_end_out(soap) |
| 530 | || soap_end_send(soap)) |
| 531 | return soap_closesock(soap); |
| 532 | if (!ns7__getUserInfoResponse) |
| 533 | return soap_closesock(soap); |
| 534 | ns7__getUserInfoResponse->soap_default(soap); |
| 535 | if (soap_begin_recv(soap) |
| 536 | || soap_envelope_begin_in(soap) |
| 537 | || soap_recv_header(soap) |
| 538 | || soap_body_begin_in(soap)) |
| 539 | return soap_closesock(soap); |
| 540 | ns7__getUserInfoResponse->soap_get(soap, "ns7:getUserInfoResponse", "ns7:getUserInfoResponseType"); |
| 541 | if (soap->error) |
| 542 | { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) |
| 543 | return soap_recv_fault(soap); |
| 544 | return soap_closesock(soap); |
| 545 | } |
| 546 | if (soap_body_end_in(soap) |
| 547 | || soap_envelope_end_in(soap) |
| 548 | || soap_end_recv(soap)) |
| 549 | return soap_closesock(soap); |
| 550 | return soap_closesock(soap); |
| 551 | } |
| 552 | |
| 553 | SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns4__listDomainNames(struct soap *soap, const char *soap_endpoint, const char *soap_action, ns7__listDomainNamesRequestType *ns7__listDomainNamesRequest, ns7__listDomainNamesResponseType *ns7__listDomainNamesResponse) |
| 554 | { struct __ns4__listDomainNames soap_tmp___ns4__listDomainNames; |
| 555 | if (!soap_endpoint) |
| 556 | soap_endpoint = "http://api.so.telnic.org/so"; |
| 557 | if (!soap_action) |
| 558 | soap_action = "http://ws.telnic.org/so/member/usermanagement/listDomainNamesAction"; |
| 559 | soap->encodingStyle = NULL; |
| 560 | soap_tmp___ns4__listDomainNames.ns7__listDomainNamesRequest = ns7__listDomainNamesRequest; |
| 561 | soap_begin(soap); |
| 562 | soap_serializeheader(soap); |
| 563 | soap_serialize___ns4__listDomainNames(soap, &soap_tmp___ns4__listDomainNames); |
| 564 | if (soap_begin_count(soap)) |
| 565 | return soap->error; |
| 566 | if (soap->mode & SOAP_IO_LENGTH) |
| 567 | { if (soap_envelope_begin_out(soap) |
| 568 | || soap_putheader(soap) |
| 569 | || soap_body_begin_out(soap) |
| 570 | || soap_put___ns4__listDomainNames(soap, &soap_tmp___ns4__listDomainNames, "-ns4:listDomainNames", "") |
| 571 | || soap_body_end_out(soap) |
| 572 | || soap_envelope_end_out(soap)) |
| 573 | return soap->error; |
| 574 | } |
| 575 | if (soap_end_count(soap)) |
| 576 | return soap->error; |
| 577 | if (soap_connect(soap, soap_endpoint, soap_action) |
| 578 | || soap_envelope_begin_out(soap) |
| 579 | || soap_putheader(soap) |
| 580 | || soap_body_begin_out(soap) |
| 581 | || soap_put___ns4__listDomainNames(soap, &soap_tmp___ns4__listDomainNames, "-ns4:listDomainNames", "") |
| 582 | || soap_body_end_out(soap) |
| 583 | || soap_envelope_end_out(soap) |
| 584 | || soap_end_send(soap)) |
| 585 | return soap_closesock(soap); |
| 586 | if (!ns7__listDomainNamesResponse) |
| 587 | return soap_closesock(soap); |
| 588 | ns7__listDomainNamesResponse->soap_default(soap); |
| 589 | if (soap_begin_recv(soap) |
| 590 | || soap_envelope_begin_in(soap) |
| 591 | || soap_recv_header(soap) |
| 592 | || soap_body_begin_in(soap)) |
| 593 | return soap_closesock(soap); |
| 594 | ns7__listDomainNamesResponse->soap_get(soap, "ns7:listDomainNamesResponse", "ns7:listDomainNamesResponseType"); |
| 595 | if (soap->error) |
| 596 | { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) |
| 597 | return soap_recv_fault(soap); |
| 598 | return soap_closesock(soap); |
| 599 | } |
| 600 | if (soap_body_end_in(soap) |
| 601 | || soap_envelope_end_in(soap) |
| 602 | || soap_end_recv(soap)) |
| 603 | return soap_closesock(soap); |
| 604 | return soap_closesock(soap); |
| 605 | } |
| 606 | |
| 607 | SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns4__changePassword(struct soap *soap, const char *soap_endpoint, const char *soap_action, ns7__changePasswordRequestType *ns7__changePasswordRequest, ns7__changePasswordResponseType *ns7__changePasswordResponse) |
| 608 | { struct __ns4__changePassword soap_tmp___ns4__changePassword; |
| 609 | if (!soap_endpoint) |
| 610 | soap_endpoint = "http://api.so.telnic.org/so"; |
| 611 | if (!soap_action) |
| 612 | soap_action = "http://ws.telnic.org/so/member/usermanagement/changePasswordAction"; |
| 613 | soap->encodingStyle = NULL; |
| 614 | soap_tmp___ns4__changePassword.ns7__changePasswordRequest = ns7__changePasswordRequest; |
| 615 | soap_begin(soap); |
| 616 | soap_serializeheader(soap); |
| 617 | soap_serialize___ns4__changePassword(soap, &soap_tmp___ns4__changePassword); |
| 618 | if (soap_begin_count(soap)) |
| 619 | return soap->error; |
| 620 | if (soap->mode & SOAP_IO_LENGTH) |
| 621 | { if (soap_envelope_begin_out(soap) |
| 622 | || soap_putheader(soap) |
| 623 | || soap_body_begin_out(soap) |
| 624 | || soap_put___ns4__changePassword(soap, &soap_tmp___ns4__changePassword, "-ns4:changePassword", "") |
| 625 | || soap_body_end_out(soap) |
| 626 | || soap_envelope_end_out(soap)) |
| 627 | return soap->error; |
| 628 | } |
| 629 | if (soap_end_count(soap)) |
| 630 | return soap->error; |
| 631 | if (soap_connect(soap, soap_endpoint, soap_action) |
| 632 | || soap_envelope_begin_out(soap) |
| 633 | || soap_putheader(soap) |
| 634 | || soap_body_begin_out(soap) |
| 635 | || soap_put___ns4__changePassword(soap, &soap_tmp___ns4__changePassword, "-ns4:changePassword", "") |
| 636 | || soap_body_end_out(soap) |
| 637 | || soap_envelope_end_out(soap) |
| 638 | || soap_end_send(soap)) |
| 639 | return soap_closesock(soap); |
| 640 | if (!ns7__changePasswordResponse) |
| 641 | return soap_closesock(soap); |
| 642 | ns7__changePasswordResponse->soap_default(soap); |
| 643 | if (soap_begin_recv(soap) |
| 644 | || soap_envelope_begin_in(soap) |
| 645 | || soap_recv_header(soap) |
| 646 | || soap_body_begin_in(soap)) |
| 647 | return soap_closesock(soap); |
| 648 | ns7__changePasswordResponse->soap_get(soap, "ns7:changePasswordResponse", "ns7:changePasswordResponseType"); |
| 649 | if (soap->error) |
| 650 | { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) |
| 651 | return soap_recv_fault(soap); |
| 652 | return soap_closesock(soap); |
| 653 | } |
| 654 | if (soap_body_end_in(soap) |
| 655 | || soap_envelope_end_in(soap) |
| 656 | || soap_end_recv(soap)) |
| 657 | return soap_closesock(soap); |
| 658 | return soap_closesock(soap); |
| 659 | } |
| 660 | |
| 661 | SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns4__changeChallenge(struct soap *soap, const char *soap_endpoint, const char *soap_action, ns7__changeChallengeRequestType *ns7__changeChallengeRequest, ns7__changeChallengeResponseType *ns7__changeChallengeResponse) |
| 662 | { struct __ns4__changeChallenge soap_tmp___ns4__changeChallenge; |
| 663 | if (!soap_endpoint) |
| 664 | soap_endpoint = "http://api.so.telnic.org/so"; |
| 665 | if (!soap_action) |
| 666 | soap_action = "http://ws.telnic.org/so/member/usermanagement/changeChallengeAction"; |
| 667 | soap->encodingStyle = NULL; |
| 668 | soap_tmp___ns4__changeChallenge.ns7__changeChallengeRequest = ns7__changeChallengeRequest; |
| 669 | soap_begin(soap); |
| 670 | soap_serializeheader(soap); |
| 671 | soap_serialize___ns4__changeChallenge(soap, &soap_tmp___ns4__changeChallenge); |
| 672 | if (soap_begin_count(soap)) |
| 673 | return soap->error; |
| 674 | if (soap->mode & SOAP_IO_LENGTH) |
| 675 | { if (soap_envelope_begin_out(soap) |
| 676 | || soap_putheader(soap) |
| 677 | || soap_body_begin_out(soap) |
| 678 | || soap_put___ns4__changeChallenge(soap, &soap_tmp___ns4__changeChallenge, "-ns4:changeChallenge", "") |
| 679 | || soap_body_end_out(soap) |
| 680 | || soap_envelope_end_out(soap)) |
| 681 | return soap->error; |
| 682 | } |
| 683 | if (soap_end_count(soap)) |
| 684 | return soap->error; |
| 685 | if (soap_connect(soap, soap_endpoint, soap_action) |
| 686 | || soap_envelope_begin_out(soap) |
| 687 | || soap_putheader(soap) |
| 688 | || soap_body_begin_out(soap) |
| 689 | || soap_put___ns4__changeChallenge(soap, &soap_tmp___ns4__changeChallenge, "-ns4:changeChallenge", "") |
| 690 | || soap_body_end_out(soap) |
| 691 | || soap_envelope_end_out(soap) |
| 692 | || soap_end_send(soap)) |
| 693 | return soap_closesock(soap); |
| 694 | if (!ns7__changeChallengeResponse) |
| 695 | return soap_closesock(soap); |
| 696 | ns7__changeChallengeResponse->soap_default(soap); |
| 697 | if (soap_begin_recv(soap) |
| 698 | || soap_envelope_begin_in(soap) |
| 699 | || soap_recv_header(soap) |
| 700 | || soap_body_begin_in(soap)) |
| 701 | return soap_closesock(soap); |
| 702 | ns7__changeChallengeResponse->soap_get(soap, "ns7:changeChallengeResponse", "ns7:changeChallengeResponseType"); |
| 703 | if (soap->error) |
| 704 | { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) |
| 705 | return soap_recv_fault(soap); |
| 706 | return soap_closesock(soap); |
| 707 | } |
| 708 | if (soap_body_end_in(soap) |
| 709 | || soap_envelope_end_in(soap) |
| 710 | || soap_end_recv(soap)) |
| 711 | return soap_closesock(soap); |
| 712 | return soap_closesock(soap); |
| 713 | } |
| 714 | |
| 715 | SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns4__createMessage(struct soap *soap, const char *soap_endpoint, const char *soap_action, ns8__createMessageRequestType *ns8__createMessageRequest, ns8__createMessageResponseType *ns8__createMessageResponse) |
| 716 | { struct __ns4__createMessage soap_tmp___ns4__createMessage; |
| 717 | if (!soap_endpoint) |
| 718 | soap_endpoint = "http://api.so.telnic.org/so"; |
| 719 | if (!soap_action) |
| 720 | soap_action = "http://ws.telnic.org/so/member/messagestore/createMessageAction"; |
| 721 | soap->encodingStyle = NULL; |
| 722 | soap_tmp___ns4__createMessage.ns8__createMessageRequest = ns8__createMessageRequest; |
| 723 | soap_begin(soap); |
| 724 | soap_serializeheader(soap); |
| 725 | soap_serialize___ns4__createMessage(soap, &soap_tmp___ns4__createMessage); |
| 726 | if (soap_begin_count(soap)) |
| 727 | return soap->error; |
| 728 | if (soap->mode & SOAP_IO_LENGTH) |
| 729 | { if (soap_envelope_begin_out(soap) |
| 730 | || soap_putheader(soap) |
| 731 | || soap_body_begin_out(soap) |
| 732 | || soap_put___ns4__createMessage(soap, &soap_tmp___ns4__createMessage, "-ns4:createMessage", "") |
| 733 | || soap_body_end_out(soap) |
| 734 | || soap_envelope_end_out(soap)) |
| 735 | return soap->error; |
| 736 | } |
| 737 | if (soap_end_count(soap)) |
| 738 | return soap->error; |
| 739 | if (soap_connect(soap, soap_endpoint, soap_action) |
| 740 | || soap_envelope_begin_out(soap) |
| 741 | || soap_putheader(soap) |
| 742 | || soap_body_begin_out(soap) |
| 743 | || soap_put___ns4__createMessage(soap, &soap_tmp___ns4__createMessage, "-ns4:createMessage", "") |
| 744 | || soap_body_end_out(soap) |
| 745 | || soap_envelope_end_out(soap) |
| 746 | || soap_end_send(soap)) |
| 747 | return soap_closesock(soap); |
| 748 | if (!ns8__createMessageResponse) |
| 749 | return soap_closesock(soap); |
| 750 | ns8__createMessageResponse->soap_default(soap); |
| 751 | if (soap_begin_recv(soap) |
| 752 | || soap_envelope_begin_in(soap) |
| 753 | || soap_recv_header(soap) |
| 754 | || soap_body_begin_in(soap)) |
| 755 | return soap_closesock(soap); |
| 756 | ns8__createMessageResponse->soap_get(soap, "ns8:createMessageResponse", "ns8:createMessageResponseType"); |
| 757 | if (soap->error) |
| 758 | { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) |
| 759 | return soap_recv_fault(soap); |
| 760 | return soap_closesock(soap); |
| 761 | } |
| 762 | if (soap_body_end_in(soap) |
| 763 | || soap_envelope_end_in(soap) |
| 764 | || soap_end_recv(soap)) |
| 765 | return soap_closesock(soap); |
| 766 | return soap_closesock(soap); |
| 767 | } |
| 768 | |
| 769 | SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns4__listMessages(struct soap *soap, const char *soap_endpoint, const char *soap_action, ns8__listMessagesRequestType *ns8__listMessagesRequest, ns8__listMessagesResponseType *ns8__listMessagesResponse) |
| 770 | { struct __ns4__listMessages soap_tmp___ns4__listMessages; |
| 771 | if (!soap_endpoint) |
| 772 | soap_endpoint = "http://api.so.telnic.org/so"; |
| 773 | if (!soap_action) |
| 774 | soap_action = "http://ws.telnic.org/so/member/messagestore/listMessagesAction"; |
| 775 | soap->encodingStyle = NULL; |
| 776 | soap_tmp___ns4__listMessages.ns8__listMessagesRequest = ns8__listMessagesRequest; |
| 777 | soap_begin(soap); |
| 778 | soap_serializeheader(soap); |
| 779 | soap_serialize___ns4__listMessages(soap, &soap_tmp___ns4__listMessages); |
| 780 | if (soap_begin_count(soap)) |
| 781 | return soap->error; |
| 782 | if (soap->mode & SOAP_IO_LENGTH) |
| 783 | { if (soap_envelope_begin_out(soap) |
| 784 | || soap_putheader(soap) |
| 785 | || soap_body_begin_out(soap) |
| 786 | || soap_put___ns4__listMessages(soap, &soap_tmp___ns4__listMessages, "-ns4:listMessages", "") |
| 787 | || soap_body_end_out(soap) |
| 788 | || soap_envelope_end_out(soap)) |
| 789 | return soap->error; |
| 790 | } |
| 791 | if (soap_end_count(soap)) |
| 792 | return soap->error; |
| 793 | if (soap_connect(soap, soap_endpoint, soap_action) |
| 794 | || soap_envelope_begin_out(soap) |
| 795 | || soap_putheader(soap) |
| 796 | || soap_body_begin_out(soap) |
| 797 | || soap_put___ns4__listMessages(soap, &soap_tmp___ns4__listMessages, "-ns4:listMessages", "") |
| 798 | || soap_body_end_out(soap) |
| 799 | || soap_envelope_end_out(soap) |
| 800 | || soap_end_send(soap)) |
| 801 | return soap_closesock(soap); |
| 802 | if (!ns8__listMessagesResponse) |
| 803 | return soap_closesock(soap); |
| 804 | ns8__listMessagesResponse->soap_default(soap); |
| 805 | if (soap_begin_recv(soap) |
| 806 | || soap_envelope_begin_in(soap) |
| 807 | || soap_recv_header(soap) |
| 808 | || soap_body_begin_in(soap)) |
| 809 | return soap_closesock(soap); |
| 810 | ns8__listMessagesResponse->soap_get(soap, "ns8:listMessagesResponse", "ns8:listMessagesResponseType"); |
| 811 | if (soap->error) |
| 812 | { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) |
| 813 | return soap_recv_fault(soap); |
| 814 | return soap_closesock(soap); |
| 815 | } |
| 816 | if (soap_body_end_in(soap) |
| 817 | || soap_envelope_end_in(soap) |
| 818 | || soap_end_recv(soap)) |
| 819 | return soap_closesock(soap); |
| 820 | return soap_closesock(soap); |
| 821 | } |
| 822 | |
| 823 | SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns4__getMessage(struct soap *soap, const char *soap_endpoint, const char *soap_action, ns8__getMessageRequestType *ns8__getMessageRequest, ns8__getMessageResponseType *ns8__getMessageResponse) |
| 824 | { struct __ns4__getMessage soap_tmp___ns4__getMessage; |
| 825 | if (!soap_endpoint) |
| 826 | soap_endpoint = "http://api.so.telnic.org/so"; |
| 827 | if (!soap_action) |
| 828 | soap_action = "http://ws.telnic.org/so/member/messagestore/getMessageAction"; |
| 829 | soap->encodingStyle = NULL; |
| 830 | soap_tmp___ns4__getMessage.ns8__getMessageRequest = ns8__getMessageRequest; |
| 831 | soap_begin(soap); |
| 832 | soap_serializeheader(soap); |
| 833 | soap_serialize___ns4__getMessage(soap, &soap_tmp___ns4__getMessage); |
| 834 | if (soap_begin_count(soap)) |
| 835 | return soap->error; |
| 836 | if (soap->mode & SOAP_IO_LENGTH) |
| 837 | { if (soap_envelope_begin_out(soap) |
| 838 | || soap_putheader(soap) |
| 839 | || soap_body_begin_out(soap) |
| 840 | || soap_put___ns4__getMessage(soap, &soap_tmp___ns4__getMessage, "-ns4:getMessage", "") |
| 841 | || soap_body_end_out(soap) |
| 842 | || soap_envelope_end_out(soap)) |
| 843 | return soap->error; |
| 844 | } |
| 845 | if (soap_end_count(soap)) |
| 846 | return soap->error; |
| 847 | if (soap_connect(soap, soap_endpoint, soap_action) |
| 848 | || soap_envelope_begin_out(soap) |
| 849 | || soap_putheader(soap) |
| 850 | || soap_body_begin_out(soap) |
| 851 | || soap_put___ns4__getMessage(soap, &soap_tmp___ns4__getMessage, "-ns4:getMessage", "") |
| 852 | || soap_body_end_out(soap) |
| 853 | || soap_envelope_end_out(soap) |
| 854 | || soap_end_send(soap)) |
| 855 | return soap_closesock(soap); |
| 856 | if (!ns8__getMessageResponse) |
| 857 | return soap_closesock(soap); |
| 858 | ns8__getMessageResponse->soap_default(soap); |
| 859 | if (soap_begin_recv(soap) |
| 860 | || soap_envelope_begin_in(soap) |
| 861 | || soap_recv_header(soap) |
| 862 | || soap_body_begin_in(soap)) |
| 863 | return soap_closesock(soap); |
| 864 | ns8__getMessageResponse->soap_get(soap, "ns8:getMessageResponse", "ns8:getMessageResponseType"); |
| 865 | if (soap->error) |
| 866 | { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) |
| 867 | return soap_recv_fault(soap); |
| 868 | return soap_closesock(soap); |
| 869 | } |
| 870 | if (soap_body_end_in(soap) |
| 871 | || soap_envelope_end_in(soap) |
| 872 | || soap_end_recv(soap)) |
| 873 | return soap_closesock(soap); |
| 874 | return soap_closesock(soap); |
| 875 | } |
| 876 | |
| 877 | SOAP_FMAC5 int SOAP_FMAC6 soap_call___ns4__deleteMessage(struct soap *soap, const char *soap_endpoint, const char *soap_action, ns8__deleteMessageRequestType *ns8__deleteMessageRequest, ns8__deleteMessageResponseType *ns8__deleteMessageResponse) |
| 878 | { struct __ns4__deleteMessage soap_tmp___ns4__deleteMessage; |
| 879 | if (!soap_endpoint) |
| 880 | soap_endpoint = "http://api.so.telnic.org/so"; |
| 881 | if (!soap_action) |
| 882 | soap_action = "http://ws.telnic.org/so/member/messagestore/deleteMessageAction"; |
| 883 | soap->encodingStyle = NULL; |
| 884 | soap_tmp___ns4__deleteMessage.ns8__deleteMessageRequest = ns8__deleteMessageRequest; |
| 885 | soap_begin(soap); |
| 886 | soap_serializeheader(soap); |
| 887 | soap_serialize___ns4__deleteMessage(soap, &soap_tmp___ns4__deleteMessage); |
| 888 | if (soap_begin_count(soap)) |
| 889 | return soap->error; |
| 890 | if (soap->mode & SOAP_IO_LENGTH) |
| 891 | { if (soap_envelope_begin_out(soap) |
| 892 | || soap_putheader(soap) |
| 893 | || soap_body_begin_out(soap) |
| 894 | || soap_put___ns4__deleteMessage(soap, &soap_tmp___ns4__deleteMessage, "-ns4:deleteMessage", "") |
| 895 | || soap_body_end_out(soap) |
| 896 | || soap_envelope_end_out(soap)) |
| 897 | return soap->error; |
| 898 | } |
| 899 | if (soap_end_count(soap)) |
| 900 | return soap->error; |
| 901 | if (soap_connect(soap, soap_endpoint, soap_action) |
| 902 | || soap_envelope_begin_out(soap) |
| 903 | || soap_putheader(soap) |
| 904 | || soap_body_begin_out(soap) |
| 905 | || soap_put___ns4__deleteMessage(soap, &soap_tmp___ns4__deleteMessage, "-ns4:deleteMessage", "") |
| 906 | || soap_body_end_out(soap) |
| 907 | || soap_envelope_end_out(soap) |
| 908 | || soap_end_send(soap)) |
| 909 | return soap_closesock(soap); |
| 910 | if (!ns8__deleteMessageResponse) |
| 911 | return soap_closesock(soap); |
| 912 | ns8__deleteMessageResponse->soap_default(soap); |
| 913 | if (soap_begin_recv(soap) |
| 914 | || soap_envelope_begin_in(soap) |
| 915 | || soap_recv_header(soap) |
| 916 | || soap_body_begin_in(soap)) |
| 917 | return soap_closesock(soap); |
| 918 | ns8__deleteMessageResponse->soap_get(soap, "ns8:deleteMessageResponse", "ns8:deleteMessageResponseType"); |
| 919 | if (soap->error) |
| 920 | { if (soap->error == SOAP_TAG_MISMATCH && soap->level == 2) |
| 921 | return soap_recv_fault(soap); |
| 922 | return soap_closesock(soap); |
| 923 | } |
| 924 | if (soap_body_end_in(soap) |
| 925 | || soap_envelope_end_in(soap) |
| 926 | || soap_end_recv(soap)) |
| 927 | return soap_closesock(soap); |
| 928 | return soap_closesock(soap); |
| 929 | } |
| 930 | |
| 931 | /* End of soapClient.cpp */ |
Note: See TracBrowser
for help on using the browser.








