Non-hardcoded web service location

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marcus

    Non-hardcoded web service location

    Is it possible to not hardcode the address to the web service in C#; i.e.,
    the address written in the .wsdl file?

    Thanks
  • BillyLiu007

    #2
    RE: Non-hardcoded web service location

    change the proxy property, use the web serivce address dynamic rather than
    static.
    so that you can change the web service address at web/app.config file.

    --
    Can You?You Can.


    "Marcus" wrote:
    [color=blue]
    > Is it possible to not hardcode the address to the web service in C#; i.e.,
    > the address written in the .wsdl file?
    >
    > Thanks[/color]

    Comment

    • Chad Z. Hower aka Kudzu

      #3
      RE: Non-hardcoded web service location

      "=?Utf-8?B?QmlsbHlMaXU wMDc=?=" <billyliu007@gm ail.com> wrote in
      news:727324B2-9C3C-4086-A720-DF38575732FF@mi crosoft.com:[color=blue]
      > change the proxy property, use the web serivce address dynamic rather
      > than static.
      > so that you can change the web service address at web/app.config file.[/color]

      You can also override it at runtime. Set the URL after calling teh constructor.


      --
      Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
      "Programmin g is an art form that fights back"

      Blogs: http://www.hower.org/kudzu/blogs

      Comment

      Working...