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_CertificateClient.cpp
27*12720SWyllys.Ingersoll@Sun.COM    Generated by gSOAP 2.7.17 from ../gsoapStubs/CertificateService/KMS_Certificate_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_CertificateH.h"
38*12720SWyllys.Ingersoll@Sun.COM 
39*12720SWyllys.Ingersoll@Sun.COM namespace KMS_Certificate {
40*12720SWyllys.Ingersoll@Sun.COM 
41*12720SWyllys.Ingersoll@Sun.COM SOAP_SOURCE_STAMP("@(#) KMS_CertificateClient.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_Certificate__RetrieveEntityCertificate(struct soap * soap,const char * soap_endpoint,const char * soap_action,char * EntityID,struct xsd__hexBinary ClientAuthenticationResponse,struct xsd__hexBinary ServerAuthenticationChallenge,struct KMS_Certificate__RetrieveEntityCertificateResponse & result)44*12720SWyllys.Ingersoll@Sun.COM SOAP_FMAC5 int SOAP_FMAC6 soap_call_KMS_Certificate__RetrieveEntityCertificate(struct soap *soap, const char *soap_endpoint, const char *soap_action, char *EntityID, struct xsd__hexBinary ClientAuthenticationResponse, struct xsd__hexBinary ServerAuthenticationChallenge, struct KMS_Certificate__RetrieveEntityCertificateResponse &result)
45*12720SWyllys.Ingersoll@Sun.COM {	struct KMS_Certificate__RetrieveEntityCertificate soap_tmp_KMS_Certificate__RetrieveEntityCertificate;
46*12720SWyllys.Ingersoll@Sun.COM 	soap_tmp_KMS_Certificate__RetrieveEntityCertificate.EntityID = EntityID;
47*12720SWyllys.Ingersoll@Sun.COM 	soap_tmp_KMS_Certificate__RetrieveEntityCertificate.ClientAuthenticationResponse = ClientAuthenticationResponse;
48*12720SWyllys.Ingersoll@Sun.COM 	soap_tmp_KMS_Certificate__RetrieveEntityCertificate.ServerAuthenticationChallenge = ServerAuthenticationChallenge;
49*12720SWyllys.Ingersoll@Sun.COM 	soap_begin(soap);
50*12720SWyllys.Ingersoll@Sun.COM 	soap_serializeheader(soap);
51*12720SWyllys.Ingersoll@Sun.COM 	soap_serialize_KMS_Certificate__RetrieveEntityCertificate(soap, &soap_tmp_KMS_Certificate__RetrieveEntityCertificate);
52*12720SWyllys.Ingersoll@Sun.COM 	if (soap_begin_count(soap))
53*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
54*12720SWyllys.Ingersoll@Sun.COM 	if (soap->mode & SOAP_IO_LENGTH)
55*12720SWyllys.Ingersoll@Sun.COM 	{	if (soap_envelope_begin_out(soap)
56*12720SWyllys.Ingersoll@Sun.COM 		 || soap_putheader(soap)
57*12720SWyllys.Ingersoll@Sun.COM 		 || soap_body_begin_out(soap)
58*12720SWyllys.Ingersoll@Sun.COM 		 || soap_put_KMS_Certificate__RetrieveEntityCertificate(soap, &soap_tmp_KMS_Certificate__RetrieveEntityCertificate, "KMS-Certificate:RetrieveEntityCertificate", NULL)
59*12720SWyllys.Ingersoll@Sun.COM 		 || soap_body_end_out(soap)
60*12720SWyllys.Ingersoll@Sun.COM 		 || soap_envelope_end_out(soap))
61*12720SWyllys.Ingersoll@Sun.COM 			 return soap->error;
62*12720SWyllys.Ingersoll@Sun.COM 	}
63*12720SWyllys.Ingersoll@Sun.COM 	if (soap_end_count(soap))
64*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
65*12720SWyllys.Ingersoll@Sun.COM 	if (soap_connect(soap, soap_endpoint, soap_action)
66*12720SWyllys.Ingersoll@Sun.COM 	 || soap_envelope_begin_out(soap)
67*12720SWyllys.Ingersoll@Sun.COM 	 || soap_putheader(soap)
68*12720SWyllys.Ingersoll@Sun.COM 	 || soap_body_begin_out(soap)
69*12720SWyllys.Ingersoll@Sun.COM 	 || soap_put_KMS_Certificate__RetrieveEntityCertificate(soap, &soap_tmp_KMS_Certificate__RetrieveEntityCertificate, "KMS-Certificate:RetrieveEntityCertificate", NULL)
70*12720SWyllys.Ingersoll@Sun.COM 	 || soap_body_end_out(soap)
71*12720SWyllys.Ingersoll@Sun.COM 	 || soap_envelope_end_out(soap)
72*12720SWyllys.Ingersoll@Sun.COM 	 || soap_end_send(soap))
73*12720SWyllys.Ingersoll@Sun.COM 		return soap_closesock(soap);
74*12720SWyllys.Ingersoll@Sun.COM 	if (!&result)
75*12720SWyllys.Ingersoll@Sun.COM 		return soap_closesock(soap);
76*12720SWyllys.Ingersoll@Sun.COM 	soap_default_KMS_Certificate__RetrieveEntityCertificateResponse(soap, &result);
77*12720SWyllys.Ingersoll@Sun.COM 	if (soap_begin_recv(soap)
78*12720SWyllys.Ingersoll@Sun.COM 	 || soap_envelope_begin_in(soap)
79*12720SWyllys.Ingersoll@Sun.COM 	 || soap_recv_header(soap)
80*12720SWyllys.Ingersoll@Sun.COM 	 || soap_body_begin_in(soap))
81*12720SWyllys.Ingersoll@Sun.COM 		return soap_closesock(soap);
82*12720SWyllys.Ingersoll@Sun.COM 	if (soap_recv_fault(soap, 1))
83*12720SWyllys.Ingersoll@Sun.COM 		return soap->error;
84*12720SWyllys.Ingersoll@Sun.COM 	soap_get_KMS_Certificate__RetrieveEntityCertificateResponse(soap, &result, "", "");
85*12720SWyllys.Ingersoll@Sun.COM 	if (soap->error)
86*12720SWyllys.Ingersoll@Sun.COM 		return soap_recv_fault(soap, 0);
87*12720SWyllys.Ingersoll@Sun.COM 	if (soap_body_end_in(soap)
88*12720SWyllys.Ingersoll@Sun.COM 	 || soap_envelope_end_in(soap)
89*12720SWyllys.Ingersoll@Sun.COM 	 || soap_end_recv(soap))
90*12720SWyllys.Ingersoll@Sun.COM 		return soap_closesock(soap);
91*12720SWyllys.Ingersoll@Sun.COM 	return soap_closesock(soap);
92*12720SWyllys.Ingersoll@Sun.COM }
93*12720SWyllys.Ingersoll@Sun.COM 
94*12720SWyllys.Ingersoll@Sun.COM } // namespace KMS_Certificate
95*12720SWyllys.Ingersoll@Sun.COM 
96*12720SWyllys.Ingersoll@Sun.COM 
97*12720SWyllys.Ingersoll@Sun.COM #if defined(__BORLANDC__)
98*12720SWyllys.Ingersoll@Sun.COM #pragma option pop
99*12720SWyllys.Ingersoll@Sun.COM #pragma option pop
100*12720SWyllys.Ingersoll@Sun.COM #endif
101*12720SWyllys.Ingersoll@Sun.COM 
102*12720SWyllys.Ingersoll@Sun.COM /* End of KMS_CertificateClient.cpp */
103