axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/src/soap SoapSerializer.cpp
Date Wed, 08 Jun 2005 09:14:08 GMT
samisa      2005/06/08 02:14:08

  Modified:    c/src/soap SoapSerializer.cpp
  Log:
  One more fix that enables the reuse of SOAP message object
  
  Revision  Changes    Path
  1.119     +11 -3     ws-axis/c/src/soap/SoapSerializer.cpp
  
  Index: SoapSerializer.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/SoapSerializer.cpp,v
  retrieving revision 1.118
  retrieving revision 1.119
  diff -u -r1.118 -r1.119
  --- SoapSerializer.cpp	8 Jun 2005 06:47:07 -0000	1.118
  +++ SoapSerializer.cpp	8 Jun 2005 09:14:08 -0000	1.119
  @@ -494,9 +494,17 @@
   int SoapSerializer::createSoapMethod( const AxisChar * sLocalName, 
                                         const AxisChar * sURI)
   {
  -    SoapMethod * pMethod = new SoapMethod();
  -
  -    setSoapMethod( pMethod);
  +    SoapMethod * pMethod = NULL;
  +    if( !(m_pSoapEnvelope->m_pSoapBody->m_pSoapMethod))
  +    {
  +        pMethod = new SoapMethod();
  +        setSoapMethod( pMethod);
  +    }
  +    else
  +    {
  +        pMethod = m_pSoapEnvelope->m_pSoapBody->m_pSoapMethod;
  +        pMethod->clearOutParams();
  +    }
   
       pMethod->setLocalName( sLocalName);
       pMethod->setPrefix( getNamespacePrefix( sURI));
  
  
  

Mime
View raw message