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 sa...@apache.org on 2004/10/06 10:20:59 UTC

cvs commit: ws-axis/c/samples/client/interoptests/base InteropBaseClient.cpp

sanjaya     2004/10/06 01:20:59

  Modified:    c/samples/client/interoptests/base InteropBaseClient.cpp
  Log:
  changed the argument format to the base client to conform with other
  interoptests
  
  Revision  Changes    Path
  1.24      +8 -16     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.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- InteropBaseClient.cpp	8 Sep 2004 09:05:03 -0000	1.23
  +++ InteropBaseClient.cpp	6 Oct 2004 08:20:58 -0000	1.24
  @@ -50,28 +50,20 @@
       int x;
       char buffer1[100];
       char endpoint[256];
  -
  -    // Set default service URL
  -    sprintf (endpoint, "http://localhost/axis/base");
  -    // Could use http://localhost:8080/axis/services/echo to test with Axis Java
  +	const char* server="localhost";
  +	const char* port="80";
   
       try
       {
   
  -	if (argc > 1)
  +	if (argc == 3)
   	{
  -	    // 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]);
  +		server = argv[1];
  +		port = argv[2];
   	}
  -
  -
  -	cout << endl << " Using service at " << endpoint << endl << endl;
  +	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);