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 du...@apache.org on 2005/10/20 06:52:41 UTC
svn commit: r326817 -
/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleChoiceNillableClient.cpp
Author: dushshantha
Date: Wed Oct 19 21:52:34 2005
New Revision: 326817
URL: http://svn.apache.org/viewcvs?rev=326817&view=rev
Log:
Added a test case to test Simple Nillable Choice elements.
Added:
webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleChoiceNillableClient.cpp
Added: webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleChoiceNillableClient.cpp
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleChoiceNillableClient.cpp?rev=326817&view=auto
==============================================================================
--- webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleChoiceNillableClient.cpp (added)
+++ webservices/axis/trunk/c/tests/auto_build/testcases/client/cpp/SimpleChoiceNillableClient.cpp Wed Oct 19 21:52:34 2005
@@ -0,0 +1,48 @@
+#include <iostream.h>
+#include "ChoiceTestSoap.hpp"
+
+using namespace std;
+
+int main(int argc, char *argv[])
+{
+
+ try
+ {
+ const char* url="http://localhost:80/axis/SimpleChoice";
+ ChoiceComplexType* Value0=new ChoiceComplexType();
+ ChoiceComplexType* Value1;
+ int* a = NULL;
+ Value0->IntValue = &a;
+ Value0->StringValue=NULL;
+
+ if(argc>1)
+ url = argv[1];
+
+ cout<< "Calling the Service..."<<endl;
+ ChoiceTestSoap ws(url);
+
+ Value1=ws.echoChoice(Value0);
+
+ if ( !(*(Value1->IntValue)))
+ cout<<"The Value is NULL"<<endl;
+
+ }catch (AxisException & e)
+ {
+ printf ("Exception : %s\n", e.what ());
+ }
+ catch (exception & e)
+ {
+ printf ("Unknown exception has occured\n");
+ }
+ catch (...)
+ {
+ printf ("Unknown exception has occured\n");
+ }
+
+ return 0;
+
+}
+
+
+
+