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