You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by na...@apache.org on 2006/03/27 06:06:02 UTC
svn commit: r389016 [3/5] - in /webservices/axis2/trunk/c: include/
modules/core/context/ modules/core/description/ modules/core/engine/
modules/mod_addr/ modules/util/ modules/xml/om/ test/resources/xml/
test/resources/xml/om/ test/resources/xml/soap/...
Modified: webservices/axis2/trunk/c/modules/util/axis2_string.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/axis2_string.h?rev=389016&r1=389015&r2=389016&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/axis2_string.h (original)
+++ webservices/axis2/trunk/c/modules/util/axis2_string.h Sun Mar 26 20:05:56 2006
@@ -33,19 +33,23 @@
*/
AXIS2_DECLARE(void*)
- axis2_strdup (const void *ptr, axis2_env_t **env);
+ axis2_strdup (const void *ptr,
+ axis2_env_t **env);
AXIS2_DECLARE(int)
- axis2_strcmp (const axis2_char_t * s1, const axis2_char_t * s2);
+ axis2_strcmp (const axis2_char_t * s1,
+ const axis2_char_t * s2);
AXIS2_DECLARE(axis2_ssize_t)
axis2_strlen(const axis2_char_t * s);
AXIS2_DECLARE(int)
- axis2_strcasecmp(const axis2_char_t *s1, axis2_char_t *s2);
+ axis2_strcasecmp(const axis2_char_t *s1,
+ axis2_char_t *s2);
AXIS2_DECLARE(int)
- axis2_strncasecmp(const axis2_char_t *s1, axis2_char_t *s2, int n);
+ axis2_strncasecmp(const axis2_char_t *s1,
+ axis2_char_t *s2, int n);
/* much similar to the strcat behaviour. But the difference is
* this allocates new memory to put the conatenated string rather than
@@ -53,23 +57,41 @@
* memory for the return value
*/
AXIS2_DECLARE(axis2_char_t*)
- axis2_stracat(const axis2_char_t *s1, const axis2_char_t *s2, axis2_env_t **env);
+ axis2_stracat(const axis2_char_t *s1, const
+ axis2_char_t *s2,
+ axis2_env_t **env);
AXIS2_DECLARE(axis2_char_t *)
axis2_strstr (const axis2_char_t *heystack,
- const axis2_char_t *needle);
+ const axis2_char_t *needle);
AXIS2_DECLARE(axis2_char_t *)
- axis2_rindex(const axis2_char_t *s, axis2_char_t c);
+ axis2_rindex(const axis2_char_t *s,
+ axis2_char_t c);
-#define AXIS2_STRDUP(pts, env) axis2_strdup(pts, env)
-#define AXIS2_STRCMP(s1, s2) axis2_strcmp(s1, s2)
-#define AXIS2_STRLEN(s) axis2_strlen(s)
-#define AXIS2_STRCASECMP(s1,s2) axis2_strcasecmp(s1,s2)
-#define AXIS2_STRNCASECMP(s1,s2,n) axis2_strncasecmp(s1,s2,n)
-#define AXIS2_STRACAT(s1, s2, env) axis2_stracat(s1, s2, env)
-#define AXIS2_STRSTR(s1, s2) axis2_strstr(s1, s2)
-#define AXIS2_RINDEX(s, c) axis2_rindex(s, c)
+#define AXIS2_STRDUP(pts, env) \
+ axis2_strdup(pts, env)
+
+#define AXIS2_STRCMP(s1, s2) \
+ axis2_strcmp(s1, s2)
+
+#define AXIS2_STRLEN(s) \
+ axis2_strlen(s)
+
+#define AXIS2_STRCASECMP(s1,s2) \
+ axis2_strcasecmp(s1,s2)
+
+#define AXIS2_STRNCASECMP(s1,s2,n) \
+ axis2_strncasecmp(s1,s2,n)
+
+#define AXIS2_STRACAT(s1, s2, env) \
+ axis2_stracat(s1, s2, env)
+
+#define AXIS2_STRSTR(s1, s2) \
+ axis2_strstr(s1, s2)
+
+#define AXIS2_RINDEX(s, c) \
+ axis2_rindex(s, c)
/** @} */
Modified: webservices/axis2/trunk/c/modules/util/string.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/string.c?rev=389016&r1=389015&r2=389016&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/string.c (original)
+++ webservices/axis2/trunk/c/modules/util/string.c Sun Mar 26 20:05:56 2006
@@ -116,16 +116,16 @@
}
-AXIS2_DECLARE(axis2_char_t *)
-axis2_rindex(const axis2_char_t *_s, axis2_char_t _ch)
-{
- int i,ilen = strlen(_s);
- if (ilen < 1)
- return NULL;
- for (i=ilen-1;i>=0;i--)
- {
- if (_s[i] == _ch)
- return _s+i;
- }
- return NULL;
+AXIS2_DECLARE(axis2_char_t *)
+axis2_rindex(const axis2_char_t *_s, axis2_char_t _ch)
+{
+ int i,ilen = strlen(_s);
+ if (ilen < 1)
+ return NULL;
+ for (i=ilen-1;i>=0;i--)
+ {
+ if (_s[i] == _ch)
+ return (axis2_char_t *)(_s+i);
+ }
+ return NULL;
}
Modified: webservices/axis2/trunk/c/modules/xml/om/Makefile.am
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/Makefile.am?rev=389016&r1=389015&r2=389016&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/Makefile.am (original)
+++ webservices/axis2/trunk/c/modules/xml/om/Makefile.am Sun Mar 26 20:05:56 2006
@@ -15,6 +15,7 @@
om_children_qname_iterator.c \
om_child_element_iterator.c \
om_children_with_specific_attribute_iterator.c \
+ om_navigator.c \
om_output_format.c
libaxis2_om_la_LIBADD = ../../util/libaxis2_util.la ../attachments/libaxis2_attachments.la
Modified: webservices/axis2/trunk/c/modules/xml/om/om_element.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/om_element.c?rev=389016&r1=389015&r2=389016&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/om_element.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/om_element.c Sun Mar 26 20:05:56 2006
@@ -447,7 +447,7 @@
{
void *ns = NULL;
- if (!prefix || axis2_strcmp ( prefix, "") == 0)
+ if (!prefix || AXIS2_STRCMP( prefix, "") == 0)
{
/** prefix is null , so iterate the namespaces hash to find the namespace */
for (hashindex = axis2_hash_first (AXIS2_INTF_TO_IMPL(element)->namespaces, env);
@@ -526,7 +526,7 @@
AXIS2_OM_NAMESPACE_GET_URI(ns, env),
AXIS2_OM_NAMESPACE_GET_PREFIX(ns ,env));
- if (declared_ns)
+ if (NULL != declared_ns)
{
/*Namespace already declared, so return */
return AXIS2_SUCCESS;
Added: webservices/axis2/trunk/c/modules/xml/om/om_navigator.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/om_navigator.c?rev=389016&view=auto
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/om_navigator.c (added)
+++ webservices/axis2/trunk/c/modules/xml/om/om_navigator.c Sun Mar 26 20:05:56 2006
@@ -0,0 +1,269 @@
+/*
+ * 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_om_navigator.h>
+
+/*************************** function prototypes ******************************************/
+axis2_status_t AXIS2_CALL
+axis2_om_navigator_free(axis2_om_navigator_t *om__navigator,
+ axis2_env_t **env);
+
+axis2_bool_t AXIS2_CALL
+axis2_om_navigator_is_navigable(axis2_om_navigator_t *om_navigator,
+ axis2_env_t **env);
+
+axis2_bool_t AXIS2_CALL
+axis2_om_navigator_is_completed(axis2_om_navigator_t *om_navigator,
+ axis2_env_t **env);
+
+axis2_bool_t AXIS2_CALL
+axis2_om_navigator_visited(axis2_om_navigator_t *om_navigator,
+ axis2_env_t **env);
+
+axis2_om_node_t* AXIS2_CALL
+axis2_om_navigator_next(axis2_om_navigator_t *om_navigator,
+ axis2_env_t **env);
+
+static void
+axis2_om_navigator_update_next_node(axis2_om_navigator_t *om_navigator,
+ axis2_env_t **env);
+/************************************************************************************/
+
+typedef struct axis2_om_navigator_impl
+{
+ axis2_om_navigator_t navigator;
+
+ axis2_om_node_t *node;
+
+ axis2_bool_t visited;
+
+ axis2_om_node_t *next;
+
+ axis2_om_node_t *root;
+
+ axis2_bool_t backtracked;
+
+ axis2_bool_t end;
+
+ axis2_bool_t start;
+
+}axis2_om_navigator_impl_t;
+
+
+/****************************** Macro ***************************************/
+
+#define AXIS2_INTF_TO_IMPL(navigator) ((axis2_om_navigator_impl_t *)navigator)
+
+/*****************************************************************************/
+
+AXIS2_DECLARE(axis2_om_navigator_t *)
+axis2_om_navigator_create(axis2_env_t **env,
+ axis2_om_node_t *om_node)
+{
+ axis2_om_navigator_impl_t *navigator_impl = NULL;
+ AXIS2_ENV_CHECK(env, NULL);
+ AXIS2_PARAM_CHECK((*env)->error, om_node, NULL);
+
+ navigator_impl = (axis2_om_navigator_impl_t *)
+ AXIS2_MALLOC((*env)->allocator, sizeof(axis2_om_navigator_impl_t));
+ if(!navigator_impl)
+ {
+ AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ return NULL;
+ }
+
+ navigator_impl->node = NULL;
+ navigator_impl->visited = AXIS2_FALSE;
+ navigator_impl->next = NULL;
+ navigator_impl->root = NULL;
+ navigator_impl->end = AXIS2_FALSE;
+ navigator_impl->start = AXIS2_TRUE;
+ navigator_impl->backtracked = AXIS2_FALSE;
+
+ navigator_impl->next = om_node;
+ navigator_impl->root = om_node;
+
+ navigator_impl->navigator.ops = (axis2_om_navigator_ops_t*)AXIS2_MALLOC(
+ (*env)->allocator, sizeof(axis2_om_navigator_ops_t));
+
+ if(!(navigator_impl->navigator.ops))
+ {
+ AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+ AXIS2_FREE((*env)->allocator, navigator_impl);
+ navigator_impl = NULL;
+ return NULL;
+ };
+
+ navigator_impl->navigator.ops->free =
+ axis2_om_navigator_free;
+
+ navigator_impl->navigator.ops->is_navigable =
+ axis2_om_navigator_is_navigable;
+
+ navigator_impl->navigator.ops->is_completed =
+ axis2_om_navigator_is_completed;
+
+ navigator_impl->navigator.ops->visited =
+ axis2_om_navigator_visited;
+
+ navigator_impl->navigator.ops->next =
+ axis2_om_navigator_next;
+
+ return &(navigator_impl->navigator);
+}
+
+
+axis2_status_t AXIS2_CALL
+axis2_om_navigator_free(axis2_om_navigator_t *om_navigator,
+ axis2_env_t **env)
+{
+ AXIS2_ENV_CHECK(env , AXIS2_FAILURE);
+
+ if(NULL != om_navigator->ops)
+ {
+ AXIS2_FREE((*env)->allocator, om_navigator->ops);
+ om_navigator->ops = NULL;
+ }
+
+ AXIS2_FREE((*env)->allocator, AXIS2_INTF_TO_IMPL(om_navigator));
+ om_navigator = NULL;
+ return AXIS2_SUCCESS;
+}
+
+axis2_bool_t AXIS2_CALL
+axis2_om_navigator_is_navigable(axis2_om_navigator_t *om_navigator,
+ axis2_env_t **env)
+{
+ axis2_om_navigator_impl_t *navigator_impl = NULL;
+ AXIS2_ENV_CHECK(env, AXIS2_FALSE);
+
+ navigator_impl = AXIS2_INTF_TO_IMPL(om_navigator);
+ if(AXIS2_TRUE == navigator_impl->end )
+ return AXIS2_FALSE;
+ else
+ {
+ if(NULL != navigator_impl->next)
+ return AXIS2_TRUE;
+ }
+ return AXIS2_FALSE;
+}
+
+
+axis2_bool_t AXIS2_CALL
+axis2_om_navigator_is_completed(axis2_om_navigator_t *om_navigator,
+ axis2_env_t **env)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FALSE);
+ return AXIS2_INTF_TO_IMPL(om_navigator)->end;
+}
+
+
+axis2_bool_t AXIS2_CALL
+axis2_om_navigator_visited(axis2_om_navigator_t *om_navigator,
+ axis2_env_t **env)
+{
+ AXIS2_ENV_CHECK(env, AXIS2_FALSE);
+ return AXIS2_INTF_TO_IMPL(om_navigator)->visited;
+}
+
+
+axis2_om_node_t* AXIS2_CALL
+axis2_om_navigator_next(axis2_om_navigator_t *om_navigator,
+ axis2_env_t **env)
+{
+ axis2_om_navigator_impl_t *navigator_impl = NULL;
+ AXIS2_ENV_CHECK(env, NULL);
+
+ navigator_impl = AXIS2_INTF_TO_IMPL(om_navigator);
+
+ if(NULL == navigator_impl->next)
+ return NULL;
+
+ navigator_impl->node = navigator_impl->next;
+ navigator_impl->visited = navigator_impl->backtracked;
+ navigator_impl->backtracked = AXIS2_FALSE;
+
+ axis2_om_navigator_update_next_node(om_navigator, env);
+
+
+ /** set the starting and ending flags */
+ if(navigator_impl->root == navigator_impl->next)
+ {
+ if(!(navigator_impl->start))
+ {
+ navigator_impl->end = AXIS2_TRUE;
+ }
+ else
+ {
+ navigator_impl->start = AXIS2_FALSE;
+ }
+ }
+ return navigator_impl->node;
+}
+/** this method encapsulate searching logic */
+static void
+axis2_om_navigator_update_next_node(axis2_om_navigator_t *om_navigator,
+ axis2_env_t **env)
+{
+ axis2_om_navigator_impl_t *navigator_impl = NULL;
+ if(!om_navigator)
+ return;
+
+ navigator_impl = AXIS2_INTF_TO_IMPL(om_navigator);
+
+ if(!navigator_impl->next)
+ return;
+
+ if((AXIS2_OM_ELEMENT == AXIS2_OM_NODE_GET_NODE_TYPE(navigator_impl->next, env)) &&
+ !(navigator_impl->visited))
+ {
+ if(NULL != AXIS2_OM_NODE_GET_FIRST_CHILD(navigator_impl->next, env))
+ {
+ navigator_impl->next = AXIS2_OM_NODE_GET_FIRST_CHILD(navigator_impl->next, env);
+ }
+ else if(AXIS2_TRUE == AXIS2_OM_NODE_GET_BUILD_STATUS(navigator_impl->next, env))
+ {
+ navigator_impl->backtracked = AXIS2_TRUE;
+ }
+ else
+ {
+ navigator_impl->next = NULL;
+ }
+ }
+ else
+ {
+ axis2_om_node_t *parent = NULL;
+ axis2_om_node_t *next_sibling = NULL;
+
+ next_sibling = AXIS2_OM_NODE_GET_NEXT_SIBLING(navigator_impl->next, env);
+
+ parent = AXIS2_OM_NODE_GET_PARENT(navigator_impl->next, env);
+
+ if(NULL != next_sibling)
+ {
+ navigator_impl->next = next_sibling;
+ }
+ else if((NULL != parent) && AXIS2_OM_NODE_GET_BUILD_STATUS(parent, env))
+ {
+ navigator_impl->next = parent;
+ navigator_impl->backtracked = AXIS2_TRUE;
+ }
+ else
+ {
+ navigator_impl->next = NULL;
+ }
+ }
+}
Modified: webservices/axis2/trunk/c/modules/xml/om/om_node.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/om_node.c?rev=389016&r1=389015&r2=389016&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/om_node.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/om_node.c Sun Mar 26 20:05:56 2006
@@ -649,7 +649,6 @@
axis2_om_node_get_build_status(axis2_om_node_t *om_node,
axis2_env_t **env)
{
- /* on error what value should be returned ?...*/
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
return AXIS2_INTF_TO_IMPL(om_node)->done;
Added: webservices/axis2/trunk/c/test/resources/xml/soap/OMElementTest.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/xml/soap/OMElementTest.xml?rev=389016&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/resources/xml/soap/OMElementTest.xml (added)
+++ webservices/axis2/trunk/c/test/resources/xml/soap/OMElementTest.xml Sun Mar 26 20:05:56 2006
@@ -0,0 +1,22 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">
+ uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">
+ http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
+ </Address>
+ </wsa:From>
+ </soapenv:Header>
+ <soapenv:Body>
+ <axis2:echoVoid xmlns:axis2="http://ws.apache.org/axis2">This is some text
+ <axis2:input>2</axis2:input>
+ Some Other Text
+ </axis2:echoVoid>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Copied: webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/bodyNotQualified.xml (from r389013, webservices/axis2/trunk/c/test/xml/soap/badsoap/bodyNotQualified.xml)
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/bodyNotQualified.xml?p2=webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/bodyNotQualified.xml&p1=webservices/axis2/trunk/c/test/xml/soap/badsoap/bodyNotQualified.xml&r1=389013&r2=389016&rev=389016&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/xml/soap/badsoap/bodyNotQualified.xml (original)
+++ webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/bodyNotQualified.xml Sun Mar 26 20:05:56 2006
@@ -1,19 +1,19 @@
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- <soapenv:Header>
- <wsa:MessageID soapenv:mustUnderstand="0">
- uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
- <wsa:To soapenv:mustUnderstand="0">
- http://localhost:8081/axis/services/BankPort</wsa:To>
- <wsa:From soapenv:mustUnderstand="0">
- <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
- </Address>
- </wsa:From>
- </soapenv:Header>
- <soapenv:Body>
- <echoVoid></echoVoid>
- </soapenv:Body>
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">
+ uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">
+ http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
+ </Address>
+ </wsa:From>
+ </soapenv:Header>
+ <soapenv:Body>
+ <echoVoid></echoVoid>
+ </soapenv:Body>
</soapenv:Envelope>
Copied: webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/envelopeMissing.xml (from r389013, webservices/axis2/trunk/c/test/xml/soap/badsoap/envelopeMissing.xml)
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/envelopeMissing.xml?p2=webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/envelopeMissing.xml&p1=webservices/axis2/trunk/c/test/xml/soap/badsoap/envelopeMissing.xml&r1=389013&r2=389016&rev=389016&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/xml/soap/badsoap/envelopeMissing.xml (original)
+++ webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/envelopeMissing.xml Sun Mar 26 20:05:56 2006
@@ -1,20 +1,20 @@
-<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- <soapenv:Header>
- <wsa:MessageID soapenv:mustUnderstand="0">
- uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
- <wsa:To soapenv:mustUnderstand="0">
- http://localhost:8081/axis/services/BankPort</wsa:To>
- <wsa:From soapenv:mustUnderstand="0">
- <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
- </Address>
- </wsa:From>
- </soapenv:Header>
- <soapenv:Body>
- <axis2:echoVoid xmlns:axis2="http://ws.apache.org/axis2">
- </axis2:echoVoid>
- </soapenv:Body>
+<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">
+ uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">
+ http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
+ </Address>
+ </wsa:From>
+ </soapenv:Header>
+ <soapenv:Body>
+ <axis2:echoVoid xmlns:axis2="http://ws.apache.org/axis2">
+ </axis2:echoVoid>
+ </soapenv:Body>
</soapenv:Body>
Copied: webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/haederBodyWrongOrder.xml (from r389013, webservices/axis2/trunk/c/test/xml/soap/badsoap/haederBodyWrongOrder.xml)
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/haederBodyWrongOrder.xml?p2=webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/haederBodyWrongOrder.xml&p1=webservices/axis2/trunk/c/test/xml/soap/badsoap/haederBodyWrongOrder.xml&r1=389013&r2=389016&rev=389016&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/xml/soap/badsoap/haederBodyWrongOrder.xml (original)
+++ webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/haederBodyWrongOrder.xml Sun Mar 26 20:05:56 2006
@@ -1,20 +1,20 @@
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- <soapenv:Body>
- <axis2:echoVoid xmlns:axis2="http://ws.apache.org/axis2">
- </axis2:echoVoid>
- </soapenv:Body>
- <soapenv:Header>
- <wsa:MessageID soapenv:mustUnderstand="0">
- uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
- <wsa:To soapenv:mustUnderstand="0">
- http://localhost:8081/axis/services/BankPort</wsa:To>
- <wsa:From soapenv:mustUnderstand="0">
- <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
- </Address>
- </wsa:From>
- </soapenv:Header>
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ <soapenv:Body>
+ <axis2:echoVoid xmlns:axis2="http://ws.apache.org/axis2">
+ </axis2:echoVoid>
+ </soapenv:Body>
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">
+ uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">
+ http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
+ </Address>
+ </wsa:From>
+ </soapenv:Header>
</soapenv:Envelope>
Copied: webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/notnamespaceQualified.xml (from r389013, webservices/axis2/trunk/c/test/xml/soap/badsoap/notnamespaceQualified.xml)
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/notnamespaceQualified.xml?p2=webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/notnamespaceQualified.xml&p1=webservices/axis2/trunk/c/test/xml/soap/badsoap/notnamespaceQualified.xml&r1=389013&r2=389016&rev=389016&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/xml/soap/badsoap/notnamespaceQualified.xml (original)
+++ webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/notnamespaceQualified.xml Sun Mar 26 20:05:56 2006
@@ -1,15 +1,15 @@
-<Envelope>
- <Header>
- <MessageID mustUnderstand="0">uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5
- </MessageID>
- <To mustUnderstand="0">http://localhost:8081/axis/services/BankPort</To>
- <From mustUnderstand="0">
- <Address>
- http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
- </Address>
- </From>
- </Header>
- <Body>
- <echoVoid></echoVoid>
- </Body>
+<Envelope>
+ <Header>
+ <MessageID mustUnderstand="0">uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5
+ </MessageID>
+ <To mustUnderstand="0">http://localhost:8081/axis/services/BankPort</To>
+ <From mustUnderstand="0">
+ <Address>
+ http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
+ </Address>
+ </From>
+ </Header>
+ <Body>
+ <echoVoid></echoVoid>
+ </Body>
</Envelope>
Copied: webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/twoBodymessage.xml (from r389013, webservices/axis2/trunk/c/test/xml/soap/badsoap/twoBodymessage.xml)
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/twoBodymessage.xml?p2=webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/twoBodymessage.xml&p1=webservices/axis2/trunk/c/test/xml/soap/badsoap/twoBodymessage.xml&r1=389013&r2=389016&rev=389016&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/xml/soap/badsoap/twoBodymessage.xml (original)
+++ webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/twoBodymessage.xml Sun Mar 26 20:05:56 2006
@@ -1,24 +1,24 @@
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- <soapenv:Header>
- <wsa:MessageID soapenv:mustUnderstand="0">
- uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
- <wsa:To soapenv:mustUnderstand="0">
- http://localhost:8081/axis/services/BankPort</wsa:To>
- <wsa:From soapenv:mustUnderstand="0">
- <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
- </Address>
- </wsa:From>
- </soapenv:Header>
- <soapenv:Body>
- <axis2:echoVoid xmlns:axis2="http://ws.apache.org/axis2">
- </axis2:echoVoid>
- </soapenv:Body>
- <soapenv:Body>
- <axis2:echoVoid xmlns:axis2="http://ws.apache.org/axis2">
- </axis2:echoVoid>
- </soapenv:Body>
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">
+ uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">
+ http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
+ </Address>
+ </wsa:From>
+ </soapenv:Header>
+ <soapenv:Body>
+ <axis2:echoVoid xmlns:axis2="http://ws.apache.org/axis2">
+ </axis2:echoVoid>
+ </soapenv:Body>
+ <soapenv:Body>
+ <axis2:echoVoid xmlns:axis2="http://ws.apache.org/axis2">
+ </axis2:echoVoid>
+ </soapenv:Body>
</soapenv:Envelope>
Copied: webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/twoheaders.xml (from r389013, webservices/axis2/trunk/c/test/xml/soap/badsoap/twoheaders.xml)
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/twoheaders.xml?p2=webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/twoheaders.xml&p1=webservices/axis2/trunk/c/test/xml/soap/badsoap/twoheaders.xml&r1=389013&r2=389016&rev=389016&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/xml/soap/badsoap/twoheaders.xml (original)
+++ webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/twoheaders.xml Sun Mar 26 20:05:56 2006
@@ -1,29 +1,29 @@
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- <soapenv:Header>
- <wsa:MessageID soapenv:mustUnderstand="0">
- uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
- <wsa:To soapenv:mustUnderstand="0">
- http://localhost:8081/axis/services/BankPort</wsa:To>
- <wsa:From soapenv:mustUnderstand="0">
- <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
- </Address>
- </wsa:From>
- </soapenv:Header>
- <soapenv:Header>
- <wsa:MessageID soapenv:mustUnderstand="0">
- uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
- <wsa:To soapenv:mustUnderstand="0">
- http://localhost:8081/axis/services/BankPort</wsa:To>
- <wsa:From soapenv:mustUnderstand="0">
- <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
- </Address>
- </wsa:From>
- </soapenv:Header>
- <soapenv:Body>
- </soapenv:Body>
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">
+ uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">
+ http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
+ </Address>
+ </wsa:From>
+ </soapenv:Header>
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">
+ uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">
+ http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
+ </Address>
+ </wsa:From>
+ </soapenv:Header>
+ <soapenv:Body>
+ </soapenv:Body>
</soapenv:Envelope>
Copied: webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/wrongSoapNs.xml (from r389013, webservices/axis2/trunk/c/test/xml/soap/badsoap/wrongSoapNs.xml)
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/wrongSoapNs.xml?p2=webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/wrongSoapNs.xml&p1=webservices/axis2/trunk/c/test/xml/soap/badsoap/wrongSoapNs.xml&r1=389013&r2=389016&rev=389016&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/xml/soap/badsoap/wrongSoapNs.xml (original)
+++ webservices/axis2/trunk/c/test/resources/xml/soap/badsoap/wrongSoapNs.xml Sun Mar 26 20:05:56 2006
@@ -1,20 +1,20 @@
-<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/badsoap/envelope/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- <soapenv:Header>
- <wsa:MessageID soapenv:mustUnderstand="0">
- uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
- <wsa:To soapenv:mustUnderstand="0">
- http://localhost:8081/axis/services/BankPort</wsa:To>
- <wsa:From soapenv:mustUnderstand="0">
- <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
- http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
- </Address>
- </wsa:From>
- </soapenv:Header>
- <soapenv:Body>
- <axis2:echoVoid xmlns:axis2="http://ws.apache.org/axis2">
- </axis2:echoVoid>
- </soapenv:Body>
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/badsoap/envelope/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">
+ uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">
+ http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
+ </Address>
+ </wsa:From>
+ </soapenv:Header>
+ <soapenv:Body>
+ <axis2:echoVoid xmlns:axis2="http://ws.apache.org/axis2">
+ </axis2:echoVoid>
+ </soapenv:Body>
</soapenv:Envelope>
Added: webservices/axis2/trunk/c/test/resources/xml/soap/emtyBodymessage.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/xml/soap/emtyBodymessage.xml?rev=389016&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/resources/xml/soap/emtyBodymessage.xml (added)
+++ webservices/axis2/trunk/c/test/resources/xml/soap/emtyBodymessage.xml Sun Mar 26 20:05:56 2006
@@ -0,0 +1,18 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ <soapenv:Header>
+ <wsa:MessageID soapenv:mustUnderstand="0">
+ uuid:920C5190-0B8F-11D9-8CED-F22EDEEBF7E5</wsa:MessageID>
+ <wsa:To soapenv:mustUnderstand="0">
+ http://localhost:8081/axis/services/BankPort</wsa:To>
+ <wsa:From soapenv:mustUnderstand="0">
+ <Address xmlns="http://schemas.xmlsoap.org/ws/2004/03/addressing">
+ http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
+ </Address>
+ </wsa:From>
+ </soapenv:Header>
+ <soapenv:Body>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: webservices/axis2/trunk/c/test/resources/xml/soap/invalidMustUnderstandSOAP12.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/xml/soap/invalidMustUnderstandSOAP12.xml?rev=389016&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/resources/xml/soap/invalidMustUnderstandSOAP12.xml (added)
+++ webservices/axis2/trunk/c/test/resources/xml/soap/invalidMustUnderstandSOAP12.xml Sun Mar 26 20:05:56 2006
@@ -0,0 +1,13 @@
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:xml="http://www.w3.org/XML/1998/namespace">
+ <env:Header>
+ <test2:echoOk2 xmlns:test2="http://example2.org/ts-tests"
+ env:role="http://www.w3.org/2003/05/soap-envelope/role/ultimateReceiver"
+ env:mustUnderstand="someOtherValue"
+ env:anyAttribute="any value">
+ foo
+ </test2:echoOk2>
+ </env:Header>
+ <env:Body>
+
+ </env:Body>
+</env:Envelope>
\ No newline at end of file
Added: webservices/axis2/trunk/c/test/resources/xml/soap/minimalMessage.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/resources/xml/soap/minimalMessage.xml?rev=389016&view=auto
==============================================================================
--- webservices/axis2/trunk/c/test/resources/xml/soap/minimalMessage.xml (added)
+++ webservices/axis2/trunk/c/test/resources/xml/soap/minimalMessage.xml Sun Mar 26 20:05:56 2006
@@ -0,0 +1,4 @@
+<?xml version='1.0' ?>
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
+ <env:Body/>
+</env:Envelope>
\ No newline at end of file