Thanks Mona,
I had tried your suggestion of
<WebMethod()> _
<return: XmlElement("WeblogEntry")> _
Public Function AddEntry(ByVal newEntry As NewWeblogEntry) As
ConfirmedWeblogEntry
End Function
but the '<' sign before "return" then gives the following intellisense error
"Attribute specifier is not a complete statement. Use a line continuation to
apply the attribute to the following statement."
I have also tried..
<WebMethod(),return: XmlElement("WeblogEntry")> _
Public Function AddEntry(ByVal newEntry As NewWeblogEntry) As
ConfirmedWeblogEntry
End Function
but then 'return' has an intelisense error of "Keyword is not valid as an
identifier"
I have googled like a madman, but cannot find any documentation on using
"return" as a method attribute...
though it obviously works... because the c# project is excellent
thanks heaps for your help.
Any other suggestions ? Anyone ?
"Mona" wrote:
Hi Adam,
This is the VB.NET version of that C# code
<WebMethod()> _
<return: XmlElement("WeblogEntry")> _
Public Function AddEntry(ByVal newEntry As NewWeblogEntry) As ConfirmedWeblogEntry
End Function
HTH
Mona
"Adam Stephensen" <Adam St********@discussions.microsoft.com> wrote in message news:C8**********************************@microsof t.com... http://msdn.microsoft.com/msdnmag/is...erviceStation/
In the downloadable code (not the article itself) for this great article
about WSE Security, Aaron Skonnard has the following C# method ...
[WebMethod]
[return:XmlElement("WeblogEntry")]
public ConfirmedWeblogEntry AddEntry( NewWeblogEntry newEntry )
{
}
I am trying to convert this demo to VB.Net and having no luck at all with
the attribute
[return:XmlElement("WeblogEntry")]
Any ideas anyone ?