By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,152 Members | 2,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,152 IT Pros & Developers. It's quick & easy.

deploying and invoking web services at runtime

P: n/a
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
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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]
- mv*@spam.guard.caspershouse.com

"Faraz" <Fa***@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
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

Nov 16 '05 #2

P: n/a
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 [.NET/C# MVP]" wrote:
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]
- mv*@spam.guard.caspershouse.com

"Faraz" <Fa***@discussions.microsoft.com> wrote in message
news:EF**********************************@microsof t.com...
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


Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.