469,133 Members | 1,016 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,133 developers. It's quick & easy.

how do I make a Web service proxy understand an HTTP refresh page?

Is it possible to extend a Web service proxy so that it understands an HTTP
refresh page?

Explanation:

* The Web service proxy was autogenerated by Visual Studio .NET 2003
from the Web service's WSDL. It inherits from
System.Web.Services.Protocols.SoapHttpClientProtoc ol.

* The Web service is hiding behind a load-balancing content switch
(Cisco content services switch to be precise)

* The content switch takes a request from a client and looks for the
session cookie. If it doesn't find the cookie, it sends the request back to
the client as an HTTP refresh page after inserting a new cookie.

* The client is supposed to refresh its page, causing it to resend the
original request with the new cookie included. This allows the content
switch to properly route traffic between the client and a particular backend
server.

* The Web service proxy generated by Visual Studio probably doesn't
respond properly to the HTTP refresh page... after all, it isn't a Web
browser and there is no page to refresh... I get the feeling that it's simply
ignoring this refresh command.
Feb 3 '06 #1
1 2074
it depends on how the refreah command is done. it should be a 300 level
redirect, in which case the proxy will follow. you should do a network trace
to see what the load balancer is really doing.

the autogenerated proxy is just code. you can edit it and add the required
support. for example, the proxy may be honoring the returned cookie on the
redirect. the fix would be to turn off auto redirect, catch the 300 error,
add any response cookies to the request, and request again.

-- bruce (sqlwork.com)
"achoo" <ac***@discussions.microsoft.com> wrote in message
news:1F**********************************@microsof t.com...
Is it possible to extend a Web service proxy so that it understands an
HTTP
refresh page?

Explanation:

* The Web service proxy was autogenerated by Visual Studio .NET 2003
from the Web service's WSDL. It inherits from
System.Web.Services.Protocols.SoapHttpClientProtoc ol.

* The Web service is hiding behind a load-balancing content switch
(Cisco content services switch to be precise)

* The content switch takes a request from a client and looks for the
session cookie. If it doesn't find the cookie, it sends the request back
to
the client as an HTTP refresh page after inserting a new cookie.

* The client is supposed to refresh its page, causing it to resend the
original request with the new cookie included. This allows the content
switch to properly route traffic between the client and a particular
backend
server.

* The Web service proxy generated by Visual Studio probably doesn't
respond properly to the HTTP refresh page... after all, it isn't a Web
browser and there is no page to refresh... I get the feeling that it's
simply
ignoring this refresh command.

Feb 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Bill Hauver | last post: by
3 posts views Thread by Valeriu Filip | last post: by
4 posts views Thread by Vlad | last post: by
1 post views Thread by Nestor | last post: by
4 posts views Thread by Joseph Geretz | last post: by
11 posts views Thread by Glenn | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.