Hi,
I need to invoke a web service dynamically at runtime without adding a web
reference. I need to do this through a C# application (.NET 2.0).
At runtime my application will get the url of the web service and the web
method to be invoked.
Can someone please let me know how this can be done.
Thanks in advance,
Rakesh 5 23746
Without a web reference to the proxy, you probably wont be able to compile
method calls into your code, so you'll need to revert to composing GET
requests using the information you have - URL and method call + parameters
it requres. Easy to do if the web service allows GET request.
An alternative would be to create dynamic SOAP requests, and you can read
about that here: http://www.eggheadcafe.com/articles/20011103.asp
Regards
John Timney (MVP)
"Rakesh Rathod" <Ra**********@discussions.microsoft.comwrote in message
news:EF**********************************@microsof t.com...
Hi,
I need to invoke a web service dynamically at runtime without adding a web
reference. I need to do this through a C# application (.NET 2.0).
At runtime my application will get the url of the web service and the web
method to be invoked.
Can someone please let me know how this can be done.
Thanks in advance,
Rakesh
Hi John,
Thanks for the quick response!!
I was actually looking at creating a SAOP packet dynamically and using
HttpWebRequest to make the SOAP request. But is there a way using which I can
get the format of the SOAP packet from the WSDL at runtime. The sample
provided at http://www.eggheadcafe.com/articles/20011103.asp assumes that the
format of the SOAP request is already know. But in my case, that wont be the
case. Is there a utility provided using which the SOAP packet can be formated
at runtime from the WSDL.
Thanks and Regards,
Rakesh
"John Timney (MVP)" wrote:
Without a web reference to the proxy, you probably wont be able to compile
method calls into your code, so you'll need to revert to composing GET
requests using the information you have - URL and method call + parameters
it requres. Easy to do if the web service allows GET request.
An alternative would be to create dynamic SOAP requests, and you can read
about that here: http://www.eggheadcafe.com/articles/20011103.asp
Regards
John Timney (MVP)
"Rakesh Rathod" <Ra**********@discussions.microsoft.comwrote in message
news:EF**********************************@microsof t.com...
Hi,
I need to invoke a web service dynamically at runtime without adding a web
reference. I need to do this through a C# application (.NET 2.0).
At runtime my application will get the url of the web service and the web
method to be invoked.
Can someone please let me know how this can be done.
Thanks in advance,
Rakesh
Look for an example if late binding or loosely coupled WSDL handling on the
web, theres bound to be some. I believe the MS SOAP toolkit allows late
binding of WSDLs and method calls. http://www.thecodeproject.com/cs/web...apUddiPack.asp
Regards
John Timney (MVP)
"Rakesh Rathod" <Ra**********@discussions.microsoft.comwrote in message
news:AB**********************************@microsof t.com...
Hi John,
Thanks for the quick response!!
I was actually looking at creating a SAOP packet dynamically and using
HttpWebRequest to make the SOAP request. But is there a way using which I
can
get the format of the SOAP packet from the WSDL at runtime. The sample
provided at http://www.eggheadcafe.com/articles/20011103.asp assumes that
the
format of the SOAP request is already know. But in my case, that wont be
the
case. Is there a utility provided using which the SOAP packet can be
formated
at runtime from the WSDL.
Thanks and Regards,
Rakesh
"John Timney (MVP)" wrote:
>Without a web reference to the proxy, you probably wont be able to compile method calls into your code, so you'll need to revert to composing GET requests using the information you have - URL and method call + parameters it requres. Easy to do if the web service allows GET request.
An alternative would be to create dynamic SOAP requests, and you can read about that here: http://www.eggheadcafe.com/articles/20011103.asp
Regards
John Timney (MVP)
"Rakesh Rathod" <Ra**********@discussions.microsoft.comwrote in message news:EF**********************************@microso ft.com...
Hi,
I need to invoke a web service dynamically at runtime without adding a
web
reference. I need to do this through a C# application (.NET 2.0).
At runtime my application will get the url of the web service and the
web
method to be invoked.
Can someone please let me know how this can be done.
Thanks in advance,
Rakesh
Hi John,
Thanks for pointing me to the right direction. Got it working using the MS
SOAP toolkit.
Thanks and Regards,
Rakesh
"John Timney (MVP)" wrote:
Look for an example if late binding or loosely coupled WSDL handling on the
web, theres bound to be some. I believe the MS SOAP toolkit allows late
binding of WSDLs and method calls.
http://www.thecodeproject.com/cs/web...apUddiPack.asp
Regards
John Timney (MVP)
"Rakesh Rathod" <Ra**********@discussions.microsoft.comwrote in message
news:AB**********************************@microsof t.com...
Hi John,
Thanks for the quick response!!
I was actually looking at creating a SAOP packet dynamically and using
HttpWebRequest to make the SOAP request. But is there a way using which I
can
get the format of the SOAP packet from the WSDL at runtime. The sample
provided at http://www.eggheadcafe.com/articles/20011103.asp assumes that
the
format of the SOAP request is already know. But in my case, that wont be
the
case. Is there a utility provided using which the SOAP packet can be
formated
at runtime from the WSDL.
Thanks and Regards,
Rakesh
"John Timney (MVP)" wrote:
Without a web reference to the proxy, you probably wont be able to
compile
method calls into your code, so you'll need to revert to composing GET
requests using the information you have - URL and method call +
parameters
it requres. Easy to do if the web service allows GET request.
An alternative would be to create dynamic SOAP requests, and you can read
about that here: http://www.eggheadcafe.com/articles/20011103.asp
Regards
John Timney (MVP)
"Rakesh Rathod" <Ra**********@discussions.microsoft.comwrote in message
news:EF**********************************@microsof t.com...
Hi,
I need to invoke a web service dynamically at runtime without adding a
web
reference. I need to do this through a C# application (.NET 2.0).
At runtime my application will get the url of the web service and the
web
method to be invoked.
Can someone please let me know how this can be done.
Thanks in advance,
Rakesh
Glad to have helped.
:o)
--
Regards
John Timney (MVP)
"Rakesh Rathod" <Ra**********@discussions.microsoft.comwrote in message
news:5F**********************************@microsof t.com...
Hi John,
Thanks for pointing me to the right direction. Got it working using the MS
SOAP toolkit.
Thanks and Regards,
Rakesh
"John Timney (MVP)" wrote:
>Look for an example if late binding or loosely coupled WSDL handling on the web, theres bound to be some. I believe the MS SOAP toolkit allows late binding of WSDLs and method calls.
http://www.thecodeproject.com/cs/web...apUddiPack.asp
Regards
John Timney (MVP)
"Rakesh Rathod" <Ra**********@discussions.microsoft.comwrote in message news:AB**********************************@microso ft.com...
Hi John,
Thanks for the quick response!!
I was actually looking at creating a SAOP packet dynamically and using
HttpWebRequest to make the SOAP request. But is there a way using which
I
can
get the format of the SOAP packet from the WSDL at runtime. The sample
provided at http://www.eggheadcafe.com/articles/20011103.asp assumes
that
the
format of the SOAP request is already know. But in my case, that wont
be
the
case. Is there a utility provided using which the SOAP packet can be
formated
at runtime from the WSDL.
Thanks and Regards,
Rakesh
"John Timney (MVP)" wrote:
Without a web reference to the proxy, you probably wont be able to compile method calls into your code, so you'll need to revert to composing GET requests using the information you have - URL and method call + parameters it requres. Easy to do if the web service allows GET request.
An alternative would be to create dynamic SOAP requests, and you can read about that here: http://www.eggheadcafe.com/articles/20011103.asp
Regards
John Timney (MVP)
"Rakesh Rathod" <Ra**********@discussions.microsoft.comwrote in message news:EF**********************************@microso ft.com...
Hi,
I need to invoke a web service dynamically at runtime without adding
a
web
reference. I need to do this through a C# application (.NET 2.0).
At runtime my application will get the url of the web service and
the
web
method to be invoked.
Can someone please let me know how this can be done.
Thanks in advance,
Rakesh
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Vai2000 |
last post by:
Hi All, I am trying 2 invoke a websvc dynamically. All I will have is the
WSDL. I want to avoid the design time programming (i.e adding web reference
etc). How will I achieve this goal?
TIA
...
|
by: Rodrigo Meneses |
last post by:
Hello.
Does somebody know how to invoke a web service using reflection in c#?
Thanks in advance
-Rodrigo Meneses Pinillos
|
by: Apple |
last post by:
hi
is there any way to invoke a .udl dialog in my program
i have to dynamically create a data connection string and i dont want to
create a new udl file.
Is there any objects which will meet...
|
by: Demetri |
last post by:
Is it possible to add a web service reference during runtime? If so, how?
--
-Demetri
|
by: Jeff |
last post by:
I am trying to dynamically load an assembly via reflection and then invoke a
method of that assembly that will populate a custom type collection passed
into the method byref. I am able to...
|
by: SAL |
last post by:
I’m fairly new to .NET. I’ve been developing in .NET for about 6 months. I
have over 10 years experience with VB in general.
Here’s what I have done so far:
1. Project is entirely .NET...
|
by: =?Utf-8?B?Z3Jhenph?= |
last post by:
Hello
If someone can help me with this it would be greatly appreciated. I’m no web
service expert but I don't think i'm trying to do anything too special. I
think i must be missing something...
|
by: beachdog |
last post by:
I have built a web service consumer application by adding a web
reference for a vendor-provided wsdl file. My client is
interoperating with the server just fine, in terms of sending a
request and...
|
by: |
last post by:
I have a multi threaded windows form application that runs great after
calling Application.Run(). Application.Run is required for a COM component
I a using in the app (required for message loop). ...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |