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








