A
alberto.decaro
Hello everybody,
I'm developing a XML web service in VB, and I'd like to overload the
constructor to customize the service:
[...]
Private _tblParameters As datatable
'the default constructor
Public Sub New()
MyBase.New()
InitializeComponent()
End Sub
'the overloaded constructor
Public Sub New(parTable as datatable)
Me.New()
_tblParameters = parTable
End Sub
[...]
The project compiles correctly and I can add the web reference in the
test application. But when I create an object from the service class,
the overloaded constructor is not accepted.
Any clue? Thanks a lot.
I'm developing a XML web service in VB, and I'd like to overload the
constructor to customize the service:
[...]
Private _tblParameters As datatable
'the default constructor
Public Sub New()
MyBase.New()
InitializeComponent()
End Sub
'the overloaded constructor
Public Sub New(parTable as datatable)
Me.New()
_tblParameters = parTable
End Sub
[...]
The project compiles correctly and I can add the web reference in the
test application. But when I create an object from the service class,
the overloaded constructor is not accepted.
Any clue? Thanks a lot.