Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How can I set LOCALHOST in web config to use web services root address

How can I set LOCALHOST in web config to use web services root address

Scheduled Pinned Locked Moved C#
wcfxmlquestion
18 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J JUNEYT

    I was expecting a solution rather than a judgment. :(

    What a curious mind needs to discover knowledge is noting else than a pin-hole.

    S Offline
    S Offline
    SledgeHammer01
    wrote on last edited by
    #4

    Once you get the data back, why not just do a string replace LOCALHOST -> real host name? The issue isn't on your side, the web service isn't implemented properly. A web service should *NEVER* be returning LOCALHOST in URLs. You just need to work around the web service bug with the string replace.

    J 1 Reply Last reply
    0
    • S SledgeHammer01

      Once you get the data back, why not just do a string replace LOCALHOST -> real host name? The issue isn't on your side, the web service isn't implemented properly. A web service should *NEVER* be returning LOCALHOST in URLs. You just need to work around the web service bug with the string replace.

      J Offline
      J Offline
      JUNEYT
      wrote on last edited by
      #5

      Thank you very much that is what I needed. :)

      What a curious mind needs to discover knowledge is noting else than a pin-hole.

      N 1 Reply Last reply
      0
      • J JUNEYT

        Thank you very much that is what I needed. :)

        What a curious mind needs to discover knowledge is noting else than a pin-hole.

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #6

        I guess you did find a developer to help you.


        I know the language. I've read a book. - _Madmatt

        J 1 Reply Last reply
        0
        • N Not Active

          I guess you did find a developer to help you.


          I know the language. I've read a book. - _Madmatt

          J Offline
          J Offline
          JUNEYT
          wrote on last edited by
          #7

          You are not a developer but he was because of his answer (it doesn't matter if he is a beginner or advanced one). His solution worked out and will also work when upload my web service on any server. A developer mean is not God of coding? Are you?

          What a curious mind needs to discover knowledge is noting else than a pin-hole.

          N 1 Reply Last reply
          0
          • J JUNEYT

            You are not a developer but he was because of his answer (it doesn't matter if he is a beginner or advanced one). His solution worked out and will also work when upload my web service on any server. A developer mean is not God of coding? Are you?

            What a curious mind needs to discover knowledge is noting else than a pin-hole.

            N Offline
            N Offline
            Not Active
            wrote on last edited by
            #8

            JUNEYT wrote:

            You are not a developer but he was because of his answer

            :laugh: :laugh: :laugh: Thanks I needed a good laugh at the end of the day


            I know the language. I've read a book. - _Madmatt

            J 1 Reply Last reply
            0
            • N Not Active

              JUNEYT wrote:

              You are not a developer but he was because of his answer

              :laugh: :laugh: :laugh: Thanks I needed a good laugh at the end of the day


              I know the language. I've read a book. - _Madmatt

              J Offline
              J Offline
              JUNEYT
              wrote on last edited by
              #9

              I am glad that I made you happy somehow but please have a toothpaste and toothbrush. Take it easy.

              What a curious mind needs to discover knowledge is noting else than a pin-hole.

              N 1 Reply Last reply
              0
              • J JUNEYT

                I am glad that I made you happy somehow but please have a toothpaste and toothbrush. Take it easy.

                What a curious mind needs to discover knowledge is noting else than a pin-hole.

                N Offline
                N Offline
                Not Active
                wrote on last edited by
                #10

                A toothbrush and toothpaste? Sorry I think something got lost in translation. Why not just give up while your behind. :laugh:


                I know the language. I've read a book. - _Madmatt

                J 1 Reply Last reply
                0
                • N Not Active

                  A toothbrush and toothpaste? Sorry I think something got lost in translation. Why not just give up while your behind. :laugh:


                  I know the language. I've read a book. - _Madmatt

                  J Offline
                  J Offline
                  JUNEYT
                  wrote on last edited by
                  #11

                  We were actually not translating something but your behavior... I didn't ask you if he was a developer. I was looking for a solution and he provided me so. So don't give up! keep coding your own behavior.

                  What a curious mind needs to discover knowledge is noting else than a pin-hole.

                  N 1 Reply Last reply
                  0
                  • J JUNEYT

                    We were actually not translating something but your behavior... I didn't ask you if he was a developer. I was looking for a solution and he provided me so. So don't give up! keep coding your own behavior.

                    What a curious mind needs to discover knowledge is noting else than a pin-hole.

                    N Offline
                    N Offline
                    Not Active
                    wrote on last edited by
                    #12

                    JUNEYT wrote:

                    I was looking for a solution and he provided me so.

                    Yes, you asked "How can I set LOCALHOST in web config..." To which my replay was, "You can't. There is no setting in the web.config file..." How is that not a solution? Must have gotten lost in the translation, or perhaps I didn't use enough toothpaste :laugh:


                    I know the language. I've read a book. - _Madmatt

                    1 Reply Last reply
                    0
                    • N Not Active

                      You can't. There is no setting in the web.config file that will convert the address in the data you receive. Do you know any developers who can help you with this?


                      I know the language. I've read a book. - _Madmatt

                      R Offline
                      R Offline
                      Roger Wright
                      wrote on last edited by
                      #13

                      Mark, I'm surprised by this response. The last bit is unusually unkind of you; you're always very helpful, in my experience. Are you having a bad day? Yes, the question implied a solution approach that won't work, but we are not all professionals here, with years of experience to draw from, and sometimes we get lost on a wrong track because of it. Your answer was initially excellent, but it wouldn't have taken a lot of effort for an expert like you to suggest another approach. I hope you have a better day tomorrow, and thank you for the help you've given me, a perpetual tyro, over the years... :)

                      Will Rogers never met me.

                      J 1 Reply Last reply
                      0
                      • R Roger Wright

                        Mark, I'm surprised by this response. The last bit is unusually unkind of you; you're always very helpful, in my experience. Are you having a bad day? Yes, the question implied a solution approach that won't work, but we are not all professionals here, with years of experience to draw from, and sometimes we get lost on a wrong track because of it. Your answer was initially excellent, but it wouldn't have taken a lot of effort for an expert like you to suggest another approach. I hope you have a better day tomorrow, and thank you for the help you've given me, a perpetual tyro, over the years... :)

                        Will Rogers never met me.

                        J Offline
                        J Offline
                        J4amieC
                        wrote on last edited by
                        #14

                        Roger Wright wrote:

                        a perpetual tyro

                        Is this a common expression? I wonder how many people know what "tyro" means outside of the military and (possibly) civil aviation.

                        P R 2 Replies Last reply
                        0
                        • J J4amieC

                          Roger Wright wrote:

                          a perpetual tyro

                          Is this a common expression? I wonder how many people know what "tyro" means outside of the military and (possibly) civil aviation.

                          P Offline
                          P Offline
                          Pete OHanlon
                          wrote on last edited by
                          #15

                          Well, I'm not military and I know what a tyro is; and I didn't need to look it up either.

                          Forgive your enemies - it messes with their heads

                          My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                          S 1 Reply Last reply
                          0
                          • P Pete OHanlon

                            Well, I'm not military and I know what a tyro is; and I didn't need to look it up either.

                            Forgive your enemies - it messes with their heads

                            My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                            S Offline
                            S Offline
                            SledgeHammer01
                            wrote on last edited by
                            #16

                            I had to look it up. Is that some British word? I'd never heard it used in the US before, but then again, I'm not in the military.

                            P 1 Reply Last reply
                            0
                            • S SledgeHammer01

                              I had to look it up. Is that some British word? I'd never heard it used in the US before, but then again, I'm not in the military.

                              P Offline
                              P Offline
                              Pete OHanlon
                              wrote on last edited by
                              #17

                              I had the benefit of studying Latin at school, which helps. And no - it was a dead language when I studied it, I'm not that old.

                              Forgive your enemies - it messes with their heads

                              My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility

                              1 Reply Last reply
                              0
                              • J J4amieC

                                Roger Wright wrote:

                                a perpetual tyro

                                Is this a common expression? I wonder how many people know what "tyro" means outside of the military and (possibly) civil aviation.

                                R Offline
                                R Offline
                                Roger Wright
                                wrote on last edited by
                                #18

                                As far as I've heard, I'm the only one among my vast collection of friends and acquaintances who has used it in a sentence, but they all understood what I said. :) I learned the word as a child, and don't recall where; I wasn't aware of any connection to the military.

                                Will Rogers never met me.

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups