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 cm...@apache.org on 2005/08/11 06:05:54 UTC
cvs commit: ws-axis/c/tests/auto_build/testcases/client/cpp XSD_NameClient.cpp
cmanohar 2005/08/10 21:05:54
Modified: c/tests/auto_build/testcases/client/cpp XSD_NameClient.cpp
Log:
Revision Changes Path
1.5 +6 -45 ws-axis/c/tests/auto_build/testcases/client/cpp/XSD_NameClient.cpp
Index: XSD_NameClient.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/client/cpp/XSD_NameClient.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- XSD_NameClient.cpp 13 Jul 2005 15:19:09 -0000 1.4
+++ XSD_NameClient.cpp 11 Aug 2005 04:05:54 -0000 1.5
@@ -36,7 +36,8 @@
char emptyName[1] = "";
xsd__Name emptyInput = new char[1];
strcpy (emptyInput, emptyName);
- char simpleName[25] = "A simple test message!";
+ //char simpleName[25] = "A simple test message!";
+ char simpleName[25] = "xml.si-mple_nam:e";
xsd__Name input = new char[25];
strcpy (input, simpleName);
@@ -78,46 +79,6 @@
}
delete [] emptyInput;
- // Test non-nillable element with XML reserved characters
- char reservedCharactersName[] = "<>&\"\'";
- xsd__Name reservedCharactersInput = reservedCharactersName;
- result = ws->asNonNillableElement(reservedCharactersInput);
- if (result)
- {
- if (*result)
- {
- cout << "non-nillable element with XML reserved characters=" << result << endl;
- }
- else
- {
- cout << "non-nillable element with XML reserved characters=<empty>" << endl;
- }
- }
- else
- {
- cout << "non-nillable element with XML reserved characters=<nil>" << endl;
- }
-
- // Test non-nillable element with XML reserved characters
- char whitespaceName[] = " \t\r\nsome text \t\r\nmore text \t\r\n";
- xsd__Name whitespaceInput = whitespaceName;
- result = ws->asNonNillableElement(whitespaceInput);
- if (result)
- {
- if (*result)
- {
- cout << "non-nillable element with whitespace characters=\"" << result << "\"" << endl;
- }
- else
- {
- cout << "non-nillable element with whitespace characters=<empty>" << endl;
- }
- }
- else
- {
- cout << "non-nillable element with whitespace characters=<nil>" << endl;
- }
-
// Test nillable element, with a value
input = new char[25];
strcpy (input, simpleName);
@@ -227,7 +188,7 @@
}
delete requiredAttributeResult;
-/* Optional Attributes currently unsupported by WSDL2Ws
+/* Optional Attributes currently unsupported by WSDL2Ws
* Exact coding of this section may change depending on chosen implementation
// Test optional attribute, with a value
input = new char[25];
@@ -298,7 +259,7 @@
*/
// Test array
- xsd__Name_Array arrayInput;
+ xsd__Name_Array arrayInput;
arrayInput.m_Array = new xsd__Name[2];
arrayInput.m_Size = 2;
for (int inputIndex=0 ; inputIndex < 2 ; inputIndex++)
@@ -329,7 +290,7 @@
}
}
delete [] arrayInput.m_Array;
- delete [] arrayResult.m_Array;
+ delete [] arrayResult.m_Array;
// Test complex type
input = new char[25];
@@ -352,7 +313,7 @@
{
cout << "within complex type=<nil>" << endl;
}
- delete complexTypeResult;
+ delete complexTypeResult;
// Tests now complete