Link to home
Create AccountLog in
Avatar of dekeyzer
dekeyzerFlag for Belgium

asked on

How to deploy a webservice


I wrote a function in 2008 that must be accessed from all the computers in my domain.
So I wrote a webservice that presents the functions.
That works all very well in my source enviremont but how can i make my webservice public to the domain on a windows 2003 server ?
I put the code of my webservice in attachement.

Thanks for all the info i can get.
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel
' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
' <System.Web.Script.Services.ScriptService()> _
<System.Web.Services.WebService(Namespace:="")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
Public Class Service1
    Inherits System.Web.Services.WebService
    Dim Boekh As KlantToBoekh.KlantToBoekH
    <WebMethod()> Public Sub VoegKlantToe(ByVal iKlantnr As Integer)
    End Sub
    <WebMethod()> Public Function GeefDataDoor() As String
        Return Boekh.GeefDataDoor
    End Function
    Public Sub New(ByVal sConn As String)
        Boekh = New KlantToBoekh.KlantToBoekH(sConn)
    End Sub
End Class

Open in new window

Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of dekeyzer


The two links you give are about IIS (if i am right) but now use my service an ATL-server in VB.NET 2008.
Is ATL better ? and do you have links of ATL deployment. Or do I stay better with the IIS.
Avatar of nsanga

I think you can use "ATL server web service" project in VS 2008. And deploy the web service