Re: Include Verbose Description?



"lucius" <lucius@xxxxxxxxxxxxxxxx> wrote in message news:6krs83p5a6ni78ejj21hio09tu8epk53ja@xxxxxxxxxx

I have several WebMethods in my 2.0 system decorated like this:

[WebMethodAttribute(Description=".....

I have XML comments that describe the actual parameters.

I would like to copy those comments (or use them directly) so they are
visible like in the WebMethodAttribute. What is a good way to do that?

I don't believe there's a way to do that. The Description property of the WebMethodAttribute gets copied into the WSDL file when the WSDL is generated from the code. Since the WSDL is generated through Reflection, and since Reflection has no access to code comments, I think you're out of luck.
--
John Saunders [MVP]

P.S. There are things you can do to customize how the WSDL is generated. They're complex, and I've never used them, nor known anyone who has.

.



Relevant Pages

  • Re: Remote Procedure Calls
    ... No, you can't use Reflection, because you don't have a type to reflect ... of generating .NET type equivalents for the WSDL definition of the methods ... XML message that is returned to you, then you might want to use WCF, as it ... code-generation and compilation route. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Sending existing XML document to a document-literal web servic
    ... So the WSDL defines a type ... I don't want to parse the existing document and load the productOrderType ... My understanding is that you can use XmlSerializer to read the XML document ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: Webmethod Accepting XmlDocument as argument, with WSDL reflecting
    ... output XML that is schema compliant. ... Webmethod Accepting XmlDocument as argument, with WSDL ... there's nothing that says your web service needs to actually ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: Webmethod Accepting XmlDocument as argument, with WSDL reflect
    ... "Dan Rogers" wrote: ... > output XML that is schema compliant. ... This is why in the WSDL you see ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: SOAP Question
    ... the WSDL, it's hard to say. ... their web service works with the WSDL tool, and show them what you have ... >> You will want to look at the XML going over the wire, ... >>> suspect any issues would have to be in the LogonService code, ...
    (microsoft.public.dotnet.languages.csharp)

Loading