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

Dynamically Connect to Web Service?

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 have
their own servers, etc.

I was wondering if it is possible to dynamically point the application to
any appropriate WSDL which would allow the C# code to continue to make the
simple method calls, etc.?

Regards,

Todd
Nov 23 '05 #1
3 10506
change the URL behaviour on the web reference properties from within
Visual Studio's Solution Explorer for the proxy class.

http://msdn.microsoft.com/library/de...rviceProxy.asp
http://msdn.microsoft.com/library/de...References.asp
--
HTH

Ollie Riches
http://www.phoneanalyser.net
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a programmer
helping programmers.


"T-Man" <ge**********@yahoo.com> wrote in message
news:uj****************@TK2MSFTNGP09.phx.gbl...
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 have
their own servers, etc.

I was wondering if it is possible to dynamically point the application to
any appropriate WSDL which would allow the C# code to continue to make the
simple method calls, etc.?

Regards,

Todd

Nov 23 '05 #2
Hey Ollie,

I think that I need to rephrase the question.

Let's suppose that I have a dialog where a user can specify a URL.

How can I programmatically update or work with a webservice under such
circumstances?

For example, can I do something like the following:

webservice MyService=new webservice(URL);
Type MyResults=MyService.GetType(webservice_results[]);
webservice_results[] MyResults=MyService.CallMethod(param1,param2);

Can it be done that easily, that dynamically?

Regards,

Todd


"Ollie Riches" <ol**********@phoneanalyser.net> wrote in message
news:uV*************@TK2MSFTNGP10.phx.gbl...
change the URL behaviour on the web reference properties from within
Visual Studio's Solution Explorer for the proxy class.

http://msdn.microsoft.com/library/de...rviceProxy.asp
http://msdn.microsoft.com/library/de...References.asp
--
HTH

Ollie Riches
http://www.phoneanalyser.net
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a programmer
helping programmers.


"T-Man" <ge**********@yahoo.com> wrote in message
news:uj****************@TK2MSFTNGP09.phx.gbl...
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 have
their own servers, etc.

I was wondering if it is possible to dynamically point the application to
any appropriate WSDL which would allow the C# code to continue to make
the simple method calls, etc.?

Regards,

Todd


Nov 23 '05 #3
Have a look at:

http://www.thinktecture.com/Resource...b/default.html

Johan

"T-Man" <ge**********@yahoo.com> schreef in bericht
news:e0*************@TK2MSFTNGP15.phx.gbl...
Hey Ollie,

I think that I need to rephrase the question.

Let's suppose that I have a dialog where a user can specify a URL.

How can I programmatically update or work with a webservice under such
circumstances?

For example, can I do something like the following:

webservice MyService=new webservice(URL);
Type MyResults=MyService.GetType(webservice_results[]);
webservice_results[] MyResults=MyService.CallMethod(param1,param2);

Can it be done that easily, that dynamically?

Regards,

Todd


"Ollie Riches" <ol**********@phoneanalyser.net> wrote in message
news:uV*************@TK2MSFTNGP10.phx.gbl...
change the URL behaviour on the web reference properties from within
Visual Studio's Solution Explorer for the proxy class.

http://msdn.microsoft.com/library/de...rviceProxy.asp
http://msdn.microsoft.com/library/de...References.asp
--
HTH

Ollie Riches
http://www.phoneanalyser.net
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer
helping programmers.


"T-Man" <ge**********@yahoo.com> wrote in message
news:uj****************@TK2MSFTNGP09.phx.gbl...
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 have
their own servers, etc.

I was wondering if it is possible to dynamically point the application
to any appropriate WSDL which would allow the C# code to continue to
make the simple method calls, etc.?

Regards,

Todd



Nov 23 '05 #4

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

Similar topics

0
by: Brad Clements | last post by:
I'm trying to get a simple service to work with py2exe and python 2.3 I get this error when I start it (after registering it) The description for Event ID ( 240 ) in Source ( UMXWIN32SVC )...
0
by: Jim | last post by:
I'm working on my first .net project using c#. I've been using activex controls embedded in a web page and wanted to do the same in ..net. My approach has been to create a windows control library...
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: Ed S | last post by:
Hi All, We're upgrading our web project - currently we have a web app and a web service - both written in C#. The web app communicates with the web service for login authentication, the list of...
1
by: Mike Stephens | last post by:
I would like to write a service app, a simple application that runs in the background and does its thing, and not necessarily running on the local machine. This service app will not have any GUI...
10
by: blurryimage | last post by:
Ok guys I have racked my brain on this one. I have a vb .net service installed on a win2k server. I am trying to get it to connect to sql 2000 box but I get this error: An error has occurred...
4
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...
1
by: mandar.deshpande11 | last post by:
Hi Guies, I want to develop windows application in VB.NET and need help regarding web services. I will get list of web service URL's from my app.config file and i need to check whether the...
3
by: arasub | last post by:
ep 20, 2007 11:25:57 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found...
1
by: Manjunath.M | last post by:
Hi, I have created a simple Web service with only one function, which takes only one parameter. Below is the function from Web service public string HelloWorld(string input) { return "Hello...
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...
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: 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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
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...

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.