Permalink
Browse files

[Web Services] Fix regression caused by previous commit

Fixes a regression caused by the implementation of support
for optional parameters. GlobalIndex was not being set
when using SOAP RPC protocol.
  • Loading branch information...
slluis committed May 6, 2011
1 parent 04fd373 commit eb76a86876f3ab9aa00191b01f28a078a23571ac
@@ -41,7 +41,7 @@ internal class XmlTypeMapMember
{
string _name;
int _index;
- int _globalIndex;
+ int _globalIndex = -1;
int _specifiedGlobalIndex = -1;
TypeData _typeData;
MemberInfo _member;
@@ -303,6 +303,10 @@ internal class ClassMap: ObjectMap
public void AddMember (XmlTypeMapMember member)
{
+ // If GlobalIndex has not been set, set it now
+ if (member.GlobalIndex == -1)
+ member.GlobalIndex = _allMembers.Count;
+
_allMembers.Add (member);
if (!(member.DefaultValue is System.DBNull) && member.DefaultValue != null) {

0 comments on commit eb76a86

Please sign in to comment.