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