ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamej...@apache.org
Subject cvs commit: ws-axis/c/tests/auto_build/testcases/client/cpp TestSoapMethodAttributeClient.cpp
Date Wed, 23 Feb 2005 05:50:00 GMT
jamejose    2005/02/22 21:50:00

  Added:       c/tests/auto_build/testcases/client/cpp
                        TestSoapMethodAttributeClient.cpp
  Log:
  
  
  Revision  Changes    Path
  1.1                  ws-axis/c/tests/auto_build/testcases/client/cpp/TestSoapMethodAttributeClient.cpp
  
  Index: TestSoapMethodAttributeClient.cpp
  ===================================================================
  /*
   * This is written to test the functionality of setSOAPMethodAttribute() API 
   * in Stub class.
   */
  
  #include "MathOps.hpp"
  #include <iostream>
  
  int main(int argc, char *argv[])
  {
  	char endpoint[256];
      const char* url="http://localhost:80/axis/MathOps";
      int iResult=0;
  
      url = argv[1];
      sprintf(endpoint, "%s", url);
      
  
  		MathOps ws(endpoint);
  		ws.setSOAPMethodAttribute("div","ns5","10");
  		//ws.setSOAPMethodAttribute("add", "", "http://soapinteroptest.org", "value");
  		
  
      printf("invoking MathOps div...\n");
      
          try
          {
                  
  			iResult = ws.div(15,5);
  			cout << "Result is = " << iResult << endl;
                  
  
          }
          catch (AxisException& e)
          {
                  printf("%s\n", e.what());
          }
          catch(...)
          {
                  printf("Unknown exception\n");
          }
  
      cout<< "---------------------- TEST COMPLETE -----------------------------"<<
endl;
  
      return 0;
  }
                                                            
  
  

Mime
View raw message