SharePoint Web Service DISCO and WSDL Generator

Friday, April 20, 2007

I've been doing some work recently with custom SharePoint web services, which is working out very nicely for the most part. However, because SharePoint virtualizes its URLs you cannot have ASP.NET auto-generate the disco and wsdl files, and the steps to manually create them are tedious at best. I had a quick look around to see if there were any tools to automate this and found the WSS Web Service DISCO and WSDL Generator Helper on Code Project.

Since it originally targeted .NET 1.1 and SharePoint 2003, I've update it to .NET 2.0 and added a little more error checking for good measure. Internally, disco.exe is used to generate the disco and wsdl files, so the .NET 2.0 version will need to be in the same directory as the executable. You'll find a copy in 'C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin' or somewhere similar on your development machine.

This is a quick fix to my immediate problem, longer term I may (or may not) create a version to use in Visual Studio builds. I'm not sure what the rules are around the stuff on Code Project, but for now you can download my updates from the links at the bottom of this post. I'll drop the original poster a message and merge my changes if necessary.

WebServicePackager.zip
WebServicePackagerSource.zip

9 Comments | SharePoint | Web Services

Comments

Ralph Krausse said... Thanks for the update but there still is an issue. When you run the asmx page and then click on 'Service Description' at the top of the page (basically the wsdl page), there is an error (at least for me). Does this occur for you?

thanks
Ralph

Tuesday, June 26, 2007

Paul Horsfall said... Ralph, it has been working fine for me.

Which folder are the asmx and the generated aspx files in when you get the error, are you accessing them from Local_Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\ISAPI via http://MyServer/_vti_bin/MyCustomWebService.asmx?

Tuesday, June 26, 2007

Christophe Fiessinger's Blog said... After writing a PSI extension recently, Mike Shughrue and I learned the following lessons: ¾ Follow the

Thursday, August 02, 2007

Tina said... Hi,

I tried to use this tool but it says that you donot have writes to access the url.

My problem is that i did excatly evertything the post required but the issue is i do not have a wsdl at all. The servicedisco.aspx and servicewsdl.aspx file exist but the service description link or the ?wsdl is not bringing up any thing.

Thursday, January 10, 2008

Paul said... @Tina

I'm a bit mixed up. If the tool didn't work where did servicedisco.aspx and servicewsdl.aspx come from? Your web service should be in the _layouts folder from where the description and wsdl pages should work. Once you get to that stage the tool should be ok.

Thursday, January 10, 2008

Casey Hanks said... Thanks,

Saved me a lot of time!

Casey

Wednesday, April 16, 2008

Frank-Ove Kristiansen said... Thanks for the tool.
Worked like a charm. :-)

Friday, June 13, 2008

Dave dolan said... nice! Very cool tool!

Tuesday, June 17, 2008

Developer Dave said... Thanks!
This is very useful and works like a charm!
Completely reduces the possibility of human error!!!

Monday, July 21, 2008

Post a Comment

Title
 
Name (Required)
 
Email (Optional, and never displayed)
Website (Optional)
Comments
 
Please add 5 and 8 and type the answer here: