blob: 23cc9681a68fc9a97f20aeb063c54d833243ca55 [file] [log] [blame]
#include <iostream>
#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;
}