[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

chrisj

1/15/2003 2:34:00 AM

We are trying to set up an app that uses web services.

The web services will be on our local server for
development, but once deployed the web service will be
moved to the client's intranet.

How do we make the web service reference and proxy client
re-point to the client's version of the web servic w/o re-
compiling at the client's site?

This switch in reference needs to be configurale.

Any ideas?

TIA,
Chris.


3 Answers

Richard L Rosenheim

1/15/2003 4:32:00 AM

0

Chris,

I haven't actually done it yet, but here's how one of the Microsoft's
developers at COMDEX explained it to me:

You need to go to the property page for the Web Reference and change
the Web Reference URL string.
To get the property page for the Web Reference, right mouse click on
the web reference in Solution
Explorer and select Properties.

According to him, to change the URL dynamically, you need to wait for UDDI
2.0 to come out.

On the other hand, the WebService object I created (in a VB.Net app) does
contain the property "URL" which you may be able to update dynamically.
There is also this MSDN article which might be of help to you:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/v...
vbconlocatingwebservices.asp

Sorry I can't be of more help. I haven't deployed the web services I wrote
to a 2nd machine yet. Therefore, I haven't had to seriously address this
issue yet.

Please let us know how it turns out.

Richard Rosenheim

"Chris Jefferies" <chris@freeranger.com> wrote in message
news:647001c2bc36$3108a060$8df82ecf@TK2MSFTNGXA02...
> We are trying to set up an app that uses web services.
>
> The web services will be on our local server for
> development, but once deployed the web service will be
> moved to the client's intranet.
>
> How do we make the web service reference and proxy client
> re-point to the client's version of the web servic w/o re-
> compiling at the client's site?
>
> This switch in reference needs to be configurale.
>
> Any ideas?
>
> TIA,
> Chris.
>
>


(Maarten van de Bospoort)

1/16/2003 1:47:00 AM

0

You can select properties on 'localhost' under Web References in the
Solution Explorer tree. Then in the properties pages change URL behavior to
dynamic. This will add an entry in config file.

After deployment you only need to change the config file.

Maarten

omar awwad

1/16/2003 12:51:00 PM

0

but if you use wsdl.exe to generate the proxy class you
can use the property url of the instance of the proxy class
to make web service reference dynamic
>-----Original Message-----
>You can select properties on 'localhost' under Web
References in the
>Solution Explorer tree. Then in the properties pages
change URL behavior to
>dynamic. This will add an entry in config file.
>
>After deployment you only need to change the config file.
>
>Maarten
>
>.
>