WCF: Web Service code generation with WSCF.blue
Step 0, Introduction, XSD and WSCF.blue
This article will not cover about WSCF.blue and how to make a XSD for service contract. But for reference, provided a link to Data Contract Schema Reference for further reading and for WSCF.blue toolset. Anyway, following sample XSD file has been added to demonstrate sample service methods with simple and complex type data definitions.
https://public.bay.livefilestore.com/y1pfuSHtMuv89dMX7xMfuyXki9IVJ-ajX9rix0fYDNt8RrZIfUA9X1oyJpSos_F4Fa1Plsjgjj6z61Snl69ZcAqzQ/WSDL0.png?psid=1
Step 1, XSD to WSDL generation using WSCF.blue
https://public.bay.livefilestore.com/y1pKQgrXa7CSuzCpF4-WwCgNzkMP0t1ds19Whf0RrE3KDy_fsL11b04u2iOVbv6CQ0xQdIW7s6M4j5BtQ2o6YoJpA/WSDL1.png?psid=1
https://public.bay.livefilestore.com/y1pofIhiC5kyjcfWf2ePVB2ZeXSfXSguSGAqd73HYZTY8d2H9HWO8TAoQSGJ1BxiqWQ5GPZyh7qUlFKTac59VT8kg/WSDL2.png?psid=1
Step 3, Adding operations to Web Service
https://public.bay.livefilestore.com/y1pPMKIuvqHkpAMIj1iW8IaIybWqIuSmGtbGvCU5xAxRpVP5cCZT8jjEnIzEbUeCWBZbsWvWbXkcbqYV8i_nM35VA/WSDL4.png?psid=1
Step 4, Binding and service options
https://public.bay.livefilestore.com/y1pl_q3QoxG8tv2s-fXi4N7MKb5Ha-G-uJLbU_w4UPJLC0AEusawME3Cm5w48WJDqdv9RU7r6LDBoRfQS2aSu7jfw/WSDL6.png?psid=1
Step 5, Replace parameter name to avoid conflicts
https://public.bay.livefilestore.com/y1pPAG5r40BQPAiUIL2jGeIT_mSBiEq1g_gR5mehaVXWAJne9znafJ7fJmojaorxqXGVApvTQisSd1ov3viT40tVw/WSDL8.png?psid=1
Step 6, WSDL to Web Service class generation
https://public.bay.livefilestore.com/y1pJvsHPHJwc0O4vbpvrtcf6VbteXRBttwNJudZcu0QoSU29oOeb7X-uNuACDrKUwLtPsCvmdfs6pUvukEVOjpH-A/WSDL9.png?psid=1
Step 7, WSDL to Web Service class generation
[Client side options]
https://public.bay.livefilestore.com/y1pJ1ZORqbWzWNd9OXG6nLTs3aqNI89pI4DuUIov6t4RlAZ34cZEfMBQ7628kTdW7tkRiOxbMMsAgfb9B58E0B2IQ/WSDL11.png?psid=1
[Server side options]
https://public.bay.livefilestore.com/y1p1ktAj311YHMnXfI94xCjqlazfF7_x_jEFTSu_bxqy--E-NuRTG9h_l91loEWZAu-26H94ZmKWJv8VFS0fHP8fQ/WSDL10.png?psid=1
Finally, auto generated Web Service classes
https://public.bay.livefilestore.com/y1pJ1ZORqbWzWMAyRcjfDvC8BsGZ81Ek6sJEyE0FfQ5buAwu7_heGG6hkec8Tz2ugYLR9_WIXfImRarGZydx5KnUA/WSDL12.png?psid=1