473,395 Members | 1,368 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,395 software developers and data experts.

DYNAMICALLY CREATING WRAPPERS FOR A WSDL

Hi,
How can we dynamically create a wrapper for an webservice?

Example : I write an client application in C# that consumes a webservice, I
need that application to read the URL
of the WSDL file from an .INI file and then compile and create wrappers for
it. (So incase one webservice is down then i could point my application to
another URL)

Of course, the functions THAT ARE CONSUMED by the client application would
be of the same prototype in both the webservices, although there might be
some more or some less functions that are exposed in each of the webservices
that my client does not consume.

Thanks
Nov 16 '05 #1
1 3163
Got this too!!

Have to change the constructor in the Reference.cs file from xyz() to
xyz(string url) and then call the web service.
Also have to change the properties of the reference to the webservice from
static to dynamic

Thanks anyway!!

"Germic" <sy**********@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,
How can we dynamically create a wrapper for an webservice?

Example : I write an client application in C# that consumes a webservice, I need that application to read the URL
of the WSDL file from an .INI file and then compile and create wrappers for it. (So incase one webservice is down then i could point my application to
another URL)

Of course, the functions THAT ARE CONSUMED by the client application would
be of the same prototype in both the webservices, although there might be
some more or some less functions that are exposed in each of the webservices that my client does not consume.

Thanks

Nov 16 '05 #2

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

Similar topics

3
by: T-Man | last post by:
Hello, I have an application in C# that makes calls to a web service and the app currently contains a reference to a WSDL. Since the server technology is a commercial product, some customers...
1
by: Dan A | last post by:
Why can't .NET generate stubs to correspond to the exceptions that are thrown by a webservice? The exceptions that are thrown by an API are just as importantant as the return objects, etc. ...
2
by: pshvarts | last post by:
(I'm new in SOAP) I get some wsdl file (from apache service ). I tried creating SOAP client with .NET - trying to add Web Reference and get error like: "Custom tool error: Unable to import...
1
by: dave | last post by:
We're programming in C# .net 1.1. I've read that in order to create a web reference I can either (1) "Add A Web Reference" from the VS 2003 IDE or (2) I can run the Wsdl.exe tool to generate the...
1
by: Vishuonline | last post by:
Guys, I have had some experience in working with webservices created in .NET but this is the first time I am trying out one made in Java. When I run the wsdl exe to create a proxy class for...
5
by: Rakesh Rathod | last post by:
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...
2
by: BillB | last post by:
Hi, I've got a WSDL file that I need to use to create a Web Service from, I have managed to create the client side of the app using the generated .cs file that WSDL.exe creates. Does anyone know...
2
by: Bert Leu | last post by:
Hi I understand, that the "normal way" in creating Web Services is: Creating Web Service -- WSDL -- Creating Client Unfortunately, I have to create a Web Service (Service, not Clinet) from...
0
by: =?Utf-8?B?UlN1Yg==?= | last post by:
Hello, Hope I am asking this question in the right forum. We have been given a Wsdl file and the webservices link from a client. I am trying to invoke their web service first by creating a proxy...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.