|
From: andrew7 <bd...@us...> - 2007-06-10 04:02:37
|
Update of /cvsroot/smartwin/SmartWin/SmartSOAP/SmartSOAP In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv12059 Modified Files: SoapRequest.h Log Message: Unicode conversion Index: SoapRequest.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/SmartSOAP/SmartSOAP/SoapRequest.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- SoapRequest.h 5 May 2006 17:14:41 -0000 1.12 +++ SoapRequest.h 10 Jun 2007 04:02:33 -0000 1.13 @@ -67,7 +67,7 @@ * the deserialize function must parse the returned XML value from the SOAP response and return an object of type ReturnObject. * The timeout defines how long time the framework will wait after submitting the SOAP request for the response before raising an exception. */ - SoapRequest( const std::string & host, + SoapRequest( const SmartUtil::tstring & host, const SmartUtil::tstring & postUrl, const SmartUtil::tstring & soapAction, int port, @@ -75,7 +75,7 @@ const SendObject & sendObject, unsigned int timeout = 120 ); - SoapRequest( const std::string & connectionString, + SoapRequest( const SmartUtil::tstring & connectionString, const SmartUtil::tstring & soapAction, int port, Serializer serializer, @@ -92,14 +92,14 @@ // Implementation ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// template< class Serializer, class SendObject, class ReturnObject > - SoapRequest< Serializer, SendObject, ReturnObject >::SoapRequest( const std::string & host, + SoapRequest< Serializer, SendObject, ReturnObject >::SoapRequest( const SmartUtil::tstring & host, const SmartUtil::tstring & postUrl, const SmartUtil::tstring & soapAction, int port, Serializer serializer, const SendObject & sendObject, unsigned int timeout ) - : itsHttpRequest( host, postUrl, _T( "text/xml; charset=utf-8" ), boost::lexical_cast< std::string >( port ), timeout ), + : itsHttpRequest( host, postUrl, _T( "text/xml; charset=utf-8" ), boost::lexical_cast< SmartUtil::tstring >( port ), timeout ), itsSerializer( serializer ), itsSendObject( sendObject ) { @@ -107,13 +107,13 @@ } template< class Serializer, class SendObject, class ReturnObject > - SoapRequest< Serializer, SendObject, ReturnObject >::SoapRequest( const std::string & connectionString, + SoapRequest< Serializer, SendObject, ReturnObject >::SoapRequest( const SmartUtil::tstring & connectionString, const SmartUtil::tstring & soapAction, int port, Serializer serializer, const SendObject & sendObject, unsigned int timeout ) - : itsHttpRequest( connectionString, _T( "text/xml; charset=utf-8" ), boost::lexical_cast< std::string >( port ), timeout ), + : itsHttpRequest( connectionString, _T( "text/xml; charset=utf-8" ), boost::lexical_cast< SmartUtil::tstring >( port ), timeout ), itsSerializer( serializer ), itsSendObject( sendObject ) { |