Browse Source

fixed VB WebService file template

pull/14/head
Siegfried Pammer 15 years ago
parent
commit
e903196493
  1. 44
      data/templates/file/VBNet/VBNet.Web.WebService.xft

44
data/templates/file/VBNet/VBNet.Web.WebService.xft

@ -22,34 +22,26 @@ @@ -22,34 +22,26 @@
-->
<Files>
<File name="${Path}/${FileNameWithoutExtension}.vb" DependentUpon="${FileName}" language="VBNET"><![CDATA[${StandardHeader.VBNET}
using System;
using System.Web.Services;
Imports System
Imports System.Web.Services
namespace ${StandardNamespace}
{
/// <summary>
/// Description of ${ClassName}
/// </summary>
[WebService
( Name = "${ClassName}",
Description = "${ClassName}",
Namespace = "http://www.${ClassName}.example"
)
]
public class ${ClassName} : WebService
{
public ${ClassName}()
{
}
''' <summary>
''' Description of ${ClassName}
''' </summary>
<WebService(Name := "${ClassName}", Description := "${ClassName}", Namespace := "http://www.${ClassName}.example")>
Public Class ${ClassName}
Inherits WebService
Public Sub New()
[WebMethod]
public string Status()
{
string s = string.Format("Time: {0}", DateTime.Now);
return s;
}
}
}
End Sub
<WebMethod> _
Public Function Status() As String
Dim s As String = String.Format("Time: {0}", DateTime.Now)
Return s
End Function
End Class
]]></File>
<File name="${FullName}"><![CDATA[
<%@ WebService Class="${StandardNamespace}.${ClassName}" Language="VB" %>

Loading…
Cancel
Save