Create web service based on a known XSD in C#



I often have to create a soap web service which needs to conform to certain documentation. In particular it is often some OTA flavour. (open travel alliance)


For example the service needs to receive OTA_HotelRateAmountNotifRQ and respond with a OTA_HotelRateAmountNotifRS. Generally the syntax of those messages can be downloaded as .xsd: http://ift.tt/XjtkUT


What I would like to do is simplify the process of creating such a service (right now I'm using XDocument and analyze/create the XML by hand).


So assuming I have access to particular XSD files, how can I automatically create corresponding code/classes, wrap them up in SOAP and use as a basis for a web service?


I hope the question makes some sense, any help would be appreciated.


Tiada ulasan:

Catat Ulasan