473,322 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

deploying and using web services at runtime (Again)


I would be also interested in knowing if there a way to make a proxy for a
web service at runtime - the web service not existant when execution starts
-. Let me explain.

My executable starts running and while processing it does something that in
turn deploys a web service on a server running on the machine. At that
point, in the middle of execution - can I create a proxy for the newly
created web service and invoke it. Is there an easy way to do this ?

Nov 16 '05 #1
2 1201
Faraz,

You could use the SoapHttpClientProtocol class and make the calls
dynamically. You can't create a strongly typed proxy and then access it.

However, if the web service that is created and deployed always has the
same set of signatures, then there is no reason you can not create a proxy
that is included in your app, and then set the Uri to the endpoint and make
the appropriate call when done.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Faraz" <Fa***@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...

I would be also interested in knowing if there a way to make a proxy for a
web service at runtime - the web service not existant when execution
starts
-. Let me explain.

My executable starts running and while processing it does something that
in
turn deploys a web service on a server running on the machine. At that
point, in the middle of execution - can I create a proxy for the newly
created web service and invoke it. Is there an easy way to do this ?

Nov 16 '05 #2
what an odd thing to do!

The problem is that visual studio writes a good bit of code for you when you
make a web reference.

If the web service being deployed is the same on all systems, then this
isn't such a problem, because you can make the web reference in your dev
environment (and get the code) and then not call it on the target machine
until the web service exists.

If the web service is different in different situations, then this won't
work. You should take a look at the hidden code that VS makes for you when
you make a web reference. I haven't tried to write this code myself, but it
should be quite possible to do.

--- Nick

"Faraz" <Fa***@discussions.microsoft.com> wrote in message
news:CF**********************************@microsof t.com...

I would be also interested in knowing if there a way to make a proxy for a
web service at runtime - the web service not existant when execution starts -. Let me explain.

My executable starts running and while processing it does something that in turn deploys a web service on a server running on the machine. At that
point, in the middle of execution - can I create a proxy for the newly
created web service and invoke it. Is there an easy way to do this ?

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Shashank Date | last post by:
VB Gurus, I have developed a VB 6.0 application on WIN XP Pro which I am trying to deploy on another machine on the network which is running Win 2000 Pro. I am using the "Package & Deployment...
20
by: | last post by:
Back in the Old days, I compile a C++ executable, copy the dll's used by this executable to the same folder. Go to another computer, copy that folder locally, double click on the exe file and off...
2
by: Faraz | last post by:
Hi guys, Is there a way(from within C#) to deploy and reference a web service at runtime. I think I can do the deployment fine, but the question is - can I also reference it at runtime, since I...
3
by: Chris Dunaway | last post by:
A quick scan of the group did not immediately reveal an answer to my questions so here goes. First let me describe my app and then I'll ask the questions. I am writing a Windows Forms App (not...
10
by: Bryan Dickerson | last post by:
I fairly have my Web Service working the way that I want, so my next step will be to deploy it on a server. Do I just add a deployment/install project, build it and install it on the server? ...
1
by: Screenbert | last post by:
After finding nothing anywhere in google I am posting this so everyone can benefit by it. The formating is not pretty since I copied it from my word document, but you should benefit by it. ...
0
by: screenbert | last post by:
Managing DHCP Servers using C# They said it was impossible. It couldn't be done. But you can in fact manage DHCP servers using C#. This includes creating and deleting Scopes, SuperScopes,...
0
by: =?Utf-8?B?TWFuaQ==?= | last post by:
Hi All, Problem in deploying my WebService developed using Asp.net WebServices 2005. I have designed simple WebService using Asp.net Webservices 2.0 , The webservice look this , using System;...
3
by: kkao77 | last post by:
can you show me in more detail? I have same problem where on the page it's https://service.premilance.com/Company.svc, but the svcutil tells me to get it from https://pserver1/Company.svc?wsdl...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.