From: redbull on
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
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


"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")

;)