/[dgee]/dgee/cslib/DotGNU/XmlRpc/XmlRpcClientProtocol.cs
ViewVC logotype

Diff of /dgee/cslib/DotGNU/XmlRpc/XmlRpcClientProtocol.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by csmith, Thu Oct 30 17:19:36 2003 UTC revision 1.4 by csmith, Tue Nov 11 19:01:32 2003 UTC
# Line 83  namespace DotGNU.XmlRpc Line 83  namespace DotGNU.XmlRpc
83                          XmlRpcResponse r = (XmlRpcResponse)response.Deserialize( ns );                          XmlRpcResponse r = (XmlRpcResponse)response.Deserialize( ns );
84    
85                          ns.Close();                          ns.Close();
86                          return r.ToArray();                          Object[] results = r.ToArray();
87    
88                            if( results.Length > 0 &&
89                                results[0].GetType().ToString() == "DotGNU.XmlRpc.XmlRpcStruct")
90                            {
91                              XmlRpcStruct f = (XmlRpcStruct)results[0];
92    
93                              if( f.ContainsKey("faultCode") ) {
94                                throw new XmlRpcException( (int)f["faultCode"],
95                                                               (string)f["faultString"] );
96                              }
97                        }
98    
99                            return results;
100                  }                  }
101          }          }
102  }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26