Hi,
i'm using LLBLGen 2.5 Adapter Scenario(.NET 2.0) on SqlServer 2000. For communication via WebServices i use WriteXml and ReadXml in Compact25 mode. When I change some entities(A) properties on the client side, generate xml, send it to the webservice(Wrapped in XmlDocument) and read that xml back to write the entity to the database, everything works fine. When I try to add a new Entity to collection representing a 1:n relation I get the following Exception:
System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Die Anforderung konnte vom Server nicht verarbeitet werden. ---> System.ArgumentException: name cannot be of zero length.
bei SD.LLBLGen.Pro.ORMSupportClasses.EntityFields2.get_Item(String name)
bei SD.LLBLGen.Pro.ORMSupportClasses.EntityBase2.Xml2Entity(XmlReader reader, Dictionary`2 processedObjectIDs, List`1 nodeEntityReferences)
bei SD.LLBLGen.Pro.ORMSupportClasses.EntityCollectionBase2`1.Xml2EntityCollection(XmlReader reader, Dictionary`2 processedObjectIDs, List`1 nodeEntityReferences)
bei SD.LLBLGen.Pro.ORMSupportClasses.EntityCollectionBase2`1.SD.LLBLGen.Pro.ORMSupportClasses.IEntityCollectionAccess2.Xml2EntityCollection(XmlReader reader, Dictionary`2 processedObjectIDs, List`1 nodeEntityReferences)
bei SD.LLBLGen.Pro.ORMSupportClasses.EntityBase2.Xml2Entity(XmlReader reader, Dictionary`2 processedObjectIDs, List`1 nodeEntityReferences)
bei SD.LLBLGen.Pro.ORMSupportClasses.EntityBase2.ReadXml(XmlReader reader, XmlFormatAspect format)
bei SD.LLBLGen.Pro.ORMSupportClasses.EntityBase2.ReadXml(String xmlData)
bei SD.LLBLGen.Pro.ORMSupportClasses.EntityBase2.ReadXml(XmlNode node)
So in short: Changing properties of Entity A works. Adding items to A's 1:n collections doesn't work. Any clue?
Edit: Here is the _lps element of the to be added entity, maybe it helps.
<_lps fs="VAA=" es="0">
<dbv />
</_lps>
Regards,
André