You name it, it's fair game here: Android development, Windows, C#, Java, my pet, Video Games, Xbox, and Twitter. This is where I dump bits that may be helpful. Or not.

Monday, November 30, 2009

Have WSDL, need server

Today I had the need to create a proxy Web Service in place of one that was being developed. I had the WSDL file of the soon to be developed service, but wanted to stand up a service that would help me debug the client I was developing. Turns out it is as simple as running a command line command:

wsdl.exe /server

I'm running Visual Studio 2008 so the wsdl path was (which I had previously added to my path):

C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin

After running the tool, I had a ready-made .cs file with the correct interface, which I then easily used to stub out some mock data for my client code.

No comments:

Post a Comment