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 cd...@apache.org on 2005/05/27 12:21:19 UTC

cvs commit: ws-axis/c/tests/auto_build/testcases/tests/server InOut.xml

cdinapala    2005/05/27 03:21:19

  Added:       c/tests/auto_build/testcases/server/cpp InOut.cpp
               c/tests/auto_build/testcases/tests/server InOut.xml
  Log:
  Add server side support to InOut test.
  
  Revision  Changes    Path
  1.1                  ws-axis/c/tests/auto_build/testcases/server/cpp/InOut.cpp
  
  Index: InOut.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 file was auto-generated by the Axis C++ Web Service Generator (WSDL2Ws)
   * This file contains definitions of the web service
   */
  
  #include "InOut.hpp"
  
  
  InOut::InOut()
  {
  }
  
  InOut::~InOut()
  {
  }
  
  /* This function is called by the AxisEngine when something went wrong
   with the current web service request processing. Appropriate actions should
   be taken here.*/
  void InOut::onFault()
  {
  }
  /* This function is called by the AxisEngine when this web service
   library is first loaded. So here we can initialize any global/static
   data structures of this web service or open database connections */
  void InOut::init()
  {
  }
  /* This function is called by the AxisEngine when this web service
   library is unloaded. So we can deallocate any global/static data structures
   and close database connections etc here. */
  void InOut::fini()
  {
  }
  void InOut::noParametersNoReturn()  
  {
  }
  xsd__int InOut::noParametersIntReturn()  
  {
  	return 27;
  }
  void InOut::multiParametersNoReturn(xsd__string Value0, xsd__int Value1, xsd__double Value2)  
  {
  }
  ComplexType2* InOut::complexParameterComplexReturn(ComplexType2* Value0)  
  {
  	ComplexType2* outParam = new ComplexType2();
  	outParam = Value0;
  	return outParam;
  }
  xsd__int InOut::multiComplexParametersIntReturn(xsd__string Value0, ComplexType1* Value1, xsd__int Value2, xsd__double Value3, xsd__string_Array Value4)  
  {
  	return (Value3 + Value2 +1);
  }
  xsd__int InOut::multiComplexParametersNilIntReturn(xsd__string Value0, ComplexNilType1* Value1, xsd__int * Value2, xsd__double * Value3, xsd__string_Array Value4)  
  {
  	return 42;
  }
  xsd__int InOut::multiArrayParametersIntReturn(xsd__int_Array Value0, xsd__double_Array Value1, xsd__string_Array Value2)  
  {
  	return 43;
  }
  
  
  
  1.1                  ws-axis/c/tests/auto_build/testcases/tests/server/InOut.xml
  
  Index: InOut.xml
  ===================================================================
  <service>
      <name>InOut</name>
      <description>InOutTest</description>
      <serviceLang>cpp</serviceLang>
      <serviceCode>InOut.cpp</serviceCode>
      <wsdl>InOut.wsdl</wsdl>
  	<servicename></servicename>
  </service>