Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
|
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 17th, 2008, 09:52 AM
Registered User
 
Join Date: Jun 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default deploying exe with reference to WS

I have an install program. It installs the exe written in C#, with an app.config which points to a web service.

I have no idea where the web service will be once deployed. How do I manage this?

djc

 
Old March 17th, 2008, 08:04 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Good question. You need to have some controlled endpoint otherwise you would have to communicate something to everyone who has installed this application. Could you put some kind of lookup into the application? Perhaps put an XML file on a web server somewhere, and your app looks at that for the address of the web service? One way or another you need to put something somewhere that you can establish and control the information.

Playing a technical devil's advocate: How can you deploy a client app that uses a web service that is not yet deployed?

-Peter
peterlanoie.blog
 
Old March 18th, 2008, 07:50 AM
Registered User
 
Join Date: Jun 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Devil's advocate?

We put all data access into web services. They tend to be application specific. So we deploy the web service on the company network server. Then we deploy the app on the client workstations.

It's hard for me to believe that this problem doesn't come up all the time. But I haven't found an answer for it. Your tentative solution kind of begs the questions. If the app can find an XML file on a web server, it can find the web service.

But thanks.

 
Old March 18th, 2008, 12:19 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Quote:
quote:Originally posted by djcowbell
 So we deploy the web service on the company network server.

So then how do you not know what the web service address is if it's deployed?

-Peter
peterlanoie.blog





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to INVOKE any WS on server by WS on client ? Abhinavnaresh ASP.NET 2.0 Professional 1 April 4th, 2008 01:09 PM
Object reference not set - WebReference WS agfjesus .NET Web Services 2 August 1st, 2007 06:23 AM
Membership: aspnet_sql.exe -> aspnet_regsql.exe ricpue BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 August 9th, 2006 11:40 PM
problem creating .exe from MFC AppWizard(exe) c++ method Visual C++ 0 July 7th, 2006 03:28 AM
PHP5 and php.exe php-cgi.exe php-win.exe freddo Beginning PHP 1 August 16th, 2004 09:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.