How to create a simple web service based on xsd files and sample responses..
-
Monday, August 13, 2012 1:18 PMI need to consume a web service from an external company, but I can't connect to it unless I am on their premises as it is classified data. So I want to simulate the process locally before I travel there in order to save development time while on-site. They have supplied their xsds and gave sample xml response messages. The question is, how can I use these xsds and sample responses to mimic their web service and host it locally, so I can test consuming it with a dev client?
All Replies
-
Monday, August 13, 2012 7:07 PMModerator
Can't they send you the WSDL?
If they can't send it, then you'll need to make a guess about the WSDL and create one by hand. You can then use svcutil.exe to generate code for the service, based on the WSDL. Although it will be generating client code, it will create one interface for each service contract. You can create a class that implements that interface in order to have it emulate the service.
John Saunders
WCF is Web Services. They are not two separate things.
Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
Use File->New Project to create Web Service Projects- Marked As Answer by Pork_Chop_Express Wednesday, August 15, 2012 1:34 PM

