473,320 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 2248
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bill Hauver | last post by:
I am attempting to use a web service from my work pc which is behind a firewall. I have used wsdl.exe to create the web service reference class and added it to my project. (this seems to work...
0
by: George | last post by:
Hello, I'm running an ASPX application "WebApplication1" which consumes a web service (service1.asmx) hosted on a machine with IP (128.1.7.x) . The web service is located in the intranet. The...
3
by: Valeriu Filip | last post by:
Hello, I have a java web service, and created a wsdl file from the java class; based on the resulting wsdl file i generated the proxy C# class using wsdl.exe utility and the result i included in...
3
by: Chakra | last post by:
I have a Entity class defined in a assembly. I then have a web service in the same solution, which takes an object of this class as a parameter. It expects me to give the fully qualified name of...
4
by: Vlad | last post by:
I am implementing class that uses Web service written by another and it is not implemented yet. How can I test my class using NUnit framework without make changes in future when web service will be...
2
by: achoo | last post by:
I have two versions of the same program that send requests to a Web service. One version is a Windows application written in C#, and it properly handles a cookie created by the Web service. All...
1
by: Nestor | last post by:
Hello all, I'm begining in the web services world and I've reading about how to invoke them using javascript from Mozilla browser (version 2.0 in my case). I found a very interesting example...
4
by: Joseph Geretz | last post by:
I don't get it. A DataTable can't be returned, but a DataSet can. Yet a DataSet contains one or more DataTables. So obviously a DataTable must be serializable. So why not just let me return a...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.