From: Scott Cantor Date: Tue, 13 Feb 2007 19:26:29 +0000 (+0000) Subject: Switch to reference for SOAP request envelope. X-Git-Tag: 1.0-alpha1~92 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=commitdiff_plain;h=c48d5191ae29d896df1ef5c600fcf0f6a871dbc9 Switch to reference for SOAP request envelope. --- 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);