Sounds like you have some circular reference(s) in your objects.
Although this works when it comes to domain objects, .Net Serializer
can't handle it.
Another issue might be actual null values trying to be pushed into
fields or properties that haven't been marked Nullable. Like this:
[System.Xml.Serialization.XmlElementAttribute("Stat es",
IsNullable=true)]
If you're using transforms, try a Choose (testing on your field) and an
xsi:nil tag instead. This worked for some embedded singletons I had to
deal with that weren't operating as expected. This is known behavior.
Like this:
<xsl:choose>
<xsl:when test="StateID">
<States>
<xsl:for-each select="StateID">
<StateID>
<xsl:value-of select="."/>
</StateID>
</xsl:for-each>
</States>
</xsl:when>
<xsl:otherwise>
<States xsi:nil="true"/>
</xsl:otherwise>
</xsl:choose>
Cheers,
-Chris
--
Jumpiebeen
------------------------------------------------------------------------
Jumpiebeen's Profile:
http://www.highdots.com/forums/m1606
View this thread:
http://www.highdots.com/forums/t3076835