Re: Include Verbose Description?
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Mon, 09 Jul 2007 07:54:14 GMT
Hi Lucius,
For the webservice webmethod "description" attribute, if you mean manually
copy some comments(xml or plain text) into it, I think it is doable. You
can directly add xml content into it and they'll be displayed in the
webservice's WSDL document(in the "portType" section). e.g.
the following description setting (contains some XML datdad) will result to
the sequential WSDL portType fragment
===============
[WebMethod(Description=@"
<comment><param1>param1</param1><param2>param2</param2></comment>
")]
public string HelloWorld()
{
return "Hello World";
}
===================
#note that the "description" property content is not displayed as part of
the WSDL document( but is escapted as CDATA like content)
==============
</wsdl:message>
- <wsdl ortType name="SecurityServiceSoap">
- <wsdl peration name="HelloWorld">
<wsdl ocumentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"><comment><param1>param1</param
1><param2>param2</param2></comment></wsdl ocumentation>
<wsdl:input message="tns:HelloWorldSoapIn" />
<wsdl utput message="tns:HelloWorldSoapOut" />
</wsdl peration>
</wsdl ortType>
=======================
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Re: Include Verbose Description?
- From: lucius
- Re: Include Verbose Description?
- References:
- Include Verbose Description?
- From: lucius
- Re: Include Verbose Description?
- From: John Saunders [MVP]
- Include Verbose Description?
- Prev by Date: problem sending significant whitespace in DataSets across webservice (dotnet 2.0)
- Next by Date: Re: Include Verbose Description?
- Previous by thread: Re: Include Verbose Description?
- Next by thread: Re: Include Verbose Description?
- Index(es):
Relevant Pages
|
Loading