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. Web Development
  3. ASP.NET
  4. Changing where a webservice's proxy points to...?

Changing where a webservice's proxy points to...?

Scheduled Pinned Locked Moved ASP.NET
wcfcomsysadminhelptutorial
2 Posts 2 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.
  • C Offline
    C Offline
    Cormac M Redmond
    wrote on last edited by
    #1

    Hi, I have a wsdl.exe generated proxy called UserService which at the minute talks to www.somewhere.com/someservice, or whatever. I am developing an application (for college) where a company will setup my webservice 'someService' on their server, and an application will talk to that. So obviously someServicewill need: [System.Web.Services.WebServiceBindingAttribute(Name = "someService", Namespace = "http://tempuri.org/")] to be changed to reflect the company's address, etc. There is also a variable 'Url', but that can be easily changed at creation time: public UserService() { this.Url = "http://localhost:3961/S3OnTheGoWebService/S3OnTheGoService.asmx"; } I need to know how to change that WebServiceBindingAttribute at runtime - well, at least whatever it is 'setting', as I would to provide the ability for the user to specify which web service to use when loading up the application. I'm not really sure what WebServiceBindingAttribute is for, or why it is needed. Any help or suggesstions appreciated, Cormac Redmond -- modified at 8:51 Tuesday 10th April, 2007

    C 1 Reply Last reply
    0
    • C Cormac M Redmond

      Hi, I have a wsdl.exe generated proxy called UserService which at the minute talks to www.somewhere.com/someservice, or whatever. I am developing an application (for college) where a company will setup my webservice 'someService' on their server, and an application will talk to that. So obviously someServicewill need: [System.Web.Services.WebServiceBindingAttribute(Name = "someService", Namespace = "http://tempuri.org/")] to be changed to reflect the company's address, etc. There is also a variable 'Url', but that can be easily changed at creation time: public UserService() { this.Url = "http://localhost:3961/S3OnTheGoWebService/S3OnTheGoService.asmx"; } I need to know how to change that WebServiceBindingAttribute at runtime - well, at least whatever it is 'setting', as I would to provide the ability for the user to specify which web service to use when loading up the application. I'm not really sure what WebServiceBindingAttribute is for, or why it is needed. Any help or suggesstions appreciated, Cormac Redmond -- modified at 8:51 Tuesday 10th April, 2007

      C Offline
      C Offline
      Cale Dunlap
      wrote on last edited by
      #2

      I'm digging around for the same thing, I need to have attributes on the WebServiceBinding object change at runtime.

      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