Adventures of System-Link in C#

Post here any questions or knowledge sharing tips you may have around System Link.

Adventures of System-Link in C#

Postby fixitchris » Wed Jan 13, 2010 8:18 pm

I've been experimenting with raw XML System-Link and its potential uses.

Here is what I've done so far:
1. Converted the DTDs to XSDs using Stylus Studio (same could be done with traang)
2. Made some very minor changes to the XSDs, I think I found one error where !ELEMENT should have been !ATTLIST
3. Created C# class files from the XSDs
Code: Select all
xsd SystemLinkResponse.xsd /c /fields /language:CS /namespace:SystemLinkResponse
xsd SystemLinkRequest.xsd /c /fields /language:CS /namespace:SystemLinkRequest

4. Fixed CS0030 compiler error I was getting by changing Property[] type to Object[] on the Constraint element
5. Derived XmlTextWriter to write the DTD node at the top of the XML.
6. Created a routine to serialize SystemLink object to and from XML.
7. Successfuly used httpWebRequest/Response to send and receive and parse SystemLinkResponse.
7. Next steps: *probably get a copy of SL and deploy a profiled service *move away from raw XML and develop something solid around the operations exposed by EI *use WCF to envelop the XML in SOAP and expose only what I want for B2B

Parsing SystemLinkRequest object to XML:
http://code.midrange.com/1225bf56d3.html

Similar example dealing with raw XML in java:
http://code.google.com/p/get-on-the-bus/
Attachments
request_test.zip
1/13/10 b
(62.19 KiB) Downloaded 30 times
fixitchris
 
Posts: 11
Joined: Wed Jan 13, 2010 5:09 am

Return to System Link Questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron