I don't know if this is doable but sure very helpful. Is there a way to
make the XML comments or the Description attribute on the [WebMethod] on
the WS to show up in the proxy class generated by VS.NET. E.g.
/// <summary>My test web service.</summary>
/// <param name="someValue">blah blah</param>
/// <returns></returns>
[WebMethod(Description="My test web service to say hello")]
public string Hello(string someValue) {
......................
}
Here's the sync proxy method generated:
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAt tribute("http://abcd.com/
Hello", RequestNamespace="http://abcd.com",
ResponseNamespace="http://abcd.com",
Use=System.Web.Services.Description.SoapBindingUse .Literal,
ParameterStyle=System.Web.Services.Protocols.SoapP arameterStyle.Wrapped)]
public string Hello() {
object[] results = this.Invoke("Hello", new object[0]);
return ((string)(results[0]));
}
I can manually add to the <remarks> tag, but if you update the web reference
in VS.NET, it deletes whatever you edited. It's the proxy side that the
client really needs to know how to call so the comments/description is
necessary. Can it be done? 2 1632
i like the idea ... but it cannot be done.
casey
" Bob" <bo*******@yahoo.com> wrote in message
news:OG**************@TK2MSFTNGP09.phx.gbl... I don't know if this is doable but sure very helpful. Is there a way to make the XML comments or the Description attribute on the [WebMethod] on the WS to show up in the proxy class generated by VS.NET. E.g.
/// <summary>My test web service.</summary> /// <param name="someValue">blah blah</param> /// <returns></returns> [WebMethod(Description="My test web service to say hello")] public string Hello(string someValue) { ...................... }
Here's the sync proxy method generated:
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAt tribute("http://abcd.com/ Hello", RequestNamespace="http://abcd.com", ResponseNamespace="http://abcd.com", Use=System.Web.Services.Description.SoapBindingUse .Literal, ParameterStyle=System.Web.Services.Protocols.SoapP arameterStyle.Wrapped)] public string Hello() { object[] results = this.Invoke("Hello", new object[0]); return ((string)(results[0])); }
I can manually add to the <remarks> tag, but if you update the web
reference in VS.NET, it deletes whatever you edited. It's the proxy side that the client really needs to know how to call so the comments/description is necessary. Can it be done?
How about copy and paste?
"casey chesnut" <casey@MORE_spam_PLEASEbrains-N-brawn.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... i like the idea ... but it cannot be done. casey
" Bob" <bo*******@yahoo.com> wrote in message news:OG**************@TK2MSFTNGP09.phx.gbl... I don't know if this is doable but sure very helpful. Is there a way to make the XML comments or the Description attribute on the [WebMethod]
on the WS to show up in the proxy class generated by VS.NET. E.g.
/// <summary>My test web service.</summary> /// <param name="someValue">blah blah</param> /// <returns></returns> [WebMethod(Description="My test web service to say hello")] public string Hello(string someValue) { ...................... }
Here's the sync proxy method generated:
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAt tribute("http://abcd.com/ Hello", RequestNamespace="http://abcd.com", ResponseNamespace="http://abcd.com", Use=System.Web.Services.Description.SoapBindingUse .Literal,
ParameterStyle=System.Web.Services.Protocols.SoapP arameterStyle.Wrapped)] public string Hello() { object[] results = this.Invoke("Hello", new object[0]); return ((string)(results[0])); }
I can manually add to the <remarks> tag, but if you update the web reference in VS.NET, it deletes whatever you edited. It's the proxy side that the client really needs to know how to call so the comments/description is necessary. Can it be done?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Raymond Hettinger |
last post by:
Here is a discussion draft of a potential PEP.
The ideas grew out of the discussion on pep-284.
Comments are invited. Dart throwing is optional.
Raymond Hettinger
...
|
by: Raymond Hettinger |
last post by:
Please comment on the new PEP for reverse iteration methods.
Basically, the idea looks like this:
for i in xrange(10).iter_backwards(): # 9,8,7,6,5,4,3,2,1,0
<do something with i>
The...
|
by: Maarten van Reeuwijk |
last post by:
Hello,
Maybe I was a little too detailed in my previous post . I can
boil down my problem to this: say I have a class A that I encapsulate with
a class Proxy. Now I just want to override and add...
|
by: Noam Raphael |
last post by:
Hello,
I thought about a new Python feature. Please tell me what you think
about it.
Say you want to write a base class with some unimplemented methods, that
subclasses must implement (or...
|
by: manohar.shankar |
last post by:
Hi,
I have been searching on this topic for quite sometime and didnt get
any answer.
Is there a way I can extend/add methods/properties to a C# class during
runtime.
eg.,
I have class:...
|
by: Bob |
last post by:
The xml comments I have on my public methods (using summary tag) only shows
up in the project where the class itself is in. Once I compile the project
(a class libraray project), and refrence the...
|
by: Alexander Kaplunov |
last post by:
I have a web service, which has a reference to a class. I want to be able to
accept this class as a parameter to my web service method. When the consumer
consumes the web service, proxy class is...
|
by: alexttp |
last post by:
Introduction:
Assume having a MyApp.MyClass class bearing both data (say, DataSets)
and functionality (proprietary methods).
A WebService exposes this class via some GetMyClass WebMethod.
A...
|
by: VishalSimon |
last post by:
Remoting Error
can not access property or method of proxy object on internet, works fine for LAN
Hello, here is my some remoting code
Code Snippet Remoted Class:
namespace Server
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |