Link to home
Start Free TrialLog in
Avatar of waggert
waggertFlag for United States of America

asked on

sending an exe over a webservice

I currently have a .Net dll that calls a web service and is passed back a string.   Both are working fine.  I would like to change the web service to pass back an exe file instead..  

How do I pass back an exe from a web service?

Thanks,

Paul
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

What is the big picture here?  Why would you want to use a web service for this?

Bob
Avatar of waggert

ASKER

There are remote machines around the country that have specific versions of sql db's.  There's a local process that when kicked off it checks to see if there's a later version of the db available.  If so, they hit a web service providing their current version as an int parameter.  The web service then constructs a custom .net executable that will update the client's db according to whatever version they are currently on.

So, there are almost an endless number of possible version to version update exe's because the local process is kicked off by the user and thus random.. Ex. 1 to 2, 1 to 3, 2 to 40, whatever.. so those exe's need to be created on demand, programmatically, based on the client's needs.

Currently, the web service is set up to return a custom sql string to update the client's db.  However, I just realized that I could have a .net exe do the same thing which would be much cleaner and eliminate a lot of code.  The problem now is just figuring out how to return an exe to the client via web service..

Thanks,

Paul
ASKER CERTIFIED SOLUTION
Avatar of Timbo87
Timbo87

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of waggert

ASKER

k, thanks Timbo, I will try that.

Paul
Avatar of waggert

ASKER

Thanks Timbo, works like a dream.. I had no idea it would be that easy.. .Net is awesome..

Thanks TLO, for your help as well.. Although the Smart Client updates won't work for this specific project I will most likely use them for others.. One more reason .Net is great.. :-)

Thanks!

Paul