1 /*
2 * Copyright 1999-2006 University of Chicago
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #include "globus_i_service_engine.h"
18
19 /**
20 * Serialize the end of a SOAP response
21 * @ingroup globus_service_engine
22 * @internal
23 *
24 * @param message
25 * SOAP Message handle to prepare for writing a SOAP response.
26 *
27 * @retval GLOBUS_SUCCESS
28 * @retval GLOBUS_SERVICE_ENGINE_ERROR_TYPE_FAILED_RESPONSE
29 */
30 globus_result_t
31 globus_service_session_end_response(
32 globus_soap_message_handle_t message)
33 10903 {
34 10903 globus_result_t result = GLOBUS_SUCCESS;
35 GlobusFuncName(globus_service_session_end_response);
36 10903 GlobusServiceEngineDebugEnter();
37
38 10903 result = globus_soap_message_serialize_body_end(message);
39 10903 if(result != GLOBUS_SUCCESS)
40 {
41 0 result = GlobusServiceEngineErrorFailedResponse(result);
42 0 goto exit;
43 }
44
45 10903 result = globus_soap_message_serialize_envelope_end(message);
46 10903 if(result != GLOBUS_SUCCESS)
47 {
48 0 result = GlobusServiceEngineErrorFailedResponse(result);
49 0 goto exit;
50 }
51
52 10903 exit:
53
54 10903 GlobusServiceEngineDebugExit();
55 10903 return result;
56 }