I use the ROSDK for .NET only recently and I still know “as old Delphi developer” the Oxygene language and .Net not so good.
What is in RODSK for.NET the equivalent to Delphi’s “uROXMLSerializer.ObjectToXML (… aROObject)” ?
I would like to bind a “ROSDK ComplexType object” to an ASP.NET XML- or Object Datasource.
Or is this a wrong way and there are more better ways to do the DataBinding?
Your wiki has many “ToDo entries” so that I have currently a few start difficulties…
RemObjects DataAbstract for .NET contains AdvancedXmlSerializer class that allows to serialize and deserialize object you need. But can you describe the problem more detailed or send us small testcase with the problem to investigate the problem in details and provide more concrete solution.
I write all my webservices using RDSDK for Delphi and I’m very happy with that SDK.
For two larger projects I must now develop ASP.Net based web frontends.
I am new to .Net and prism since “XE2” and have a lack of knowledge.
I’ve just bought a license for the RO SDK for .Net and can now use the Webservices. Everything is fine, as excpected.
I’ve assumed that I get the same function level in “RO SDK for .Net” as in “RO SDK for Delphi” and can serialize the “SDK objects” native SDK matierials.
The XML representation of the objects on the client side (Prism) I need for the data binding to use XML Data Sources.
Object DataSources are no alternative, because it must be for each class write a “wrapper”.
This would mean that I must maintain the class definitions on the server side and client side. That would be crap.
You write that there is no XML serializer in RO SDK for .Net?
Pfff. How can I solve this?
Is the uROXMLSerializer.pas possibly compatible with Delphi Prism?
What for alternatives do I have ?
The XML serializer is an internal class, there to support the SOAP Message component. SOAP Message is supported on all three platforms, Delphi, .NET and Xcode, but the implementation details may differ.
Could you please describe what you need to achieve?
RemObjects SDK itself does all XML serialization/deserialization behind the scenes, so in most cases there is no need to directly access serializers.
If you need to serialize arbitrary .NET class to XML it is better to use the built-in .NET class XmlSerializer (http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlserializer.aspx) because RemObjects SDK serializers require object being serialized to be a subclass of RemObjects.SDK.Serializer for performance reasons.