Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 54669 invoked from network); 14 Sep 2006 13:44:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Sep 2006 13:44:51 -0000 Received: (qmail 78259 invoked by uid 500); 14 Sep 2006 13:44:50 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 78163 invoked by uid 500); 14 Sep 2006 13:44:50 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 78152 invoked by uid 99); 14 Sep 2006 13:44:49 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Sep 2006 06:44:49 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=prestonf@apache.org; spf=permerror X-ASF-Spam-Status: No, hits=-9.3 required=5.0 tests=ALL_TRUSTED,NO_REAL_NAME,WEIRD_PORT Received-SPF: error (idunn.apache.osuosl.org: domain apache.org from 140.211.166.113 cause and error) Received: from ([140.211.166.113:54200] helo=eris.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 61/60-05571-38C59054 for ; Thu, 14 Sep 2006 06:43:31 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 212ED1A981A; Thu, 14 Sep 2006 06:43:29 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r443352 - in /webservices/axis/trunk/c/tests/auto_build/testcases: ./ client/cpp/ output/ tests/ wsdls/ Date: Thu, 14 Sep 2006 13:43:28 -0000 To: axis-cvs@ws.apache.org From: prestonf@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20060914134329.212ED1A981A@eris.apache.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: prestonf Date: Thu Sep 14 06:43:28 2006 New Revision: 443352 URL: http://svn.apache.org/viewvc?view=rev&rev=443352 Log: Hi All, New UT to test complextypes with restrictions such as patterns. Added: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RestrictedPattern17667Client.cpp webservices/axis/trunk/c/tests/auto_build/testcases/output/RestrictedPattern17667.cpp.out webservices/axis/trunk/c/tests/auto_build/testcases/output/RestrictedPattern17667_ServerResponse.expected webservices/axis/trunk/c/tests/auto_build/testcases/tests/RestrictedPattern17667.xml webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/RestrictedPattern17667.wsdl webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/RestrictedPattern17667.xsd Modified: webservices/axis/trunk/c/tests/auto_build/testcases/unitTest.list Added: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RestrictedPattern17667Client.cpp URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RestrictedPattern17667Client.cpp?view=auto&rev=443352 ============================================================================== --- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RestrictedPattern17667Client.cpp (added) +++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/RestrictedPattern17667Client.cpp Thu Sep 14 06:43:28 2006 @@ -0,0 +1,88 @@ +#include "IQueryService.hpp" +#include + +int main( int argc, char * argv[]) +{ + char * pszEndpoint = "http://localhost:9020/UnitTest_17667"; + + // If there are arguments, replace the default URL with that specified on the + // command line. + if( argc > 1) + { + pszEndpoint = argv[1]; + } + + // Create the web service. + IQueryService * pIQueryService = new IQueryService( pszEndpoint, APTHTTP1_1); + + try + { + // Initialise the objects that will be returned from the web service call. + plmType_Array * pPlmType_Array = NULL; + RepFormatType_Array * pRepFormatType_Array = NULL; + + // Get the information from the response message. + pIQueryService->query( &pPlmType_Array, &pRepFormatType_Array); + + int iPlmType_ArraySize = 0; + plmType ** ppPlmType = pPlmType_Array->get( iPlmType_ArraySize); + int iRepFormatType_ArraySize = 0; + RepFormatType ** ppRepFormatType = pRepFormatType_Array->get( iRepFormatType_ArraySize); + + // Display the response information. + for( int iIndex = 0; iIndex < iPlmType_ArraySize; iIndex++) + { + xsd__int id = ppPlmType[iIndex]->getplmid(); + + cout << "id: " << id << endl; + } + + if( iRepFormatType_ArraySize == 0) + { + cout << "RepFormatType is empty" << endl; + } + + for( int iIndex = 0; iIndex < iRepFormatType_ArraySize; iIndex++) + { + xsd__unsignedInt uiOwner = ppRepFormatType[iIndex]->getowner(); + RepresentationFormatType pszFormat = ppRepFormatType[iIndex]->getformat(); + RepresentationLinkType pRLT = ppRepFormatType[iIndex]->getassociatedFile(); + + cout << "Owner[" << iIndex << "]: " << uiOwner << endl; + cout << "Format[" << iIndex << "]: " << pszFormat << endl; + cout << "Rep Link Type[" << iIndex << "]: " << pRLT << endl; + } + + // Tidy up. + delete *ppPlmType; + delete *ppRepFormatType; + } + + // Catch those exceptions! + catch( AxisException& e) + { + cout << "Exception : " << e.what() << endl; + } + catch( exception& e) + { + cout << "Unknown exception has occured: " << e.what() << endl; + } + catch( ...) + { + cout << "Unknown exception has occured" << endl; + } + + // Final tidy up. + delete pIQueryService; + + // Done! + cout << "---------------------- TEST COMPLETE -----------------------------" << endl; + + // Output should be as follows:- + // id: 5 + // Owner[0]: 25 + // Format[0]: format + // Rep Link Type[0]: associatedFile + // ---------------------- TEST COMPLETE ----------------------------- + return 0; +} \ No newline at end of file Added: webservices/axis/trunk/c/tests/auto_build/testcases/output/RestrictedPattern17667.cpp.out URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/tests/auto_build/testcases/output/RestrictedPattern17667.cpp.out?view=auto&rev=443352 ============================================================================== --- webservices/axis/trunk/c/tests/auto_build/testcases/output/RestrictedPattern17667.cpp.out (added) +++ webservices/axis/trunk/c/tests/auto_build/testcases/output/RestrictedPattern17667.cpp.out Thu Sep 14 06:43:28 2006 @@ -0,0 +1,5 @@ +id: 5 +Owner[0]: 25 +Format[0]: format +Rep Link Type[0]: associatedFile +---------------------- TEST COMPLETE ----------------------------- Added: webservices/axis/trunk/c/tests/auto_build/testcases/output/RestrictedPattern17667_ServerResponse.expected URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/tests/auto_build/testcases/output/RestrictedPattern17667_ServerResponse.expected?view=auto&rev=443352 ============================================================================== --- webservices/axis/trunk/c/tests/auto_build/testcases/output/RestrictedPattern17667_ServerResponse.expected (added) +++ webservices/axis/trunk/c/tests/auto_build/testcases/output/RestrictedPattern17667_ServerResponse.expected Thu Sep 14 06:43:28 2006 @@ -0,0 +1,21 @@ +HTTP/1.1 200 OK +Server: WebSphere Application Server/5.1 +Content-Type: text/xml; charset=utf-8 +Content-Language: en-GB +Transfer-Encoding: chunked + +### + + + + + + + + + + +0 Added: webservices/axis/trunk/c/tests/auto_build/testcases/tests/RestrictedPattern17667.xml URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/tests/auto_build/testcases/tests/RestrictedPattern17667.xml?view=auto&rev=443352 ============================================================================== --- webservices/axis/trunk/c/tests/auto_build/testcases/tests/RestrictedPattern17667.xml (added) +++ webservices/axis/trunk/c/tests/auto_build/testcases/tests/RestrictedPattern17667.xml Thu Sep 14 06:43:28 2006 @@ -0,0 +1,16 @@ + + RestrictedPattern17667 + RestrictedPattern17667 + cpp + RestrictedPattern17667client.cpp + RestrictedPattern17667.wsdl + + + RestrictedPattern17667.cpp.out + + + RestrictedPattern17667_ServerResponse.expected + + + http://localhost:80/RestrictedPattern17667 + Modified: webservices/axis/trunk/c/tests/auto_build/testcases/unitTest.list URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/tests/auto_build/testcases/unitTest.list?view=diff&rev=443352&r1=443351&r2=443352 ============================================================================== Binary files - no diff available. Added: webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/RestrictedPattern17667.wsdl URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/RestrictedPattern17667.wsdl?view=auto&rev=443352 ============================================================================== --- webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/RestrictedPattern17667.wsdl (added) +++ webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/RestrictedPattern17667.wsdl Thu Sep 14 06:43:28 2006 @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Added: webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/RestrictedPattern17667.xsd URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/RestrictedPattern17667.xsd?view=auto&rev=443352 ============================================================================== --- webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/RestrictedPattern17667.xsd (added) +++ webservices/axis/trunk/c/tests/auto_build/testcases/wsdls/RestrictedPattern17667.xsd Thu Sep 14 06:43:28 2006 @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org