You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2005/04/06 13:23:25 UTC

cvs commit: ws-axis/c/samples/server/calculator Calculator.cpp

samisa      2005/04/06 04:23:25

  Modified:    c/samples/server/array ArrayTestPortType.cpp
  Added:       c/samples/server/calculator Calculator.cpp
  Log:
  Fixes to make the stuff work
  
  Revision  Changes    Path
  1.4       +1 -1      ws-axis/c/samples/server/array/ArrayTestPortType.cpp
  
  Index: ArrayTestPortType.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/server/array/ArrayTestPortType.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ArrayTestPortType.cpp	23 Mar 2005 15:44:55 -0000	1.3
  +++ ArrayTestPortType.cpp	6 Apr 2005 11:23:25 -0000	1.4
  @@ -17,7 +17,7 @@
    * This file contains definitions of the web service
    */
   
  -#include "ArrayTestPortType.h"
  +#include "ArrayTestPortType.hpp"
   
   
   ArrayTestPortType::ArrayTestPortType()
  
  
  
  1.1                  ws-axis/c/samples/server/calculator/Calculator.cpp
  
  Index: Calculator.cpp
  ===================================================================
  // 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 is the Service implementation CPP file genarated by theWSDL2Ws.
   *		Calculator.cpp: implemtation for the Calculator.
   *
   */
  #include "Calculator.hpp"
  
  void Calculator::onFault(){}
  void Calculator::init(){}
  void Calculator::fini(){}
  
  Calculator::Calculator()
  {
  }
  
  Calculator::~Calculator()
  {
  }
  
  int Calculator::add(int Value0, int Value1)
  {
  	return Value0+Value1;
  }
  int Calculator::sub(int Value0, int Value1)
  {
  	return Value0-Value1;
  }
  int Calculator::mul(int Value0, int Value1)
  {
  	return Value0*Value1;
  }
  int Calculator::div(int Value0, int Value1)
  {
  	if (Value1 == 0) return -1; /* :)) */
  	return Value0/Value1;
  }