how to redirect a web service

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default how to redirect a web service

    I support an application that runs on multiple service. A CSS url is used to
    call the web services - and it round robins each to the next server so there
    is even distribution accross our servers. Sometimes, based on the details in
    the input parms, we may need to redirect the request to a different server.
    Does anyone have a C# code snipet that can be used to redirect a webservice
    call to another server? Or an MSDN library article.
    Much thanks,Tim
    Tim Reynolds Guest

  2. Similar Questions and Discussions

    1. redirect to guest if first redirect is doesnt work for a user
      Hi all, I was wondering if anyone could help me solve a problem Once a user hits a certain webpage ..I try to redirect them to another using...
    2. Noobilicious question: Exposing two interfaces on the same web service(C# web service)
      What are the fundamentals? I'm getting ready to write a new web service and I'd like to have the ability to add interfaces as they change to...
    3. Referencing web service complex data type within a second web service (like a delegate)
      Hi, I am trying to figure out if ASP.NET XML Web Services and the WSDL standard can handle this type of scenario: I have two web services, and...
    4. win32::eventlog DNS Server, Directory Service, File Replication Service
      hello, does anyone know how to scan the special eventlogs on a dc like DNS Server log Directory Service File Replicatoin Service i tried it...
    5. Redirect to New Browser Window like Response.Redirect
      That worked just fine for me as long as you put that open statement on one line rather than 2. "michel" <michely3k@yahoo.com> wrote in...
  3. #2

    Default RE: how to redirect a web service

    I am using this code snipet:
    HttpWebRequest
    myHttpWebRequest=(HttpWebRequest)WebRequest.Create (strTargetURL);
    myHttpWebRequest.MaximumAutomaticRedirections=1;
    myHttpWebRequest.AllowAutoRedirect=true;
    HttpWebResponse
    myHttpWebResponse=(HttpWebResponse)myHttpWebReques t.GetResponse();

    However, I can't seem to 'capture' what is in the myHttpWebResponse. It
    keeps right on cruising past this code - but GetResponse is synchronize call
    - so it should haev a value in it. Event when I breakpoint at next line in
    code I still can't access myHttpWebResopnse. Even if I could access it - I'm
    not sure how to return it to the caller of this web service... Please
    advise....
    Thanks,
    Tim

    "Tim Reynolds" wrote:
    > I support an application that runs on multiple service. A CSS url is used to
    > call the web services - and it round robins each to the next server so there
    > is even distribution accross our servers. Sometimes, based on the details in
    > the input parms, we may need to redirect the request to a different server.
    > Does anyone have a C# code snipet that can be used to redirect a webservice
    > call to another server? Or an MSDN library article.
    > Much thanks,Tim
    Tim Reynolds Guest

  4. #3

    Default Re: how to redirect a web service

    =?Utf-8?B?VGltIFJleW5vbGRz?= <TimReynolds@discussions.microsoft.com>
    wrote in news:D4DF50FA-68F0-42AB-99B1-611FBDF5DDFE@microsoft.com:
    > I support an application that runs on multiple service. A CSS url is
    > used to call the web services - and it round robins each to the next
    Ive never tried it, but a basic ASP.NET aspx page with a Redirect in it should do it.


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

    Blog: [url]http://blogs.atozed.com/kudzu[/url]
    Chad Z. Hower aka Kudzu Guest

  5. #4

    Default Re: how to redirect a web service

    Hi Tim...

    Not sure what "specifically" your contraints are here do you want to:
    a) Intercept the message (and redirect) as it reachs the target web service
    b) Send the message to a different web service before it even reach the
    "first"

    a) is probably the easiest. When the message arrives at the web service,
    you can simply invoke another one (which presumably is less busy!)

    b) would involve an architectural change - you need to put in a "SOAP
    router" infront of all your web services. This essentially acts as a
    "postman", and just recieves the SOAP message, and forwards to the least
    busy service. You can do SOAProuting via software or there is some neat
    hardware (we've used) that does all this for you! :-)

    Hope that helps!

    --
    Pete Wood
    Contact me at [url]http://www.webserviceshelp.org[/url] for more help
    __________________________________________________ _______


    "Tim Reynolds" <TimReynolds@discussions.microsoft.com> wrote in message
    news:D4DF50FA-68F0-42AB-99B1-611FBDF5DDFE@microsoft.com...
    >I support an application that runs on multiple service. A CSS url is used
    >to
    > call the web services - and it round robins each to the next server so
    > there
    > is even distribution accross our servers. Sometimes, based on the details
    > in
    > the input parms, we may need to redirect the request to a different
    > server.
    > Does anyone have a C# code snipet that can be used to redirect a
    > webservice
    > call to another server? Or an MSDN library article.
    > Much thanks,Tim

    Pete Wood Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139