Monday, December 31, 2012

generate WSDL

Where can I find WSDL.exe?

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin

At the command prompt:
WSDL http://ip address of the site/WebService/MathService.asmx /n:NameSp /out:FileName.cs


This will create a file called FileName.cs.

HTTP 405 during web service method call

  1. On IIS 7.5 -> YourWebsite -> Handler Mappings
  2. Choose "Add module mapping" option on the right side of the panel
  3. In "Request path" field enter *.wsdl
  4. In "Module" field enter "ProtocolSupportModule"
  5. Click on "Request restrictions" and go to Verbs tab
  6. Enter POST verb
  7. Save changes