Switch to reference for SOAP request envelope.
authorScott Cantor <cantor.2@osu.edu>
Tue, 13 Feb 2007 19:26:29 +0000 (19:26 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 13 Feb 2007 19:26:29 +0000 (19:26 +0000)
xmltooling/soap/SOAPClient.h
xmltooling/soap/impl/SOAPClient.cpp

index 65c6c8b..aff5edf 100644 (file)
@@ -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
index ba4676d..fbfc1bd 100644 (file)
@@ -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);