You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by na...@apache.org on 2006/01/10 07:12:32 UTC

svn commit: r367500 - /webservices/axis2/trunk/c/modules/xml/soap/soap_model_builder.c

Author: nandika
Date: Mon Jan  9 22:12:27 2006
New Revision: 367500

URL: http://svn.apache.org/viewcvs?rev=367500&view=rev
Log:
builder added 

Added:
    webservices/axis2/trunk/c/modules/xml/soap/soap_model_builder.c

Added: webservices/axis2/trunk/c/modules/xml/soap/soap_model_builder.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/soap_model_builder.c?rev=367500&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/soap_model_builder.c (added)
+++ webservices/axis2/trunk/c/modules/xml/soap/soap_model_builder.c Mon Jan  9 22:12:27 2006
@@ -0,0 +1,85 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
+ #include <axis2_soap_model_builder.h>
+ #include <axis2_soap_message.h>
+ #include <axis2_soap_envelope.h>
+ 
+ 
+ /*********************** impl struct *****************************************/
+ 
+ typedef struct axis2_soap_model_builder_impl_t
+ {
+    axis2_soap_model_builder_t soap_builder;
+    
+    axis2_om_stax_builder_t *om_builder;
+    
+    axis2_soap_message_t *soap_message;
+    
+    axis2_soap_envelope_t *soap_envelope;
+    
+    axis2_bool_t header_present;
+    
+    axis2_bool_t body_present;
+    
+    int element_level;
+    
+    axis2_bool_t processing_fault;
+    
+    axis2_bool_t processing_detail_elements;
+    
+    axis2_char_t* sender_fault_code;
+    
+    axis2_char_t* receiver_fault_code;
+    
+    axis2_bool_t processing_mandatory_fault_elements;
+    
+}axis2_soap_model_builder_impl_t;
+
+/***************** Macro ******************************************************/
+
+ #define AXIS2_INTF_TO_IMPL(builder) ((axis2_soap_model_builder_impl_t*)builder)
+ 
+ /**************** function prototypes ****************************************/
+ 
+axis2_status_t AXIS2_CALL 
+axis2_soap_model_builder_free(axis2_soap_model_builder_t *builder,
+                              axis2_env_t **env);
+
+axis2_soap_envelope_t* AXIS2_CALL 
+axis2_soap_model_builder_get_soap_envelope
+                                (axis2_soap_model_builder_t *builder,
+                                 axis2_env_t **env);
+                                
+axis2_om_document_t* AXIS2_CALL 
+axis2_soap_model_builder_get_document
+                                (axis2_soap_model_builder_t *builder,
+                                 axis2_env_t **env);
+                                
+axis2_om_node_t * AXIS2_CALL
+axis2_soap_model_builder_next(axis2_soap_model_builder_t *builder,
+                              axis2_env_t **env);
+                                    
+axis2_om_node_t* AXIS2_CALL
+axis2_soap_model_builder_get_document_element
+                                (axis2_soap_model_builder_t *builder,
+                                 axis2_env_t **env); 
+                                 
+static void identify_soap_version(axis2_char_t* soap_version_uri_from_transport);
+
+
+static void parse_headers();
+