blob: b93deeb8b9506b043bb0b511685bce9c461d74e5 [file] [log] [blame]
/*
* Copyright 2003-2006 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 "ComplexTypeWithNillableSimpleElement.hpp"
#include <stdio.h>
ComplexTypeWithNillableSimpleElement::ComplexTypeWithNillableSimpleElement()
{
}
ComplexTypeWithNillableSimpleElement::~ComplexTypeWithNillableSimpleElement()
{
}
/* 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 ComplexTypeWithNillableSimpleElement::onFault()
{
}
SimpleComplexType* ComplexTypeWithNillableSimpleElement::echo(SimpleComplexType* Value0)
{
int number=*(Value0->complexTypeElement);
char *ptr = new char[10];
int iSign = (number > 0 ? 1 : -1);
#ifdef WIN32
ptr=itoa(number,ptr,10);
ptr=strrev(ptr);
#else
sprintf( ptr, "%d", number);
int iNumberLength = (int) strlen( ptr);
if( iNumberLength > 1)
{
for( number = 0; number < iNumberLength / 2; number++)
{
char cSwap = ptr[number];
ptr[number] = ptr[iNumberLength - number - 1];
ptr[iNumberLength - number - 1] = cSwap;
}
}
#endif
number=atoi(ptr) * iSign;
*Value0->complexTypeElement=number;
return Value0;
}