deploying and invoking web services at runtime

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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 cant change anything manually.

Any help will be appreciated.
Thanks
 
Faraz,

What do you mean reference at runtime? You can just create your proxy
and make the calls.

If you mean that you don't want to make a proxy, and just make the calls
in a generic manner, then you would use the SoapHttpClientProtocol class,
which you can use to make calls to any web service.

Hope this helps.
 
Nicholas,
Thanks. That makes things clearer. What I would be also interested in
knowing is - Is there a way to make a proxy at runtime. 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 - or do i
have to go the SoapHttpClientProtocol way.



Nicholas Paldino said:
Faraz,

What do you mean reference at runtime? You can just create your proxy
and make the calls.

If you mean that you don't want to make a proxy, and just make the calls
in a generic manner, then you would use the SoapHttpClientProtocol class,
which you can use to make calls to any web service.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Faraz said:
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 cant change anything manually.

Any help will be appreciated.
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top