📄 ctype_server.cpp
字号:
// AUTO GENERATED ( copied from "Ctype_impl.cpp" ).
#include "Echo_impl.h"
/* must be the last include */
#ifdef MEMWATCH
#include <memwatch.h>
#endif
namespace echo {
void Echo_Impl::echo(
const UserProfile & user,
esoap::String & name,
int & age,
int & zipcode )
{
name = user.get_m_name();
age = user.get_m_age();
// to be able to access nested types...
UserProfile & u = ( UserProfile &)user;
zipcode = u.get_m_address().get_m_zipcode();
}
}
// AUTO GENERATED END.
// ---------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
// $Id: ctype_server.cpp,v 1.3 2001/09/11 12:02:57 rosimildo Exp $
//
// Copyright (c) 2001 Exor International Inc. All rights reserved.
//
// MODULE DESCRIPTION: A simple "echo" example for eSoap.
//
// MODIFICATION/HISTORY:
//
// $Log: ctype_server.cpp,v $
// Revision 1.3 2001/09/11 12:02:57 rosimildo
// changed copyright from Technopoint to Exit; updated version to 0.9
//
// Revision 1.2 2001/09/09 14:19:52 rosimildo
// Added some comments. Added copyright.
//
// Revision 1.1 2001/09/08 19:42:56 rosimildo
// Added the ctype example.
//
// Revision 1.1 2001/09/08 15:15:19 rosimildo
// Added the array example.
//
//
// Created 2001/09/10 Rosimildo da Silva, ConnectTel Inc.
// [rdasilva@connecttel.com]
//
/////////////////////////////////////////////////////////////////////////////
#include "soap_server.h"
int main(int, char ** )
{
// create the server instance, and initialize it.
esoap::ServerFactory::create( esoap::ServerFactory::ABYSS );
esoap::Server::instance()->init( "eSOAPServer", 8080, ".", 0, true );
// Create "Echo" instance, and register it with the server
echo::Echo_Impl echo;
echo.activate();
// start the server...
esoap::Server::instance()->run();
// shutdown server.
echo.deactivate();
esoap::Server::setInstance( 0 );
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -