No HTTP Post/Get show in Web Services WSDL.

M

MN

Hello all -

Bear with me during this explanation as I have run myself ragged trying to
figure this one out. When I compile my web service that I'm distributing to
be accessed, the WSDL sometimes has the HTTP Post/Get Methods and sometimes
it does not, only showing the SOAP methods. Has anybody seen this strange
behavior before as I'm unsure what other options to refer to since I've never
seen this during my .NET Development that I've done.

Thanks,
MN
 
D

Dan Rogers

Hi MN,

The automatic documentation generation is typically controlled by entries
in the web config. The following settings effect what parts of the
documents are generated.

<system.web>
...
<webServices>
<protocols>
<remove name="HttpPost" />
<remove name="HttpGet" />
<remove name=“Documentation” />
</protocols>
</webServices>

The presence of a "remove" directive under protocols will cause a section
of a document to be omitted.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
 
M

MN

Hi Dan -

Thanks for responding. If I understand your explanation correctly, do I
just need to add the Get/Post add directives in my web.config before
compiling and deploying from my local to the target webserver. Do I need to
adjust anything in the machine.config on my local or webserver at all?

Thanks,
MN
 
D

Dan Rogers

Hi MN,

Typically you don't need to "turn them on" - as this is the default. I
suspect that there may be something different in the config files on your
dev and production servers. For instance, one can turn these on or off in
the web.config "nest", or in machine.config. By "nest" i mean that if a
vroot has sub-roots, your web.config behavior can be impacted by any config
from your root back to the top-level root - and then by machine.config.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top