From d4ea52764415e06a57877eb6df10586b01dca5dd Mon Sep 17 00:00:00 2001 From: cantor Date: Tue, 13 Feb 2007 19:26:29 +0000 Subject: [PATCH] Switch to reference for SOAP request envelope. git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@255 de75baf8-a10c-0410-a50a-987c0e22f00f --- xmltooling/soap/SOAPClient.h | 2 +- xmltooling/soap/impl/SOAPClient.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xmltooling/soap/SOAPClient.h b/xmltooling/soap/SOAPClient.h index 65c6c8b..aff5edf 100644 --- a/xmltooling/soap/SOAPClient.h +++ b/xmltooling/soap/SOAPClient.h @@ -72,7 +72,7 @@ namespace soap11 { * @param peer peer to send message to, expressed in TrustEngine terms * @param endpoint URL of endpoint to recieve message */ - virtual void send(const Envelope* env, const xmltooling::KeyInfoSource& peer, const char* endpoint); + virtual void send(const Envelope& env, const xmltooling::KeyInfoSource& peer, const char* endpoint); /** * Returns the response message, if any. As long as a response is diff --git a/xmltooling/soap/impl/SOAPClient.cpp b/xmltooling/soap/impl/SOAPClient.cpp index ba4676d..fbfc1bd 100644 --- a/xmltooling/soap/impl/SOAPClient.cpp +++ b/xmltooling/soap/impl/SOAPClient.cpp @@ -46,7 +46,7 @@ void SOAPClient::reset() m_transport=NULL; } -void SOAPClient::send(const Envelope* env, const KeyInfoSource& peer, const char* endpoint) +void SOAPClient::send(const Envelope& env, const KeyInfoSource& peer, const char* endpoint) { // Prepare a transport object. const char* pch = strchr(endpoint,':'); @@ -58,7 +58,7 @@ void SOAPClient::send(const Envelope* env, const KeyInfoSource& peer, const char // Serialize envelope. stringstream s; - s << *env; + s << env; // Send to peer. m_transport->send(s); -- 2.1.4