1 /*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24 */
25
26 /* KMS_DiscoveryClient.cpp
27 Generated by gSOAP 2.7.17 from ../gsoapStubs/DiscoveryService/KMS_Discovery_SOAP.h
28 Copyright(C) 2000-2010, Robert van Engelen, Genivia Inc. All Rights Reserved.
29 This part of the software is released under one of the following licenses:
30 GPL, the gSOAP public license, or Genivia's license for commercial use.
31 */
32
33 #if defined(__BORLANDC__)
34 #pragma option push -w-8060
35 #pragma option push -w-8004
36 #endif
37 #include "KMS_DiscoveryH.h"
38
39 namespace KMS_Discovery {
40
41 SOAP_SOURCE_STAMP("@(#) KMS_DiscoveryClient.cpp ver 2.7.17 2010-06-08 19:16:38 GMT")
42
43
soap_call_KMS_Discovery__DiscoverCluster(struct soap * soap,const char * soap_endpoint,const char * soap_action,void * _,struct KMS_Discovery__DiscoverClusterResponse & result)44 SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_Discovery__DiscoverCluster(struct soap *soap, const char *soap_endpoint, const char *soap_action, void *_, struct KMS_Discovery__DiscoverClusterResponse &result)
45 { struct KMS_Discovery__DiscoverCluster soap_tmp_KMS_Discovery__DiscoverCluster;
46 soap_tmp_KMS_Discovery__DiscoverCluster._ = _;
47 soap_begin(soap);
48 soap_serializeheader(soap);
49 soap_serialize_KMS_Discovery__DiscoverCluster(soap, &soap_tmp_KMS_Discovery__DiscoverCluster);
50 if (soap_begin_count(soap))
51 return soap->error;
52 if (soap->mode & SOAP_IO_LENGTH)
53 { if (soap_envelope_begin_out(soap)
54 || soap_putheader(soap)
55 || soap_body_begin_out(soap)
56 || soap_put_KMS_Discovery__DiscoverCluster(soap, &soap_tmp_KMS_Discovery__DiscoverCluster, "KMS-Discovery:DiscoverCluster", NULL)
57 || soap_body_end_out(soap)
58 || soap_envelope_end_out(soap))
59 return soap->error;
60 }
61 if (soap_end_count(soap))
62 return soap->error;
63 if (soap_connect(soap, soap_endpoint, soap_action)
64 || soap_envelope_begin_out(soap)
65 || soap_putheader(soap)
66 || soap_body_begin_out(soap)
67 || soap_put_KMS_Discovery__DiscoverCluster(soap, &soap_tmp_KMS_Discovery__DiscoverCluster, "KMS-Discovery:DiscoverCluster", NULL)
68 || soap_body_end_out(soap)
69 || soap_envelope_end_out(soap)
70 || soap_end_send(soap))
71 return soap_closesock(soap);
72 if (!&result)
73 return soap_closesock(soap);
74 soap_default_KMS_Discovery__DiscoverClusterResponse(soap, &result);
75 if (soap_begin_recv(soap)
76 || soap_envelope_begin_in(soap)
77 || soap_recv_header(soap)
78 || soap_body_begin_in(soap))
79 return soap_closesock(soap);
80 if (soap_recv_fault(soap, 1))
81 return soap->error;
82 soap_get_KMS_Discovery__DiscoverClusterResponse(soap, &result, "", "");
83 if (soap->error)
84 return soap_recv_fault(soap, 0);
85 if (soap_body_end_in(soap)
86 || soap_envelope_end_in(soap)
87 || soap_end_recv(soap))
88 return soap_closesock(soap);
89 return soap_closesock(soap);
90 }
91
92 } // namespace KMS_Discovery
93
94
95 #if defined(__BORLANDC__)
96 #pragma option pop
97 #pragma option pop
98 #endif
99
100 /* End of KMS_DiscoveryClient.cpp */
101