[ 
http://issues.apache.org/jira/browse/AXISCPP-991?page=comments#action_12459324 
] 
            
Franz Fehringer commented on AXISCPP-991:
-----------------------------------------

For a correct parse of SoapFaults and their details i had to make two 
additional small changes (apart from making faultactor optional, see 
AXISCPP-1011):

$ pwd
/cd/d/Quellen/SVN/axis/c/src/soap

Index: SoapDeSerializer.cpp
===================================================================
--- SoapDeSerializer.cpp        (Revision 480584)
+++ SoapDeSerializer.cpp        (Arbeitskopie)
@@ -899,7 +904,7 @@
     
     // Skip the faultdetail tag
     if (!m_pNode)
-        m_pParser->next ();
+        m_pNode = m_pParser->next();
         
     m_nStatus = AXIS_SUCCESS;
 
@@ -1619,7 +1624,8 @@
                         if (bReturn)
                         {
                             m_pNode = m_pParser->next ();   /* skip end 
element node too */
-                            m_pNode = NULL;    /* AXISCPP-978 node identified 
and used */
+                           if (m_pNode->m_type != START_ELEMENT || 
m_pNode->m_type2 != END_ELEMENT)
+                               m_pNode = NULL;    /* AXISCPP-978 node 
identified and used */
                             return;
                         }
                     }


> Deserializing complex type broken when start-end element tag is encountered
> ---------------------------------------------------------------------------
>
>                 Key: AXISCPP-991
>                 URL: http://issues.apache.org/jira/browse/AXISCPP-991
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Client - Deserialization
>            Reporter: nadir amra
>         Assigned To: nadir amra
>
> If a complex type defined as:
>       <s:complexType name="SortR">
>         <s:sequence>
>           <s:element minOccurs="0" maxOccurs="1" name="ListMsg" 
> type="tns:ArrayOfMsgS" />
>           <s:element minOccurs="0" maxOccurs="1" name="DateMed" 
> type="s:string" />
>           <s:element minOccurs="1" maxOccurs="1" name="NumberMed" 
> type="s:int" />
>         </s:sequence>
>       </s:complexType>
> And the response comes back as:
> <SortRResult>
>     <ListMsg/>
>     <DateMed>2006-11-10</DateMed>
>     <NumberMed>123456</NumberMed>
> .
> .
> The deserialization of ListMsg does not recognize the fact that empty element 
> was passed and thus attempts to parse the subsequent data as if it was part 
> of ListMsg. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to