Prev: Get default event handler of a control.
Next: Programmatically load all the languages & their details
From: redbull on 28 Jun 2010 05:15 Hi to all, is there a way to declare a webservice address inside the code? If I add a webservice, the address is visible in the app.config but I wanna avoid it. Any suggestion? thanks
From: Barry Flynn on 29 Jun 2010 17:37 Not sure if I am addressing your problem or not... A few years ago (and probably a few versions of VS ago) I wote a dll which talked to a web service. The URL of the web service on my machine was different from that of the end user. After doing a Dim lws As New localhost.TheWebService I could do a lws.URL = 'whatever' Is that relevant to your question? If not, I appologize for wasting your time ! Barry -------------------- "redbull" <redbull(a)libero.it> wrote in message news:4c286847$0$18997$4fafbaef(a)reader5.news.tin.it... > Hi to all, > is there a way to declare a webservice address inside the code? > If I add a webservice, the address is visible in the app.config but I > wanna avoid it. > Any suggestion? thanks > >
From: redbull on 30 Jun 2010 04:35
"Barry Flynn" <Anonymouse> ha scritto nel messaggio > Dim lws As New localhost.TheWebService > > I could do a > lws.URL = 'whatever' > > Is that relevant to your question? Thanks, following your suggestion I solved with: webservice.Endpoint.Address = New System.ServiceModel.EndpointAddress("http://www.miosito.eu/service.asmx") ;) |