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

Change Web Reference Programmatically Using C#

1: I developed a Windows Client for a distributed application. So when this Distributed Application will be deployed to an other network, the IP address of the computer on which the Web Services will be installed is unknown at this point so I want to add the functionality of IP address Configuration after installing the Web Service. So that Web Services can be configured at any time after installion on any computer having any IP Address...

2: Same problem with Windows client....IP Address configuration at run time....

Please give code samples if possible....
Waiting for the reply....
Thanx.
Aug 30 '07 #1
15 5277
I have developed a distributed application and want to configure the web referenece at client side programatically with out using the Web Reference option in C#..because when this application will be deployed the Web Server ip address will be changed....
Sep 9 '07 #2
I have developed a distributed application and want to configure the web referenece at client side programatically with out using the Web Reference option in C#..because when this application will be deployed the Web Server ip address will be changed....

Is there any body to help in this matter please?????
Sep 10 '07 #3
1: I developed a Windows Client for a distributed application. So when this Distributed Application will be deployed to an other network, the IP address of the computer on which the Web Services will be installed is unknown at this point so I want to add the functionality of IP address Configuration after installing the Web Service. So that Web Services can be configured at any time after installion on any computer having any IP Address...

2: Same problem with Windows client....IP Address configuration at run time....

Please give code samples if possible....
Waiting for the reply....
Thanx.

Is there any one who can help in this matter please?????
Sep 10 '07 #4
Frinavale
9,735 Expert Mod 8TB
Hi Nadeem Asghar,

Please refrain from posting your question more than once as it is against the forum rules that we follow. Please review the Posting Guidelines for the forum rules, specifically the see the rule titled Do Not Double Post Your Question.

I am sorry but I don't know how to answer your question at this time. Please be patient with the experts here on theScripts as we are all volunteers and it may take some time to get an answer to your question.

Thanks,

-Moderator
Sep 10 '07 #5
Plater
7,872 Expert 4TB
Let me see if I have this straight.
You have an application that will be distributed (i.e. to computers not under your control)
It has to contact some server/service by IP, but you won't know the IP at time of distribution.
You want the IP address it uses to be configurable.
So add a "settings" or "configurations" section to your product where you can specify (and maybe "test") the IP address of the server/service you plan to use?

And maybe force the user to that section everytime the program starts until it's properly set?
Sep 10 '07 #6
Yes you got it......

any help will be very welcomed....

Thanx....
Sep 12 '07 #7
Sorry Mr. Frinavale for any mistakes........
I will take care of this in future....


Thanx.
Sep 12 '07 #8
Frinavale
9,735 Expert Mod 8TB
Sorry Mr. Frinavale for any mistakes........
It's Miss actually ;)
I will take care of this in future....


Thanx.
Thanks a lot!


Did you solve your problem?
Sep 12 '07 #9
Is there any body to help in this matter please?????
switch off and on ur system
Sep 12 '07 #10
No the problem is not solved yet.....
Sep 12 '07 #11
Plater
7,872 Expert 4TB
Well you said all you needed to do was provide a place for a user to type in an ip address.
That should be very simple yes?
Sep 12 '07 #12
Frinavale
9,735 Expert Mod 8TB
Have you considered using another web service with a static IP to be used as a type of Look Up Service?

This way you could add a bit of code to your Web Service that finds the IP address of the server your Web Service is sitting on...then have your Web Service register with the Look Up Service web service.

Then your client software will have to but call the same Look Up service (since it has a static IP) to find the IP of the server where your Web Service is located......


I'm not good with web services in .NET (I only have a general idea of them)...but shouldn't there be some sort of Look Up Directory type thing that you register your Web Service with??

-Frinny
Sep 12 '07 #13
Yes I want to add this functionality in the client application that user just give the IP Address of the server on which the Web Service is installed and this address will be saved until user does not change it.....in this way I think there is no need to configure the IP Address of the server every time....

And I need the same functionality for the Web Service also, that is user can also configure the IP Address for Web Service ( the IP Address of the computer on which the Web Service is installed ) and DataBase server ( the IP Address of the Data Base server can also be configured in the Web Service)....

It means I want to give these three functionalities (programatically)..

1: IP Address configuration for Client Application.
2: IP Address configuration for Web Service.
3: IP Address configuration for Data Base Server.

And for all these three functionalities user will only give the IP Addresses of computers...


Thanx..
Sep 13 '07 #14
Mr/Ms Praveen45698...

Good Joke....

hahahahahahahhhhaaaa

any how thanks for your reply...
Sep 13 '07 #15
Frinavale
9,735 Expert Mod 8TB
Yes I want to add this functionality in the client application that user just give the IP Address of the server on which the Web Service is installed and this address will be saved until user does not change it.....in this way I think there is no need to configure the IP Address of the server every time....

And I need the same functionality for the Web Service also, that is user can also configure the IP Address for Web Service ( the IP Address of the computer on which the Web Service is installed ) and DataBase server ( the IP Address of the Data Base server can also be configured in the Web Service)....

It means I want to give these three functionalities (programatically)..

1: IP Address configuration for Client Application.
2: IP Address configuration for Web Service.
3: IP Address configuration for Data Base Server.

And for all these three functionalities user will only give the IP Addresses of computers...


Thanx..
I remember now the term I was trying to remember yesterday!

UDDI:Universal Description Discovery and Integration

Wikipedia describes it pretty well:

"Universal Description, Discovery and Integration (UDDI) is a platform-independent, XML-based registry for businesses worldwide to list themselves on the Internet. UDDI is an open industry initiative, sponsored by OASIS, enabling businesses to publish service listings and discover each other and define how the services or software applications interact over the Internet. A UDDI business registration consists of three components:..."


So basically the UDDI acts like a "Yellow Pages" (phone book) for Web Services. Its a listing of Web Services that give the client applications a way to look up the Web Service.

There are websites like www.xmethods.net that do this. They have a whole bunch of Web Services listed on their site....but they don't actually host the Web Services themselves. They just provide you a means to look up a Web Service. You can go through their site to get and find a desired Web Service...from there your client application can retrieve the WSDL that allows you to connect to the Web Service.

Some of the Web Services on xmethods are free to use whereas others you'll have to pay for them. It's really a great site for learning how to use Web Services :)

I suggest looking into more details on UDDI.

I hope this gets you pointed in the right direction!

-Frinny
Sep 13 '07 #16

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Galina | last post by:
Hello I have an application in MS Access 2000. I have a form, which includes a subform. The subform is based on a table, but locked for any editing. There is Edit button. When clicked, it starts a...
3
by: Nick Douglas | last post by:
Hello, I'd like to programmatically reference the Excel Object Library from an Access form using VB. I am using this code: Application.VBE.vbprojects("VBAProject").References.AddFromFile...
2
by: Richard | last post by:
Hi, I have a DateTime picker control on a form. The datetime picker control is data bound to a column in a DataTable. Yes I know about bound DateTime pickers and DBNull and etc. so no troubles...
4
by: Srikanth | last post by:
Hi All, Can any one tell me how to change windows user account password by programmatically using C#? I don't have administrator privileges and I want to change my account password by...
5
by: ~~~ .NET Ed ~~~ | last post by:
Well, maybe not half-baked but 75%. I find very frustrating working with the DataGrid control. It offers a lot of functionality which really comes in handy. Unfortunately you can only enjoy a...
4
by: active | last post by:
It appears to me that if I change the Control's client size the controls size does not change to agree with the new size. Does it work like the VB6 ScaleWidth and ScaleHeight? That is after I...
3
by: Tom | last post by:
I am writing a Visual basic .Net database application. There are many forms that first let you select and look at a DB record and then when you click a "modify" button you are allowed to change...
2
by: Orit | last post by:
Hello . Please find below my questions - I hope some of the ASP.NET experts of this forum will answer to those beginner's questions : My Web site should be able to work with either SQL Server...
6
by: Andrew Jocelyn | last post by:
Hi How do I programmatically change (read/write) the values in this app.config file at runtime? Specifically I want to change the client endpoint address but it would be nice to change other...
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: 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...
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: 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 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.