axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject cvs commit: ws-axis/c/src/soap SoapDeSerializer.cpp SoapFault.cpp
Date Thu, 01 Jul 2004 09:12:55 GMT
damitha     2004/07/01 02:12:55

  Modified:    c/src/soap SoapDeSerializer.cpp SoapFault.cpp
  Log:
  
  
  Revision  Changes    Path
  1.70      +6 -0      ws-axis/c/src/soap/SoapDeSerializer.cpp
  
  Index: SoapDeSerializer.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/SoapDeSerializer.cpp,v
  retrieving revision 1.69
  retrieving revision 1.70
  diff -u -r1.69 -r1.70
  --- SoapDeSerializer.cpp	28 Jun 2004 07:26:40 -0000	1.69
  +++ SoapDeSerializer.cpp	1 Jul 2004 09:12:55 -0000	1.70
  @@ -351,6 +351,11 @@
       //if (0 != strcmp(m_pNode->m_pchNameOrValue, pName)) return AXIS_FAIL;
       if (0 != strcmp(m_pNode->m_pchNameOrValue, pName))
       {
  +	/* A soap fault has occured. we will deserialize it as doc literal
  +	 * So we set the style as doc literal. This way of doing things
  +	 * is not so nice. I'll rectify this asap
  +	 * /
  +	setStyle(DOC_LITERAL);
           AXISTRACE1("AXISC_NODE_VALUE_MISMATCH_EXCEPTION", CRITICAL);
           throw AxisGenException(AXISC_NODE_VALUE_MISMATCH_EXCEPTION);    
       }
  @@ -1027,6 +1032,7 @@
       /* if anything has gone wrong earlier just do nothing */
       if (RPC_ENCODED == m_nStyle)
       {
  +
           m_pNode = m_pParser->next();
           /* just skip wrapper node with type info
            * Ex: <tns:QuoteInfoType xmlns:tns="http://www.getquote.org/test"> */ 
  
  
  
  1.32      +4 -3      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.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- SoapFault.cpp	28 Jun 2004 04:21:38 -0000	1.31
  +++ SoapFault.cpp	1 Jul 2004 09:12:55 -0000	1.32
  @@ -72,9 +72,10 @@
       /* written according to SOAP Version 1.1 */
   
       int iStatus= AXIS_SUCCESS;
  -	
  -	pSZ.serialize("<", gs_SoapEnvVersionsStruct[eSoapVersion].pchPrefix, ":",
  -		gs_SoapEnvVersionsStruct[eSoapVersion].pchWords[SKW_FAULT], ">", NULL); 
  +    /*Soap Faults are always serialized as doc literal*/
  +    pSZ.setStyle(DOC_LITERAL);	
  +    pSZ.serialize("<", gs_SoapEnvVersionsStruct[eSoapVersion].pchPrefix, ":",
  +        gs_SoapEnvVersionsStruct[eSoapVersion].pchWords[SKW_FAULT], ">", NULL); 
   	
       m_pFaultcodeParam->serialize(pSZ);
       //pSZ.serialize("<faultcode>", m_sFaultcode.c_str(), "</faultcode>", NULL);
  
  
  

Mime
View raw message