ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sanj...@apache.org
Subject cvs commit: ws-axis/c/samples/client/interoptests/base InteropBaseClient.cpp
Date Wed, 20 Oct 2004 11:12:15 GMT
sanjaya     2004/10/20 04:12:15

  Modified:    c/samples/client/interoptests/base InteropBaseClient.cpp
  Log:
  changed argument format to take the whole url
  
  Revision  Changes    Path
  1.25      +18 -9     ws-axis/c/samples/client/interoptests/base/InteropBaseClient.cpp
  
  Index: InteropBaseClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/client/interoptests/base/InteropBaseClient.cpp,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- InteropBaseClient.cpp	6 Oct 2004 08:20:58 -0000	1.24
  +++ InteropBaseClient.cpp	20 Oct 2004 11:12:15 -0000	1.25
  @@ -50,22 +50,31 @@
       int x;
       char buffer1[100];
       char endpoint[256];
  -	const char* server="localhost";
  -	const char* port="80";
  +
  +    // Set default service URL
  +    sprintf (endpoint, "http://localhost/axis/base");
  +    // Could use http://localhost:8080/axis/services/echo to test with Axis Java
   
       try
       {
   
  -	if (argc == 3)
  +	if (argc > 1)
   	{
  -		server = argv[1];
  -		port = argv[2];
  +	    // Watch for special case help request
  +	    if (!strncmp (argv[1], "-", 1)) // Check for - only so that it works for 
  +                                            //-?, -h or --help; -anything 
  +	    {
  +		usage (argv[0], endpoint);
  +		return 2;
  +	    }
  +	    sprintf (endpoint, argv[1]);
   	}
  -	printf("Usage :\n %s <server> <port>\n\n", argv[0]);
  -	printf("Sending Requests to Server http://%s:%s ........\n\n", server, port);
  -	sprintf(endpoint, "http://%s:%s/axis/base", server, port);
   
  -	InteropTestPortType ws (endpoint);
  +
  +	cout << endl << " Using service at " << endpoint << endl <<
endl;
  +
  +
  +    InteropTestPortType ws (endpoint);
   
   	//testing echoString 
   	printf ("invoking echoString...\n");
  
  
  

Mime
View raw message