Change Web Reference Programmatically Using C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nadeem Asghar
    New Member
    • Aug 2007
    • 9

    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.
  • Nadeem Asghar
    New Member
    • Aug 2007
    • 9

    #2
    Change Web Reference Programmaticall y Using C#

    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....

    Comment

    • Nadeem Asghar
      New Member
      • Aug 2007
      • 9

      #3
      Originally posted by Nadeem Asghar
      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?????

      Comment

      • Nadeem Asghar
        New Member
        • Aug 2007
        • 9

        #4
        Originally posted by Nadeem Asghar
        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?????

        Comment

        • Frinavale
          Recognized Expert Expert
          • Oct 2006
          • 9749

          #5
          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

          Comment

          • Plater
            Recognized Expert Expert
            • Apr 2007
            • 7872

            #6
            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?

            Comment

            • Nadeem Asghar
              New Member
              • Aug 2007
              • 9

              #7
              Yes you got it......

              any help will be very welcomed....

              Thanx....

              Comment

              • Nadeem Asghar
                New Member
                • Aug 2007
                • 9

                #8
                Sorry Mr. Frinavale for any mistakes....... .
                I will take care of this in future....


                Thanx.

                Comment

                • Frinavale
                  Recognized Expert Expert
                  • Oct 2006
                  • 9749

                  #9
                  Originally posted by Nadeem Asghar
                  Sorry Mr. Frinavale for any mistakes....... .
                  It's Miss actually ;)
                  Originally posted by Nadeem Asghar
                  I will take care of this in future....


                  Thanx.
                  Thanks a lot!


                  Did you solve your problem?

                  Comment

                  • praveen45698
                    New Member
                    • Sep 2007
                    • 1

                    #10
                    Originally posted by Nadeem Asghar
                    Is there any body to help in this matter please?????
                    switch off and on ur system

                    Comment

                    • Nadeem Asghar
                      New Member
                      • Aug 2007
                      • 9

                      #11
                      No the problem is not solved yet.....

                      Comment

                      • Plater
                        Recognized Expert Expert
                        • Apr 2007
                        • 7872

                        #12
                        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?

                        Comment

                        • Frinavale
                          Recognized Expert Expert
                          • Oct 2006
                          • 9749

                          #13
                          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

                          Comment

                          • Nadeem Asghar
                            New Member
                            • Aug 2007
                            • 9

                            #14
                            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 (programaticall y)..

                            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..

                            Comment

                            • Nadeem Asghar
                              New Member
                              • Aug 2007
                              • 9

                              #15
                              Mr/Ms Praveen45698...

                              Good Joke....

                              hahahahahahahhh haaaa

                              any how thanks for your reply...

                              Comment

                              Working...