axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/tests/auto_build/testcases/server/cpp LargeReturningString.cpp
Date Wed, 30 Mar 2005 08:30:49 GMT
samisa      2005/03/30 00:30:49

  Modified:    c/tests/auto_build/testcases/server/cpp
                        LargeReturningString.cpp
  Log:
  Fixed logic to return the correct string with correct length
  
  Revision  Changes    Path
  1.4       +6 -15     ws-axis/c/tests/auto_build/testcases/server/cpp/LargeReturningString.cpp
  
  Index: LargeReturningString.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/server/cpp/LargeReturningString.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- LargeReturningString.cpp	23 Mar 2005 15:45:10 -0000	1.3
  +++ LargeReturningString.cpp	30 Mar 2005 08:30:49 -0000	1.4
  @@ -1,17 +1,3 @@
  -// Copyright 2003-2004 The Apache Software Foundation.
  -// 
  -// Licensed under the Apache License, Version 2.0 (the "License");
  -// you may not use this file except in compliance with the License.
  -// You may obtain a copy of the License at
  -// 
  -//        http://www.apache.org/licenses/LICENSE-2.0
  -// 
  -// Unless required by applicable law or agreed to in writing, software
  -// distributed under the License is distributed on an "AS IS" BASIS,
  -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  -// See the License for the specific language governing permissions and
  -// limitations under the License.
  -
   /*
    * This file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
    * This file contains definitions of the web service
  @@ -48,6 +34,11 @@
   }
   xsd__string LargeReturningString::getLargeString(xsd__int Value0)  
   {
  -	xsd__string ret=(xsd__string)Value0;
  +	xsd__string ret= new char[Value0];
  +	char c = 'A';
  +	memset(ret, c, Value0 - 1);
  +	
  +	ret[Value0 -1] = '\0';
  +
   	return ret;
   }
  
  
  

Mime
View raw message