You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by du...@apache.org on 2005/07/27 13:13:01 UTC

cvs commit: ws-axis/c/src/soap SoapFault.cpp

dushshantha    2005/07/27 04:13:01

  Modified:    c/src/soap SoapFault.cpp
  Log:
  made some modifications to the method SoapFault::setFaultDetail (const AxisChar* sFaultDetail) and serialize() to fix the issue AXISCPP-762
  
  Revision  Changes    Path
  1.57      +4 -9      ws-axis/c/src/soap/SoapFault.cpp
  
  Index: SoapFault.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/SoapFault.cpp,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- SoapFault.cpp	22 Jun 2005 10:46:39 -0000	1.56
  +++ SoapFault.cpp	27 Jul 2005 11:13:01 -0000	1.57
  @@ -76,18 +76,13 @@
           m_pFaultactorParam->serialize(pSZ);
       } 
   
  -	//Chinthana:Changed the code to solved Issue AXISCPP-706.
  -    /*if(m_pFaultDetail)
  -    {
  -            m_pFaultDetail->serialize(pSZ);
  -    }*/
  +	
   	if(m_pFaultDetail) 
   	{ 
  -		pSZ.serialize("<detail><appSpecific>", NULL); 
  +		pSZ.serialize("<detail>", NULL); 
   		m_pFaultDetail->serialize(pSZ); 
  -		pSZ.serialize("</appSpecific></detail>\n", NULL); 
  +		pSZ.serialize("</detail>\n", NULL); 
   	} 
  -	//22/06/2005.............................................
       
   	pSZ.serialize("</", gs_SoapEnvVersionsStruct[eSoapVersion].pchPrefix, ":",
   		gs_SoapEnvVersionsStruct[eSoapVersion].pchWords[SKW_FAULT], ">\n", NULL); 
  @@ -298,7 +293,7 @@
   int SoapFault::setFaultDetail(const AxisChar* sFaultDetail)
   {
       m_pFaultDetail = new Param();
  -    setParam(m_pFaultDetail, "detail", sFaultDetail, XSD_STRING);
  +    setParam(m_pFaultDetail, "appSpecific", sFaultDetail, XSD_STRING);
       m_sFaultDetail = sFaultDetail;
       m_bIsSimpleDetail = true;