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/04/28 05:04:04 UTC
svn commit: r397747 [1/17] -
/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/
Author: nadiramra
Date: Thu Apr 27 20:03:51 2006
New Revision: 397747
URL: http://svn.apache.org/viewcvs?rev=397747&view=rev
Log:
beginning attempt to format test code...
Modified:
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ArraysClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttDataHandlerExecuteClass.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttDataHandlerImage.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttDataHandlerText.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttMultiAttachment.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttMultiAttachmentFault.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttMultiSameAttachment.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttNillableAttachment.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttPlainText.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttPlainTextSSL.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/Attachment1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AxisBenchClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AxisBench_TTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/BasicAllTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/BasicChoiceClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocManyClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocProgConfigClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocSSL1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocSSLClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDocSSLConfigFileClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CalculatorDoc_TTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CombinedAllTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CombinedChoiceClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexListsClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeAll1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeAll2Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeAllClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeAllComplexChildClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeAll_TTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoice1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoice2Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceArrayChildClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceComplexChildClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceNestedChoiceClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceNestedSequenceClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeChoiceSimpleClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeNillableAllClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeOptionalAllClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeOptionalChoiceClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ComplexTypeWithNillableSimpleElementClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ConnectionCloseClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/CookiesClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ElementFormDefaultTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/EnumerationClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/Enumeration_TTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ExceptionTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ExceptionTestDocClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ExceptionTestDoc_TTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ExtensibilityQueryClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/FaultMappingClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/FaultMappingDocClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/FaultMappingDoc_TTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/FaultMappingRepeatedDocClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/FourLevelTestDocClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/General_TTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/HiddenMessageParts.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest2Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest3Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IAttributeTest4Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest2Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest3Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest4Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest5Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest6Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest7Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/IHeaderBlockTest8Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/INamespaceTest1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/InOutClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/InteropTestRound1DocClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/LargeReturningStringClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/LargeReturningStringSSLClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/LargeReturningString_TTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/LimitedAllTestlClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ManyTypeRefRootClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ManyTypeRefRoot_TTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/MathOpsClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/MathOpsDocClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/MathOpsDoc_TTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/MinOccurTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/MinOccursIsZeroClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/MixedTextMessageClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/MultiOutClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NamespaceTest1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NestedArraysClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NestedComplexClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NilValuesTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/NillableArraysClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/OtherFaultExceptionTest.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/PrimitiveAndArrayClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ProgrammaticTest1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RPCAllTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RecurseTypesClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RecurseTypes_TTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RefTestDocClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ReplicaClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RpcHttpHeaderTest1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RpcHttpHeaderTest2Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RpcHttpHeaderTest3Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RpcHttpHeaderTest4Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RpcHttpHeaderTest5Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RpcHttpHeaderTest7Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RpcHttpHeaderTest8Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RpcSoapHeaderTest10Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RpcSoapHeaderTest1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RpcSoapHeaderTest2Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RpcSoapHeaderTest3Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RpcSoapHeaderTest4Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RpcSoapHeaderTest5Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RpcSoapHeaderTest6Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RpcSoapHeaderTest8Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RpcSoapHeaderTest9Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SOAPActionTestDocClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SameComplexTypeAndElementNameClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SameComplexTypeAndNillableElementNameClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ShallowAndDeepCopyingInComplexTypeOfSimpleTypesClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayDocClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArrayDoc_TTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleArraysClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleChoiceClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleChoiceNillableClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleRefClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleRefDocClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleRefDoc_TTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeArrayClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeArray_TTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnboundedClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnboundedInOutputClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnboundedInOutput_TTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleTypeInnerUnbounded_TTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleXSDAnyClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestGetNamespacePrefixClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSetEndpointClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSetHandlerPropertyClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlock2Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlock3Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapHeaderBlockClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestSoapMethodAttributeClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportPropertiesClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportProtocolClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportProtocolFaultClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportProxyClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/TestTransportTimeoutClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/UnboundedChoiceClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/UnboundedStringChoiceClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ValidXMLCharIsInterpretedAsCPPCommandClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDAnyClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDAttributeClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDElementNilClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDTimeClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDTimeNilClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSDTime_TTestClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_ENTITIESClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_ENTITYClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDREFClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_IDREFSClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NCNameClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NMTOKENClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NMTOKENSClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NOTATIONClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_NameClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_QNameClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURI2Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURIClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURIfaultClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_anyURInonUTF8Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64Binary2Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryAttributeClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_base64BinaryTestValidDataClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_booleanClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_byteClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_dateClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_dateTimeClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_decimalClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_doubleClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_durationClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_float1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_floatClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_gDayClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_gMonthClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_gMonthDayClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_gYearClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_gYearMonthClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_hexBinaryClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_intClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_languageClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_longClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_negativeIntegerClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_nonNegativeIntegerClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_nonPositiveIntegerClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_normalizedStringClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_positiveIntegerClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_shortClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_timeClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_tokenClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_unsignedByteClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_unsignedIntClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_unsignedLongClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/XSD_unsignedShortClient.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/getBindingDetail_v2Test1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/getBusinessDetailExt_v2Test1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/getBusinessDetail_v2Test1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/getServiceDetail_v2Test1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/getTModelDetail_v2Test1Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/inquire_v2Client.cpp
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/nillableComplexTypeClient.cpp
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ArraysClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ArraysClient.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ArraysClient.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/ArraysClient.cpp Thu Apr 27 20:03:51 2006
@@ -47,9 +47,9 @@
testAxis_Array();
testAxis_ArrayWithNillElements();
testAxis_ArrayCopying();
- testComplexTypeWithSimpleArray();
- testArrayOfComplexType();
- testCopyingArrayOfComplexType();
+ testComplexTypeWithSimpleArray();
+ testArrayOfComplexType();
+ testCopyingArrayOfComplexType();
bool bSuccess = false;
int iRetryIterationCount = 3;
@@ -57,7 +57,7 @@
{
try
{
- int count = 0;
+ int count = 0;
sprintf(endpoint, "%s", url);
Arrays ws(endpoint);
@@ -65,9 +65,8 @@
xsd__int_Array inputArray;
xsd__int** array = new xsd__int*[arraySize];
for (count = 0 ; count < arraySize ; count++)
- {
array[count] = new xsd__int(count);
- }
+
inputArray.set(array, arraySize);
xsd__int_Array * outputArray = ws.simpleArray(&inputArray);
@@ -79,175 +78,140 @@
for (count = 0 ; count < outputSize ; count++)
{
if (output[count] != NULL)
- {
cout << *output[count] << endl;
- }
else
- {
cout << "NULL" << endl;
+ }
+ }
+ else
+ cout << "NULL array" << endl;
+ delete outputArray;
+
+
+ ComplexTypeWithSimpleArray * inputComplexType = new ComplexTypeWithSimpleArray;
+ inputComplexType->setsimpleType(&inputArray);
+ ComplexTypeWithSimpleArray * outputComplexType = ws.complexTypeWithSimpleArray(inputComplexType);
+ outputArray = outputComplexType->getsimpleType();
+ if (outputComplexType != NULL)
+ {
+ output = outputArray->get(outputSize);
+ cout << "Array size = " << outputSize << endl;
+ if (output != NULL)
+ {
+ for (int count = 0 ; count < outputSize ; count++)
+ {
+ if (output[count] != NULL)
+ cout << *output[count] << endl;
+ else
+ cout << "NULL" << endl;
}
}
+ else
+ cout << "NULL array" << endl;
+ }
+ else
+ cout << "NULL complex type" << endl;
+
+ // Clean up simple input array
+ for (count = 0 ; count < arraySize ; count++)
+ delete array[count];
+ delete [] array;
+
+ delete inputComplexType;
+ delete outputComplexType;
+
+ ComplexTypeWithSimpleElement_Array complexArray;
+ int inputSize = 3;
+ ComplexTypeWithSimpleElement** complexInputArray = new ComplexTypeWithSimpleElement*[inputSize];
+ for (count = 0 ; count < inputSize ; count++)
+ {
+ complexInputArray[count] = new ComplexTypeWithSimpleElement();
+ complexInputArray[count]->setsimpleType(count);
+ }
+ complexArray.set(complexInputArray, inputSize);
+
+ ComplexTypeWithSimpleElement_Array * complexOutputAxis_Array = ws.complexTypeArray(&complexArray);
+
+ outputSize = 0;
+ ComplexTypeWithSimpleElement** complexOutputArray = complexOutputAxis_Array->get(outputSize);
+ cout << "Complex array size is " << outputSize << endl;
+ if (complexOutputArray != NULL)
+ {
+ for (count = 0 ; count < outputSize ; count++)
+ {
+ if (complexOutputArray[count] != NULL)
+ cout << ((ComplexTypeWithSimpleElement) *complexOutputArray[count]).getsimpleType() << endl;
+ else
+ cout << "NULL" << endl;
+ }
}
else
+ cout << "NULL array" << endl;
+ delete complexOutputAxis_Array;
+
+ ComplexTypeWithComplexArray complexTypeWithComplexArray;
+ complexTypeWithComplexArray.setcomplexTypeWithSimpleElement(&complexArray);
+
+ ComplexTypeWithComplexArray * outputComplexTypeWithComplexArray =
+ ws.complexTypeWithComplexArray(&complexTypeWithComplexArray);
+
+ complexOutputAxis_Array = outputComplexTypeWithComplexArray->getcomplexTypeWithSimpleElement();
+ outputSize = 0;
+ complexOutputArray = complexOutputAxis_Array->get(outputSize);
+ cout << "Complex array size is " << outputSize << endl;
+ if (complexOutputArray != NULL)
{
+ for (count = 0 ; count < outputSize ; count++)
+ {
+ if (complexOutputArray[count] != NULL)
+ cout << complexOutputArray[count]->getsimpleType() << endl;
+ else
+ cout << "NULL" << endl;
+ }
+ }
+ else
cout << "NULL array" << endl;
+ delete outputComplexTypeWithComplexArray;
+
+ // Clean up complex input array
+ for (count = 0 ; count < inputSize ; count++)
+ delete complexInputArray[count];
+ delete [] complexInputArray;
+
+ MoreComplexType_Array moreComplexTypeArray;
+ MoreComplexType** arrayOfMoreComplexType = new MoreComplexType*[inputSize];
+ for (count = 0 ; count < inputSize ; count++ )
+ {
+ xsd__string temp = new char[strlen("Hello World!") + 1];
+ strcpy(temp, "Hello World!");
+ arrayOfMoreComplexType[count] = new MoreComplexType();
+ arrayOfMoreComplexType[count]->setsimpleString(temp);
+ }
+ moreComplexTypeArray.set(arrayOfMoreComplexType, inputSize);
+ MoreComplexType_Array * outputMoreComplexTypeArray = ws.moreComplexTypeArray(&moreComplexTypeArray);
+ outputSize = 0;
+ MoreComplexType** outputArrayOfMoreComplexType = outputMoreComplexTypeArray->get(outputSize);
+ cout <<"Complex array size is " << outputSize << endl;
+ if (outputArrayOfMoreComplexType != NULL)
+ {
+ for (count = 0 ; count < outputSize ; count++)
+ {
+ if (outputArrayOfMoreComplexType[count] != NULL)
+ cout << outputArrayOfMoreComplexType[count]->getsimpleString() << endl;
+ else
+ cout << "NULL" << endl;
+ }
}
- delete outputArray;
-
+ else
+ cout << "NULL" << endl;
- ComplexTypeWithSimpleArray * inputComplexType = new ComplexTypeWithSimpleArray;
- inputComplexType->setsimpleType(&inputArray);
- ComplexTypeWithSimpleArray * outputComplexType = ws.complexTypeWithSimpleArray(inputComplexType);
- outputArray = outputComplexType->getsimpleType();
- if (outputComplexType != NULL)
- {
- output = outputArray->get(outputSize);
- cout << "Array size = " << outputSize << endl;
- if (output != NULL)
- {
- for (int count = 0 ; count < outputSize ; count++)
- {
- if (output[count] != NULL)
- {
- cout << *output[count] << endl;
- }
- else
- {
- cout << "NULL" << endl;
- }
- }
- }
- else
- {
- cout << "NULL array" << endl;
- }
- }
- else
- {
- cout << "NULL complex type" << endl;
- }
-
- // Clean up simple input array
- for (count = 0 ; count < arraySize ; count++)
- {
- delete array[count];
- }
- delete [] array;
-
- delete inputComplexType;
- delete outputComplexType;
-
- ComplexTypeWithSimpleElement_Array complexArray;
- int inputSize = 3;
- ComplexTypeWithSimpleElement** complexInputArray = new ComplexTypeWithSimpleElement*[inputSize];
- for (count = 0 ; count < inputSize ; count++)
- {
- complexInputArray[count] = new ComplexTypeWithSimpleElement();
- complexInputArray[count]->setsimpleType(count);
- }
- complexArray.set(complexInputArray, inputSize);
-
- ComplexTypeWithSimpleElement_Array * complexOutputAxis_Array = ws.complexTypeArray(&complexArray);
-
- outputSize = 0;
- ComplexTypeWithSimpleElement** complexOutputArray = complexOutputAxis_Array->get(outputSize);
- cout << "Complex array size is " << outputSize << endl;
- if (complexOutputArray != NULL)
- {
- for (count = 0 ; count < outputSize ; count++)
- {
- if (complexOutputArray[count] != NULL)
- {
- cout << ((ComplexTypeWithSimpleElement) *complexOutputArray[count]).getsimpleType() << endl;
- }
- else
- {
- cout << "NULL" << endl;
- }
- }
- }
- else
- {
- cout << "NULL array" << endl;
- }
- delete complexOutputAxis_Array;
-
- ComplexTypeWithComplexArray complexTypeWithComplexArray;
- complexTypeWithComplexArray.setcomplexTypeWithSimpleElement(&complexArray);
-
- ComplexTypeWithComplexArray * outputComplexTypeWithComplexArray = ws.complexTypeWithComplexArray(&complexTypeWithComplexArray);
-
- complexOutputAxis_Array = outputComplexTypeWithComplexArray->getcomplexTypeWithSimpleElement();
- outputSize = 0;
- complexOutputArray = complexOutputAxis_Array->get(outputSize);
- cout << "Complex array size is " << outputSize << endl;
- if (complexOutputArray != NULL)
- {
- for (count = 0 ; count < outputSize ; count++)
- {
- if (complexOutputArray[count] != NULL)
- {
- cout << complexOutputArray[count]->getsimpleType() << endl;
- }
- else
- {
- cout << "NULL" << endl;
- }
- }
- }
- else
- {
- cout << "NULL array" << endl;
- }
- delete outputComplexTypeWithComplexArray;
-
- // Clean up complex input array
- for (count = 0 ; count < inputSize ; count++)
- {
- delete complexInputArray[count];
- }
- delete [] complexInputArray;
-
- MoreComplexType_Array moreComplexTypeArray;
- MoreComplexType** arrayOfMoreComplexType = new MoreComplexType*[inputSize];
- for (count = 0 ; count < inputSize ; count++ )
- {
- xsd__string temp = new char[strlen("Hello World!") + 1];
- strcpy(temp, "Hello World!");
- arrayOfMoreComplexType[count] = new MoreComplexType();
- arrayOfMoreComplexType[count]->setsimpleString(temp);
- }
- moreComplexTypeArray.set(arrayOfMoreComplexType, inputSize);
- MoreComplexType_Array * outputMoreComplexTypeArray = ws.moreComplexTypeArray(&moreComplexTypeArray);
- outputSize = 0;
- MoreComplexType** outputArrayOfMoreComplexType = outputMoreComplexTypeArray->get(outputSize);
- cout <<"Complex array size is " << outputSize << endl;
- if (outputArrayOfMoreComplexType != NULL)
- {
- for (count = 0 ; count < outputSize ; count++)
- {
- if (outputArrayOfMoreComplexType[count] != NULL)
- {
- cout << outputArrayOfMoreComplexType[count]->getsimpleString() << endl;
- }
- else
- {
- cout << "NULL" << endl;
- }
- }
- }
- else
- {
- cout << "NULL" << endl;
- }
-
- //Clean up more complex input array
- for (count = 0 ; count < inputSize ; count++)
- {
- delete arrayOfMoreComplexType[count];
- }
- delete [] arrayOfMoreComplexType;
- delete outputMoreComplexTypeArray;
+ //Clean up more complex input array
+ for (count = 0 ; count < inputSize ; count++)
+ {
+ delete arrayOfMoreComplexType[count];
+ }
+ delete [] arrayOfMoreComplexType;
+ delete outputMoreComplexTypeArray;
bSuccess = 1;
@@ -256,71 +220,62 @@
{
bool bSilent = false;
- if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
- {
- if( iRetryIterationCount > 0)
- {
- bSilent = true;
- }
- }
- else
- {
- iRetryIterationCount = 0;
- }
+ if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+ {
+ if( iRetryIterationCount > 0)
+ bSilent = true;
+ }
+ else
+ iRetryIterationCount = 0;
if( !bSilent)
- {
- cout << "Exception : " << e.what() << endl;
- }
- }
- catch(exception& e)
- {
- cout << "Unexpected exception has occured: " << e.what() << endl;
- }
- catch(...)
- {
- cout << "Unknown exception has occured" << endl;
- }
- iRetryIterationCount--;
- } while( iRetryIterationCount > 0 && !bSuccess);
+ cout << "Exception : " << e.what() << endl;
+ }
+ catch(exception& e)
+ {
+ cout << "Unexpected exception has occured: " << e.what() << endl;
+ }
+ catch(...)
+ {
+ cout << "Unknown exception has occured" << endl;
+ }
+ iRetryIterationCount--;
+ }
+ while( iRetryIterationCount > 0 && !bSuccess);
+
cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-
- return 0;
+
+ return 0;
}
void PrintUsage()
{
- printf("Usage :\n Calculator <url>\n\n");
- exit(1);
+ printf("Usage :\n Calculator <url>\n\n");
+ exit(1);
}
bool IsNumber(const char* p)
{
for (unsigned int x=0; x < strlen(p); x++)
- {
- if (!isdigit(p[x])) return false;
- }
- return true;
+ if (!isdigit(p[x])) return false;
+ return true;
}
void sig_handler(int sig) {
signal(sig, sig_handler);
cout << "SIGNAL RECEIVED " << sig << endl;
- exit(1);
+ exit(1);
}
void testAxis_Array()
{
int count = 0;
- // Unit test the Axis_Array object for simple types (in this case xsd__int)
- // Initialize Array
+ // Unit test the Axis_Array object for simple types (in this case xsd__int) Initialize Array
int unitTestInputSize = 3;
xsd__int_Array unitTest_Axis_Array;
xsd__int** unitTestActualArray = new xsd__int*[unitTestInputSize];
for (count = 0 ; count < unitTestInputSize ; count++ )
- {
unitTestActualArray[count] = new xsd__int(count);
- }
unitTest_Axis_Array.set(unitTestActualArray, unitTestInputSize);
// Verify the correct data is available
@@ -332,25 +287,17 @@
for (count = 0 ; count < size ; count++)
{
if (unitTestOutputArray[count] != NULL)
- {
cout << *unitTestOutputArray[count] << endl;
- }
else
- {
cout << "NULL" << endl;
- }
}
}
else
- {
cout << "NULL array" << endl;
- }
// Alter the content of the original array, this should no longer affect the Axis_Array object
for (count = 0 ; count < unitTestInputSize ; count++ )
- {
*unitTestActualArray[count] = count * 1000;
- }
// Verify the correct data is available, and not the altered content
unitTestOutputArray = unitTest_Axis_Array.get(size);
@@ -360,25 +307,17 @@
for (count = 0 ; count < size ; count++)
{
if (unitTestOutputArray[count] != NULL)
- {
cout << *unitTestOutputArray[count] << endl;
- }
else
- {
cout << "NULL" << endl;
- }
}
}
else
- {
cout << "NULL array" << endl;
- }
// Delete the original array, this should not affect the Axis_Array
for (count = 0 ; count < unitTestInputSize ; count++)
- {
delete unitTestActualArray[count];
- }
delete [] unitTestActualArray;
// Verify the correct data is still available
@@ -389,25 +328,19 @@
for (count = 0 ; count < size ; count++)
{
if (unitTestOutputArray[count] != NULL)
- {
cout << *unitTestOutputArray[count] << endl;
- }
else
- {
cout << "NULL" << endl;
- }
}
}
else
- {
cout << "NULL array" << endl;
- }
}
void testAxis_ArrayWithNillElements()
{
- // Unit test the Axis_Array object for simple types (in this case xsd__int) with a nil (NULL) element
- // Initialize Array
+ // Unit test the Axis_Array object for simple types (in this case xsd__int) with a nil (NULL) element Initialize
+ // Array
int unitTestInputSize = 3;
xsd__int_Array unitTest_Axis_Array;
xsd__int** unitTestActualArray = new xsd__int*[unitTestInputSize];
@@ -417,10 +350,10 @@
unitTest_Axis_Array.set(unitTestActualArray, unitTestInputSize);
- // Clean up the input array
- delete unitTestActualArray[0];
- delete unitTestActualArray[2];
- delete [] unitTestActualArray;
+ // Clean up the input array
+ delete unitTestActualArray[0];
+ delete unitTestActualArray[2];
+ delete [] unitTestActualArray;
// Verify the correct data is available
int size;
@@ -431,19 +364,13 @@
for (int count = 0 ; count < size ; count++)
{
if (unitTestOutputArray[count] != NULL)
- {
cout << *unitTestOutputArray[count] << endl;
- }
else
- {
cout << "NULL" << endl;
- }
}
}
else
- {
cout << "NULL array" << endl;
- }
}
void testAxis_ArrayCopying()
@@ -459,15 +386,11 @@
unitTest_Axis_Array.set(unitTestActualArray, unitTestInputSize);
for (count = 0 ; count < unitTestInputSize ; count++ )
- {
*unitTestActualArray[count] = count * 10;
- }
unitTest_Axis_Array.set(unitTestActualArray, unitTestInputSize);
for (count = 0 ; count < unitTestInputSize ; count++)
- {
delete unitTestActualArray[count];
- }
delete [] unitTestActualArray;
int outputSize = 0;
@@ -478,139 +401,110 @@
for (count = 0 ; count < outputSize ; count++)
{
if (outputArray[count] != NULL)
- {
cout << *outputArray[count] << endl;
- }
else
- {
cout << "NULL" << endl;
- }
}
}
else
- {
cout << "NULL" << endl;
- }
}
void testComplexTypeWithSimpleArray()
{
- ComplexTypeWithSimpleArray complexType;
- int count = 0;
- int inputSize = 3;
- xsd__int_Array inputArray;
- xsd__int** array = new xsd__int*[inputSize];
- for (count = 0 ; count < inputSize ; count++ )
- {
- array[count] = new xsd__int(count);
- }
- inputArray.set(array, inputSize);
-
- // Clear up the input array
- for (count = 0 ; count < inputSize ; count++ )
- {
- delete array[count];
- }
- delete [] array;
-
- complexType.setsimpleType(&inputArray);
-
- xsd__int_Array * outputArray = complexType.getsimpleType();
- int outputSize = 0;
- const xsd__int** output = outputArray->get(outputSize);
- cout << "Size is " << outputSize << endl;
- if (output != NULL)
- {
- for (count = 0 ; count < outputSize ; count++ )
- {
- if (output[count] != NULL)
- {
- cout << *output[count] << endl;
- }
- else
- {
- cout << "NULL" << endl;
- }
-
- }
- }
- else
- {
- cout << "NULL array" << endl;
- }
+ ComplexTypeWithSimpleArray complexType;
+ int count = 0;
+ int inputSize = 3;
+ xsd__int_Array inputArray;
+ xsd__int** array = new xsd__int*[inputSize];
+ for (count = 0 ; count < inputSize ; count++ )
+ array[count] = new xsd__int(count);
+ inputArray.set(array, inputSize);
+
+ // Clear up the input array
+ for (count = 0 ; count < inputSize ; count++ )
+ delete array[count];
+ delete [] array;
+ complexType.setsimpleType(&inputArray);
+
+ xsd__int_Array * outputArray = complexType.getsimpleType();
+ int outputSize = 0;
+ const xsd__int** output = outputArray->get(outputSize);
+ cout << "Size is " << outputSize << endl;
+ if (output != NULL)
+ {
+ for (count = 0 ; count < outputSize ; count++ )
+ {
+ if (output[count] != NULL)
+ cout << *output[count] << endl;
+ else
+ cout << "NULL" << endl;
+ }
+ }
+ else
+ cout << "NULL array" << endl;
}
void testArrayOfComplexType()
{
- ComplexTypeWithSimpleElement_Array array;
- int count = 0;
- int inputSize = 3;
- ComplexTypeWithSimpleElement** inputArray = new ComplexTypeWithSimpleElement*[inputSize];
- for (count = 0 ; count < inputSize ; count++)
- {
- inputArray[count] = new ComplexTypeWithSimpleElement();
- inputArray[count]->setsimpleType(count);
- }
- array.set(inputArray, inputSize);
-
- int outputSize = 0;
- ComplexTypeWithSimpleElement** outputArray = array.get(outputSize);
- cout << "Size is " << outputSize << endl;
- if (outputArray != NULL)
- {
- for (count = 0 ; count < outputSize ; count++)
- {
- if (outputArray[count] != NULL)
- {
- cout << ((ComplexTypeWithSimpleElement) *outputArray[count]).getsimpleType() << endl;
- }
- else
- {
- cout << "NULL" << endl;
- }
- }
- }
- else
- {
- cout << "NULL array" << endl;
- }
-
- // Delete contents of input array - NOTE: this will also be output array!
- for (count = 0 ; count < inputSize ; count ++ )
- {
- delete inputArray[count];
- }
- delete [] inputArray;
+ ComplexTypeWithSimpleElement_Array array;
+ int count = 0;
+ int inputSize = 3;
+ ComplexTypeWithSimpleElement** inputArray = new ComplexTypeWithSimpleElement*[inputSize];
+ for (count = 0 ; count < inputSize ; count++)
+ {
+ inputArray[count] = new ComplexTypeWithSimpleElement();
+ inputArray[count]->setsimpleType(count);
+ }
+ array.set(inputArray, inputSize);
+
+ int outputSize = 0;
+ ComplexTypeWithSimpleElement** outputArray = array.get(outputSize);
+ cout << "Size is " << outputSize << endl;
+ if (outputArray != NULL)
+ {
+ for (count = 0 ; count < outputSize ; count++)
+ {
+ if (outputArray[count] != NULL)
+ cout << ((ComplexTypeWithSimpleElement) *outputArray[count]).getsimpleType() << endl;
+ else
+ cout << "NULL" << endl;
+ }
+ }
+ else
+ cout << "NULL array" << endl;
+
+ // Delete contents of input array - NOTE: this will also be output array!
+ for (count = 0 ; count < inputSize ; count ++ )
+ delete inputArray[count];
+ delete [] inputArray;
}
void testCopyingArrayOfComplexType()
{
- ComplexTypeWithSimpleElement_Array * array = new ComplexTypeWithSimpleElement_Array();
- int count = 0;
- int inputSize = 3;
- ComplexTypeWithSimpleElement** inputArray = new ComplexTypeWithSimpleElement*[inputSize];
- for (count = 0 ; count < inputSize ; count++)
- {
- inputArray[count] = new ComplexTypeWithSimpleElement();
- inputArray[count]->setsimpleType(count);
- }
- array->set(inputArray, inputSize);
-
- ComplexTypeWithSimpleElement_Array * copyArray = new ComplexTypeWithSimpleElement_Array();
- copyArray->clone(*array);
- copyArray->clear();
- delete (Axis_Array*) copyArray;
- delete array;
-
- // Delete contents of input array
- for (count = 0 ; count < inputSize ; count ++ )
- {
- delete inputArray[count];
- }
- delete [] inputArray;
-
+ ComplexTypeWithSimpleElement_Array * array = new ComplexTypeWithSimpleElement_Array();
+ int count = 0;
+ int inputSize = 3;
+ ComplexTypeWithSimpleElement** inputArray = new ComplexTypeWithSimpleElement*[inputSize];
+ for (count = 0 ; count < inputSize ; count++)
+ {
+ inputArray[count] = new ComplexTypeWithSimpleElement();
+ inputArray[count]->setsimpleType(count);
+ }
+ array->set(inputArray, inputSize);
+
+ ComplexTypeWithSimpleElement_Array * copyArray = new ComplexTypeWithSimpleElement_Array();
+ copyArray->clone(*array);
+ copyArray->clear();
+ delete (Axis_Array*) copyArray;
+ delete array;
+
+ // Delete contents of input array
+ for (count = 0 ; count < inputSize ; count ++ )
+ delete inputArray[count];
+ delete [] inputArray;
}
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttDataHandlerExecuteClass.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttDataHandlerExecuteClass.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttDataHandlerExecuteClass.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttDataHandlerExecuteClass.cpp Thu Apr 27 20:03:51 2006
@@ -29,98 +29,98 @@
int main(int argc, char* argv[])
{
- char endpoint[256];
- const char* url="http://localhost:80/axis/DataHandlerService";
- char *Result;
- url = argv[1];
- bool bSuccess = false;
- int iRetryIterationCount = 3;
-
- signal(SIGILL, sig_handler);
- signal(SIGABRT, sig_handler);
- signal(SIGSEGV, sig_handler);
- //signal(SIGQUIT, sig_handler);
- //signal(SIGBUS, sig_handler);
- signal(SIGFPE, sig_handler);
-
- do
- {
- try
- {
- sprintf(endpoint, "%s", url);
- DataHandlerService ws(endpoint);
- ISoapAttachment *att=ws.createSoapAttachment();
- //declare an ifstream object to read from a file.
- ifstream is;
- //Open the file in binary mode
- is.open ("TestClass.class", ios::binary );
- if(is==NULL){
- cout<<"Filepath specified for attachment is wrong";
- exit(0);
- }
- //Finding out the number of bytes in the file
- is.seekg (0, ios::end);
- int length = is.tellg();
- is.seekg (0, ios::beg);
- char *buffer;
-
- // allocate memory:
-
- buffer = new char [length];
- // read data as a block:
- is.read (buffer,length);
+ char endpoint[256];
+ const char* url="http://localhost:80/axis/DataHandlerService";
+ char *Result;
+ url = argv[1];
+ bool bSuccess = false;
+ int iRetryIterationCount = 3;
+
+ signal(SIGILL, sig_handler);
+ signal(SIGABRT, sig_handler);
+ signal(SIGSEGV, sig_handler);
+ //signal(SIGQUIT, sig_handler);
+ //signal(SIGBUS, sig_handler);
+ signal(SIGFPE, sig_handler);
+
+ do
+ {
+ try
+ {
+ sprintf(endpoint, "%s", url);
+ DataHandlerService ws(endpoint);
+ ISoapAttachment *att=ws.createSoapAttachment();
+ //declare an ifstream object to read from a file.
+ ifstream is;
+ //Open the file in binary mode
+ is.open ("TestClass.class", ios::binary );
+ if(is==NULL){
+ cout<<"Filepath specified for attachment is wrong";
+ exit(0);
+ }
+ //Finding out the number of bytes in the file
+ is.seekg (0, ios::end);
+ int length = is.tellg();
+ is.seekg (0, ios::beg);
+ char *buffer;
+
+ // allocate memory:
+
+ buffer = new char [length];
+ // read data as a block:
+ is.read (buffer,length);
is.close();
- //Adding the content type as plain/text
- att->addHeader(AXIS_CONTENT_TYPE,"plain/text");
- xsd__base64Binary b64b1;
+ //Adding the content type as plain/text
+ att->addHeader(AXIS_CONTENT_TYPE,"plain/text");
+ xsd__base64Binary b64b1;
b64b1.set((xsd__unsignedByte*) buffer, length);
- att->addBody(&b64b1);
- //Calling the dataHandlerService, service will return result of execution of the class file
- xsd__string Result=ws.executeClass(att,"TestClass");
- //Test will pass if the number of bytes send and received are same.
- cout<<Result<<endl;
- bSuccess = true;
- }
- catch(AxisException& e)
- {
- bool bSilent = false;
-
- if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
- {
- if( iRetryIterationCount > 0)
- {
- bSilent = true;
- }
- }
- else
- {
- iRetryIterationCount = 0;
- }
+ att->addBody(&b64b1);
+ //Calling the dataHandlerService, service will return result of execution of the class file
+ xsd__string Result=ws.executeClass(att,"TestClass");
+ //Test will pass if the number of bytes send and received are same.
+ cout<<Result<<endl;
+ bSuccess = true;
+ }
+ catch(AxisException& e)
+ {
+ bool bSilent = false;
+
+ if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+ {
+ if( iRetryIterationCount > 0)
+ {
+ bSilent = true;
+ }
+ }
+ else
+ {
+ iRetryIterationCount = 0;
+ }
if( !bSilent)
- {
- cout << "Exception : " << e.what() << endl;
- }
- }
- catch(exception& e)
- {
- cout << "Unknown exception has occured" << endl;
- }
- catch(...)
- {
- cout << "Unknown exception has occured" << endl;
- }
- iRetryIterationCount--;
- } while( iRetryIterationCount > 0 && !bSuccess);
+ {
+ cout << "Exception : " << e.what() << endl;
+ }
+ }
+ catch(exception& e)
+ {
+ cout << "Unknown exception has occured" << endl;
+ }
+ catch(...)
+ {
+ cout << "Unknown exception has occured" << endl;
+ }
+ iRetryIterationCount--;
+ } while( iRetryIterationCount > 0 && !bSuccess);
cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-
- return 0;
+
+ return 0;
}
void sig_handler(int sig) {
- signal(sig, sig_handler);
+ signal(sig, sig_handler);
cout << "SIGNAL RECEIVED " << sig << endl;
- exit(1);
+ exit(1);
}
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttDataHandlerImage.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttDataHandlerImage.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttDataHandlerImage.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttDataHandlerImage.cpp Thu Apr 27 20:03:51 2006
@@ -28,99 +28,99 @@
int main(int argc, char* argv[])
{
- char endpoint[256];
- const char* url="http://localhost:80/axis/DataHandlerService";
- char *Result;
- url = argv[1];
- bool bSuccess = false;
- int iRetryIterationCount = 3;
-
- signal(SIGILL, sig_handler);
- signal(SIGABRT, sig_handler);
- signal(SIGSEGV, sig_handler);
- //signal(SIGQUIT, sig_handler);
- //signal(SIGBUS, sig_handler);
- signal(SIGFPE, sig_handler);
-
- do
- {
- try
- {
- sprintf(endpoint, "%s", url);
- DataHandlerService ws(endpoint);
- ISoapAttachment *att=ws.createSoapAttachment();
- //declare an ifstream object to read from a file.
- ifstream is;
- //Open the file in binary mode
- is.open ("pic13290.gif", ios::binary );
- if(is==NULL){
- cout<<"Filepath specified for attachment is wrong";
- exit(0);
- }
- //Finding out the number of bytes in the file
- is.seekg (0, ios::end);
- int length = is.tellg();
- is.seekg (0, ios::beg);
- char *buffer;
-
- // allocate memory:
-
- buffer = new char [length];
- // read data as a block:
- is.read (buffer,length);
+ char endpoint[256];
+ const char* url="http://localhost:80/axis/DataHandlerService";
+ char *Result;
+ url = argv[1];
+ bool bSuccess = false;
+ int iRetryIterationCount = 3;
+
+ signal(SIGILL, sig_handler);
+ signal(SIGABRT, sig_handler);
+ signal(SIGSEGV, sig_handler);
+ //signal(SIGQUIT, sig_handler);
+ //signal(SIGBUS, sig_handler);
+ signal(SIGFPE, sig_handler);
+
+ do
+ {
+ try
+ {
+ sprintf(endpoint, "%s", url);
+ DataHandlerService ws(endpoint);
+ ISoapAttachment *att=ws.createSoapAttachment();
+ //declare an ifstream object to read from a file.
+ ifstream is;
+ //Open the file in binary mode
+ is.open ("pic13290.gif", ios::binary );
+ if(is==NULL){
+ cout<<"Filepath specified for attachment is wrong";
+ exit(0);
+ }
+ //Finding out the number of bytes in the file
+ is.seekg (0, ios::end);
+ int length = is.tellg();
+ is.seekg (0, ios::beg);
+ char *buffer;
+
+ // allocate memory:
+
+ buffer = new char [length];
+ // read data as a block:
+ is.read (buffer,length);
is.close();
- //Adding the content type as image/jpeg
- att->addHeader(AXIS_CONTENT_TYPE,"image/jpeg");
- xsd__base64Binary b64b1;
+ //Adding the content type as image/jpeg
+ att->addHeader(AXIS_CONTENT_TYPE,"image/jpeg");
+ xsd__base64Binary b64b1;
b64b1.set((xsd__unsignedByte *) buffer, length);
- att->addBody(&b64b1);
-
- //Calling the dataHandlerService, service will return number of bytes send
- int numBytes=ws.getNoOfBytes(att);
- //Test will pass if the number of bytes send and received are same.
- cout<<numBytes<<endl;
- bSuccess = true;
- }
- catch(AxisException& e)
- {
- bool bSilent = false;
-
- if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
- {
- if( iRetryIterationCount > 0)
- {
- bSilent = true;
- }
- }
- else
- {
- iRetryIterationCount = 0;
- }
+ att->addBody(&b64b1);
+
+ //Calling the dataHandlerService, service will return number of bytes send
+ int numBytes=ws.getNoOfBytes(att);
+ //Test will pass if the number of bytes send and received are same.
+ cout<<numBytes<<endl;
+ bSuccess = true;
+ }
+ catch(AxisException& e)
+ {
+ bool bSilent = false;
+
+ if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+ {
+ if( iRetryIterationCount > 0)
+ {
+ bSilent = true;
+ }
+ }
+ else
+ {
+ iRetryIterationCount = 0;
+ }
if( !bSilent)
- {
- cout << "Exception : " << e.what() << endl;
- }
- }
- catch(exception& e)
- {
- cout << "Unknown exception has occured" << endl;
- }
- catch(...)
- {
- cout << "Unknown exception has occured" << endl;
- }
- iRetryIterationCount--;
- } while( iRetryIterationCount > 0 && !bSuccess);
+ {
+ cout << "Exception : " << e.what() << endl;
+ }
+ }
+ catch(exception& e)
+ {
+ cout << "Unknown exception has occured" << endl;
+ }
+ catch(...)
+ {
+ cout << "Unknown exception has occured" << endl;
+ }
+ iRetryIterationCount--;
+ } while( iRetryIterationCount > 0 && !bSuccess);
cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-
- return 0;
+
+ return 0;
}
void sig_handler(int sig) {
- signal(sig, sig_handler);
+ signal(sig, sig_handler);
cout << "SIGNAL RECEIVED " << sig << endl;
- exit(1);
+ exit(1);
}
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttDataHandlerText.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttDataHandlerText.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttDataHandlerText.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttDataHandlerText.cpp Thu Apr 27 20:03:51 2006
@@ -29,82 +29,82 @@
int main(int argc, char* argv[])
{
- char endpoint[256];
- const char* url="http://localhost:80/axis/DataHandlerService";
- char *Result;
- url = argv[1];
- bool bSuccess = false;
- int iRetryIterationCount = 3;
-
- signal(SIGILL, sig_handler);
- signal(SIGABRT, sig_handler);
- signal(SIGSEGV, sig_handler);
- //signal(SIGQUIT, sig_handler);
- //signal(SIGBUS, sig_handler);
- signal(SIGFPE, sig_handler);
-
- do
- {
- try
- {
- sprintf(endpoint, "%s", url);
- DataHandlerService ws(endpoint);
- ISoapAttachment *att=ws.createSoapAttachment();
-
- char *text=stringToAscii("This is a test message for attachment");
-
- //Adding the content type as text/plain
- att->addHeader(AXIS_CONTENT_TYPE,"text/plain");
- xsd__base64Binary b64b1;
+ char endpoint[256];
+ const char* url="http://localhost:80/axis/DataHandlerService";
+ char *Result;
+ url = argv[1];
+ bool bSuccess = false;
+ int iRetryIterationCount = 3;
+
+ signal(SIGILL, sig_handler);
+ signal(SIGABRT, sig_handler);
+ signal(SIGSEGV, sig_handler);
+ //signal(SIGQUIT, sig_handler);
+ //signal(SIGBUS, sig_handler);
+ signal(SIGFPE, sig_handler);
+
+ do
+ {
+ try
+ {
+ sprintf(endpoint, "%s", url);
+ DataHandlerService ws(endpoint);
+ ISoapAttachment *att=ws.createSoapAttachment();
+
+ char *text=stringToAscii("This is a test message for attachment");
+
+ //Adding the content type as text/plain
+ att->addHeader(AXIS_CONTENT_TYPE,"text/plain");
+ xsd__base64Binary b64b1;
b64b1.set((xsd__unsignedByte *) text, strlen(text));
- att->addBody(&b64b1);
- //Calling the dataHandlerService, service will return content
- Result=ws.echoContent(att);
- cout<<Result<<endl;
- //Calling the dataHandlerService, service will return content type
- Result=ws.getContentType(att);
- cout<<Result<<endl;
- bSuccess = true;
- }
- catch(AxisException& e)
- {
- bool bSilent = false;
-
- if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
- {
- if( iRetryIterationCount > 0)
- {
- bSilent = true;
- }
- }
- else
- {
- iRetryIterationCount = 0;
- }
+ att->addBody(&b64b1);
+ //Calling the dataHandlerService, service will return content
+ Result=ws.echoContent(att);
+ cout<<Result<<endl;
+ //Calling the dataHandlerService, service will return content type
+ Result=ws.getContentType(att);
+ cout<<Result<<endl;
+ bSuccess = true;
+ }
+ catch(AxisException& e)
+ {
+ bool bSilent = false;
+
+ if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+ {
+ if( iRetryIterationCount > 0)
+ {
+ bSilent = true;
+ }
+ }
+ else
+ {
+ iRetryIterationCount = 0;
+ }
if( !bSilent)
- {
- cout << "Exception : " << e.what() << endl;
- }
- }
- catch(exception& e)
- {
- cout << "Unknown exception has occured" << endl;
- }
- catch(...)
- {
- cout << "Unknown exception has occured" << endl;
- }
- iRetryIterationCount--;
- } while( iRetryIterationCount > 0 && !bSuccess);
+ {
+ cout << "Exception : " << e.what() << endl;
+ }
+ }
+ catch(exception& e)
+ {
+ cout << "Unknown exception has occured" << endl;
+ }
+ catch(...)
+ {
+ cout << "Unknown exception has occured" << endl;
+ }
+ iRetryIterationCount--;
+ } while( iRetryIterationCount > 0 && !bSuccess);
cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-
- return 0;
+
+ return 0;
}
void sig_handler(int sig) {
- signal(sig, sig_handler);
+ signal(sig, sig_handler);
cout << "SIGNAL RECEIVED " << sig << endl;
- exit(1);
+ exit(1);
}
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttMultiAttachment.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttMultiAttachment.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttMultiAttachment.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttMultiAttachment.cpp Thu Apr 27 20:03:51 2006
@@ -29,94 +29,94 @@
int main(int argc, char* argv[])
{
- char endpoint[256];
- const char* url="http://localhost:80/axis/AttachmentService";
- char *Result;
- url = argv[1];
- bool bSuccess = false;
- int iRetryIterationCount = 3;
-
- signal(SIGILL, sig_handler);
- signal(SIGABRT, sig_handler);
- signal(SIGSEGV, sig_handler);
- //signal(SIGQUIT, sig_handler);
- //signal(SIGBUS, sig_handler);
- signal(SIGFPE, sig_handler);
-
- do
- {
- try
- {
- sprintf(endpoint, "%s", url);
- AttachmentService ws(endpoint);
- ISoapAttachment *att=ws.createSoapAttachment();
- ISoapAttachment *att1=ws.createSoapAttachment();
- ISoapAttachment *att2=ws.createSoapAttachment();
- ISoapAttachment *att3=ws.createSoapAttachment();
-
- char *text=stringToAscii("This is a test message for attachment");
-
- //Adding the content type as text/plain
- att->addHeader(AXIS_CONTENT_TYPE,"text/plain");
- //Adding the content id
- att2->addHeader(AXIS_CONTENT_ID,"5");
- att2->addHeader(AXIS_CONTENT_TYPE,"image/jpeg");
- xsd__base64Binary b64b1;
+ char endpoint[256];
+ const char* url="http://localhost:80/axis/AttachmentService";
+ char *Result;
+ url = argv[1];
+ bool bSuccess = false;
+ int iRetryIterationCount = 3;
+
+ signal(SIGILL, sig_handler);
+ signal(SIGABRT, sig_handler);
+ signal(SIGSEGV, sig_handler);
+ //signal(SIGQUIT, sig_handler);
+ //signal(SIGBUS, sig_handler);
+ signal(SIGFPE, sig_handler);
+
+ do
+ {
+ try
+ {
+ sprintf(endpoint, "%s", url);
+ AttachmentService ws(endpoint);
+ ISoapAttachment *att=ws.createSoapAttachment();
+ ISoapAttachment *att1=ws.createSoapAttachment();
+ ISoapAttachment *att2=ws.createSoapAttachment();
+ ISoapAttachment *att3=ws.createSoapAttachment();
+
+ char *text=stringToAscii("This is a test message for attachment");
+
+ //Adding the content type as text/plain
+ att->addHeader(AXIS_CONTENT_TYPE,"text/plain");
+ //Adding the content id
+ att2->addHeader(AXIS_CONTENT_ID,"5");
+ att2->addHeader(AXIS_CONTENT_TYPE,"image/jpeg");
+ xsd__base64Binary b64b1;
b64b1.set((xsd__unsignedByte *)text, strlen(text));
- att->addBody(&b64b1);
- att1->addBody(&b64b1);
- att2->addBody(&b64b1);
- att3->addBody(&b64b1);
- //Calling webservice with multiple attachments
- xsd__string_Array* ret=ws.multiAttachment(att,att1,att2,att3);
- int outputsize=0;
- const xsd__string * array=ret->get(outputsize);
- cout << array[0]<<endl;
- cout << array[1]<<endl;
- cout << array[2]<<endl;
- cout << array[3]<<endl;
- bSuccess = true;
- }
- catch(AxisException& e)
- {
- bool bSilent = false;
-
- if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
- {
- if( iRetryIterationCount > 0)
- {
- bSilent = true;
- }
- }
- else
- {
- iRetryIterationCount = 0;
- }
+ att->addBody(&b64b1);
+ att1->addBody(&b64b1);
+ att2->addBody(&b64b1);
+ att3->addBody(&b64b1);
+ //Calling webservice with multiple attachments
+ xsd__string_Array* ret=ws.multiAttachment(att,att1,att2,att3);
+ int outputsize=0;
+ const xsd__string * array=ret->get(outputsize);
+ cout << array[0]<<endl;
+ cout << array[1]<<endl;
+ cout << array[2]<<endl;
+ cout << array[3]<<endl;
+ bSuccess = true;
+ }
+ catch(AxisException& e)
+ {
+ bool bSilent = false;
+
+ if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+ {
+ if( iRetryIterationCount > 0)
+ {
+ bSilent = true;
+ }
+ }
+ else
+ {
+ iRetryIterationCount = 0;
+ }
if( !bSilent)
- {
- cout << "Exception : " << e.what() << endl;
- }
- }
- catch(exception& e)
- {
- cout << "Unknown exception has occured" << endl;
- }
- catch(...)
- {
- cout << "Unknown exception has occured" << endl;
- }
- iRetryIterationCount--;
- } while( iRetryIterationCount > 0 && !bSuccess);
+ {
+ cout << "Exception : " << e.what() << endl;
+ }
+ }
+ catch(exception& e)
+ {
+ cout << "Unknown exception has occured" << endl;
+ }
+ catch(...)
+ {
+ cout << "Unknown exception has occured" << endl;
+ }
+ iRetryIterationCount--;
+ } while( iRetryIterationCount > 0 && !bSuccess);
cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-
- return 0;
+
+ return 0;
}
void sig_handler(int sig) {
- signal(sig, sig_handler);
+ signal(sig, sig_handler);
cout << "SIGNAL RECEIVED " << sig << endl;
- exit(1);
+ exit(1);
}
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttMultiAttachmentFault.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttMultiAttachmentFault.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttMultiAttachmentFault.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttMultiAttachmentFault.cpp Thu Apr 27 20:03:51 2006
@@ -32,94 +32,91 @@
int main(int argc, char* argv[])
{
- char endpoint[256];
- const char* url="http://localhost:80/axis/AttachmentService";
- char *Result;
- url = argv[1];
- bool bSuccess = false;
- int iRetryIterationCount = 3;
-
- signal(SIGILL, sig_handler);
- signal(SIGABRT, sig_handler);
- signal(SIGSEGV, sig_handler);
- //signal(SIGQUIT, sig_handler);
- //signal(SIGBUS, sig_handler);
- signal(SIGFPE, sig_handler);
-
- do
- {
- try
- {
- sprintf(endpoint, "%s", url);
- AttachmentService ws(endpoint);
- ISoapAttachment *att=ws.createSoapAttachment();
- ISoapAttachment *att1=ws.createSoapAttachment();
- ISoapAttachment *att2=ws.createSoapAttachment();
- ISoapAttachment *att3=ws.createSoapAttachment();
-
- char *text=stringToAscii("This is a test message for attachment");
-
- //Adding the content type as text/plain
- att->addHeader(AXIS_CONTENT_TYPE,"text/plain");
- att2->addHeader(AXIS_CONTENT_ID,"5");
- att2->addHeader(AXIS_CONTENT_TYPE,"image/jpeg");
- att2->addHeader(AXIS_CONTENT_TRANSFER_ENCODING,"base64");
- xsd__base64Binary b64b1;
- b64b1.set((xsd__unsignedByte *) text, strlen(text));
- att->addBody(&b64b1);
- att1->addBody(&b64b1);
- att2->addBody(&b64b1);
- att3->addBody(&b64b1);
- //Calling webservice with multiple attachments.This call will results in a SOAP Fault
- //Server will send fault message..
- xsd__string_Array* ret=ws.multiAttachment(NULL,att1,att2,att3);
- int outputsize=0;
- const xsd__string * array=ret->get(outputsize);
- cout << array[0]<<endl;
- cout << array[1]<<endl;
- cout << array[2]<<endl;
- cout << array[3]<<endl;
- bSuccess = true;
- }
- catch(AxisException& e)
- {
- bool bSilent = false;
-
- if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
- {
- if( iRetryIterationCount > 0)
- {
- bSilent = true;
- }
- }
- else
- {
- iRetryIterationCount = 0;
- }
+ char endpoint[256];
+ const char* url="http://localhost:80/axis/AttachmentService";
+ char *Result;
+ url = argv[1];
+ bool bSuccess = false;
+ int iRetryIterationCount = 3;
+
+ signal(SIGILL, sig_handler);
+ signal(SIGABRT, sig_handler);
+ signal(SIGSEGV, sig_handler);
+ //signal(SIGQUIT, sig_handler);
+ //signal(SIGBUS, sig_handler);
+ signal(SIGFPE, sig_handler);
+
+ do
+ {
+ try
+ {
+ sprintf(endpoint, "%s", url);
+ AttachmentService ws(endpoint);
+ ISoapAttachment *att=ws.createSoapAttachment();
+ ISoapAttachment *att1=ws.createSoapAttachment();
+ ISoapAttachment *att2=ws.createSoapAttachment();
+ ISoapAttachment *att3=ws.createSoapAttachment();
+
+ char *text=stringToAscii("This is a test message for attachment");
+
+ //Adding the content type as text/plain
+ att->addHeader(AXIS_CONTENT_TYPE,"text/plain");
+ att2->addHeader(AXIS_CONTENT_ID,"5");
+ att2->addHeader(AXIS_CONTENT_TYPE,"image/jpeg");
+ att2->addHeader(AXIS_CONTENT_TRANSFER_ENCODING,"base64");
+ xsd__base64Binary b64b1;
+ b64b1.set((xsd__unsignedByte *) text, strlen(text));
+ att->addBody(&b64b1);
+ att1->addBody(&b64b1);
+ att2->addBody(&b64b1);
+ att3->addBody(&b64b1);
+ //Calling webservice with multiple attachments.This call will results in a SOAP Fault
+ //Server will send fault message..
+ xsd__string_Array* ret=ws.multiAttachment(NULL,att1,att2,att3);
+ int outputsize=0;
+ const xsd__string * array=ret->get(outputsize);
+ cout << array[0]<<endl;
+ cout << array[1]<<endl;
+ cout << array[2]<<endl;
+ cout << array[3]<<endl;
+ bSuccess = true;
+ }
+ catch(AxisException& e)
+ {
+ bool bSilent = false;
+
+ if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+ {
+ if( iRetryIterationCount > 0)
+ bSilent = true;
+ }
+ else
+ iRetryIterationCount = 0;
if( !bSilent)
- {
- cout << "Exception : " << e.what() << endl;
- }
- }
- catch(exception& e)
- {
- cout << "Unknown exception has occured" << endl;
- }
- catch(...)
- {
- cout << "Unknown exception has occured" << endl;
- }
- iRetryIterationCount--;
- } while( iRetryIterationCount > 0 && !bSuccess);
- cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-
- return 0;
+ cout << "Exception : " << e.what() << endl;
+ }
+ catch(exception& e)
+ {
+ cout << "Unknown exception has occured" << endl;
+ }
+ catch(...)
+ {
+ cout << "Unknown exception has occured" << endl;
+ }
+
+ iRetryIterationCount--;
+ }
+ while( iRetryIterationCount > 0 && !bSuccess);
+
+ cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
+
+ return 0;
}
void sig_handler(int sig) {
- signal(sig, sig_handler);
- cout << "SIGNAL RECEIVED " << sig << endl;
- exit(1);
+ signal(sig, sig_handler);
+ cout << "SIGNAL RECEIVED " << sig << endl;
+ exit(1);
}
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttMultiSameAttachment.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttMultiSameAttachment.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttMultiSameAttachment.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttMultiSameAttachment.cpp Thu Apr 27 20:03:51 2006
@@ -29,88 +29,85 @@
int main(int argc, char* argv[])
{
- char endpoint[256];
- const char* url="http://localhost:80/axis/AttachmentService";
- char *Result;
- url = argv[1];
- bool bSuccess = false;
- int iRetryIterationCount = 3;
-
- signal(SIGILL, sig_handler);
- signal(SIGABRT, sig_handler);
- signal(SIGSEGV, sig_handler);
- //signal(SIGQUIT, sig_handler);
- //signal(SIGBUS, sig_handler);
- signal(SIGFPE, sig_handler);
-
- do
- {
- try
- {
- sprintf(endpoint, "%s", url);
- AttachmentService ws(endpoint);
- ISoapAttachment *att1=ws.createSoapAttachment();
- ISoapAttachment *att2=ws.createSoapAttachment();
-
- char *text=stringToAscii("This is a test message for attachment");
-
- //Adding the content type as text/plain
- att1->addHeader(AXIS_CONTENT_TYPE,"text/plain");
- att2->addHeader(AXIS_CONTENT_ID,"5");
- att2->addHeader(AXIS_CONTENT_TYPE,"image/jpeg");
- xsd__base64Binary b64b1;
- b64b1.set((xsd__unsignedByte *) text, strlen(text));
- att1->addBody(&b64b1);
- att2->addBody(&b64b1);
- //Calling webservice with multiple attachments. Here same object is passed as argument
- xsd__string_Array* ret=ws.multiAttachment(att1,att1,att2,att1);
- int outputsize=0;
- const xsd__string * array=ret->get(outputsize);
- cout << array[0]<<endl;
- cout << array[1]<<endl;
- cout << array[2]<<endl;
- cout << array[3]<<endl;
- bSuccess = true;
- }
- catch(AxisException& e)
- {
- bool bSilent = false;
-
- if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
- {
- if( iRetryIterationCount > 0)
- {
- bSilent = true;
- }
- }
- else
- {
- iRetryIterationCount = 0;
- }
+ char endpoint[256];
+ const char* url="http://localhost:80/axis/AttachmentService";
+ char *Result;
+ url = argv[1];
+ bool bSuccess = false;
+ int iRetryIterationCount = 3;
+
+ signal(SIGILL, sig_handler);
+ signal(SIGABRT, sig_handler);
+ signal(SIGSEGV, sig_handler);
+ //signal(SIGQUIT, sig_handler);
+ //signal(SIGBUS, sig_handler);
+ signal(SIGFPE, sig_handler);
+
+ do
+ {
+ try
+ {
+ sprintf(endpoint, "%s", url);
+ AttachmentService ws(endpoint);
+ ISoapAttachment *att1=ws.createSoapAttachment();
+ ISoapAttachment *att2=ws.createSoapAttachment();
+
+ char *text=stringToAscii("This is a test message for attachment");
+
+ //Adding the content type as text/plain
+ att1->addHeader(AXIS_CONTENT_TYPE,"text/plain");
+ att2->addHeader(AXIS_CONTENT_ID,"5");
+ att2->addHeader(AXIS_CONTENT_TYPE,"image/jpeg");
+ xsd__base64Binary b64b1;
+ b64b1.set((xsd__unsignedByte *) text, strlen(text));
+ att1->addBody(&b64b1);
+ att2->addBody(&b64b1);
+ //Calling webservice with multiple attachments. Here same object is passed as argument
+ xsd__string_Array* ret=ws.multiAttachment(att1,att1,att2,att1);
+ int outputsize=0;
+ const xsd__string * array=ret->get(outputsize);
+ cout << array[0]<<endl;
+ cout << array[1]<<endl;
+ cout << array[2]<<endl;
+ cout << array[3]<<endl;
+ bSuccess = true;
+ }
+ catch(AxisException& e)
+ {
+ bool bSilent = false;
+
+ if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+ {
+ if( iRetryIterationCount > 0)
+ bSilent = true;
+ }
+ else
+ iRetryIterationCount = 0;
if( !bSilent)
- {
- cout << "Exception : " << e.what() << endl;
- }
- }
- catch(exception& e)
- {
- cout << "Unknown exception has occured" << endl;
- }
- catch(...)
- {
- cout << "Unknown exception has occured" << endl;
- }
- iRetryIterationCount--;
- } while( iRetryIterationCount > 0 && !bSuccess);
- cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-
- return 0;
+ cout << "Exception : " << e.what() << endl;
+ }
+ catch(exception& e)
+ {
+ cout << "Unknown exception has occured" << endl;
+ }
+ catch(...)
+ {
+ cout << "Unknown exception has occured" << endl;
+ }
+
+ iRetryIterationCount--;
+ }
+ while( iRetryIterationCount > 0 && !bSuccess);
+
+ cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
+
+ return 0;
}
void sig_handler(int sig) {
- signal(sig, sig_handler);
- cout << "SIGNAL RECEIVED " << sig << endl;
- exit(1);
+ signal(sig, sig_handler);
+ cout << "SIGNAL RECEIVED " << sig << endl;
+ exit(1);
}
Modified: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttNillableAttachment.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttNillableAttachment.cpp?rev=397747&r1=397746&r2=397747&view=diff
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttNillableAttachment.cpp (original)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/AttNillableAttachment.cpp Thu Apr 27 20:03:51 2006
@@ -27,101 +27,98 @@
int main(int argc, char* argv[])
{
- char endpoint[256];
- const char* url="http://localhost:80/axis/AttachmentService";
- char *Result;
- url = argv[1];
- bool bSuccess = false;
- int iRetryIterationCount = 3;
-
- signal(SIGILL, sig_handler);
- signal(SIGABRT, sig_handler);
- signal(SIGSEGV, sig_handler);
- //signal(SIGQUIT, sig_handler);
- //signal(SIGBUS, sig_handler);
- signal(SIGFPE, sig_handler);
-
- do
- {
- try
- {
- sprintf(endpoint, "%s", url);
- AttachmentService ws(endpoint);
- ISoapAttachment *att=ws.createSoapAttachment();
- //declare an ifstream object to read from a file.
- ifstream is;
- //Opening a file which contans an actual SOAP Message.
- is.open ("SOAPMessage.xml",ios::binary);
- if(is==NULL){
- cout<<"Filepath specified for attachment is wrong";
- exit(0);
- }
- //Finding out the number of bytes in the file
- is.seekg (0, ios::end);
- int length = is.tellg();
- is.seekg (0, ios::beg);
- char *buffer;
-
- // allocate memory:
-
- buffer = new char [length];
- // read data as a block:
- is.read (buffer,length);
- is.close();
-
- //Adding the content type as text/xml
- att->addHeader(AXIS_CONTENT_TYPE,"text/xml");
- xsd__base64Binary b64b1;
- b64b1.set((xsd__unsignedByte *) buffer, length);
- att->addBody(&b64b1);
- //Calling the service. Here passing NULL as argument
- //Service will return the content of 'att' ie content of first argument
- xsd__string str=ws.nillableAttachment(att,NULL,NULL,"hello");
- if(str!=NULL)
- cout<<str<<endl;
- else
- cout<<"<null>"<<endl;
- bSuccess = true;
- }
- catch(AxisException& e)
- {
- bool bSilent = false;
-
- if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
- {
- if( iRetryIterationCount > 0)
- {
- bSilent = true;
- }
- }
- else
- {
- iRetryIterationCount = 0;
- }
+ char endpoint[256];
+ const char* url="http://localhost:80/axis/AttachmentService";
+ char *Result;
+ url = argv[1];
+ bool bSuccess = false;
+ int iRetryIterationCount = 3;
+
+ signal(SIGILL, sig_handler);
+ signal(SIGABRT, sig_handler);
+ signal(SIGSEGV, sig_handler);
+ //signal(SIGQUIT, sig_handler);
+ //signal(SIGBUS, sig_handler);
+ signal(SIGFPE, sig_handler);
+
+ do
+ {
+ try
+ {
+ sprintf(endpoint, "%s", url);
+ AttachmentService ws(endpoint);
+ ISoapAttachment *att=ws.createSoapAttachment();
+ //declare an ifstream object to read from a file.
+ ifstream is;
+ //Opening a file which contans an actual SOAP Message.
+ is.open ("SOAPMessage.xml",ios::binary);
+ if(is==NULL)
+ {
+ cout<<"Filepath specified for attachment is wrong";
+ exit(0);
+ }
+ //Finding out the number of bytes in the file
+ is.seekg (0, ios::end);
+ int length = is.tellg();
+ is.seekg (0, ios::beg);
+ char *buffer;
+
+ // allocate memory:
+
+ buffer = new char [length];
+ // read data as a block:
+ is.read (buffer,length);
+ is.close();
+
+ //Adding the content type as text/xml
+ att->addHeader(AXIS_CONTENT_TYPE,"text/xml");
+ xsd__base64Binary b64b1;
+ b64b1.set((xsd__unsignedByte *) buffer, length);
+ att->addBody(&b64b1);
+
+ xsd__string str=ws.nillableAttachment(att,NULL,NULL,"hello");
+ if(str!=NULL)
+ cout<<str<<endl;
+ else
+ cout<<"<null>"<<endl;
+ bSuccess = true;
+ }
+ catch(AxisException& e)
+ {
+ bool bSilent = false;
+
+ if( e.getExceptionCode() == CLIENT_TRANSPORT_OPEN_CONNECTION_FAILED)
+ {
+ if( iRetryIterationCount > 0)
+ bSilent = true;
+ }
+ else
+ iRetryIterationCount = 0;
if( !bSilent)
- {
- cout << "Exception : " << e.what() << endl;
- }
- }
- catch(exception& e)
- {
- cout << "Unknown exception has occured" << endl;
- }
- catch(...)
- {
- cout << "Unknown exception has occured" << endl;
- }
- iRetryIterationCount--;
- } while( iRetryIterationCount > 0 && !bSuccess);
- cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
-
- return 0;
+ cout << "Exception : " << e.what() << endl;
+ }
+ catch(exception& e)
+ {
+ cout << "Unknown exception has occured" << endl;
+ }
+ catch(...)
+ {
+ cout << "Unknown exception has occured" << endl;
+ }
+
+ iRetryIterationCount--;
+ }
+ while( iRetryIterationCount > 0 && !bSuccess);
+
+ cout<< "---------------------- TEST COMPLETE -----------------------------"<< endl;
+
+ return 0;
}
void sig_handler(int sig) {
- signal(sig, sig_handler);
- cout << "SIGNAL RECEIVED " << sig << endl;
- exit(1);
+ signal(sig, sig_handler);
+ cout << "SIGNAL RECEIVED " << sig << endl;
+ exit(1);
}