473,883 Members | 1,626 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Serv ices.Protocols. SoapHttpClientP rotocol.

* 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 2269
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***@discussi ons.microsoft.c om> wrote in message
news:1F******** *************** ***********@mic rosoft.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.Serv ices.Protocols. SoapHttpClientP rotocol.

* 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
980
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 without a hitch). Before I use this class, I make the necessary calls to instantiate a WebProxy class and then pass in my credentials to set the WebProxy.Credentials property so I can get through the proxy server.
0
2646
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 web methods can be invoked successfully if "WebApplication1" is located in machines with the same subnet (128.1.7.x). However, it fails if "WebApplication1" is hosted on
3
18906
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 my window app. i am calling the web method but, i get no answer back, and after 1,2 minutes i get something like 'Operation time out'. if i check on the server where it runs the java web service, the method was called and parameters corectly...
3
5639
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 this parameter (complete namespace and class in the proxy), - so we have to go and change the proxy by hand, because it assumes that the class definition would belong to the web service. How can this be avoided ?
4
7064
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 implemented?
2
2031
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 I had to do was make sure that the proxy for the Web service had an initialized CookieContainer. The second version is an ASP.NET Web application, and it never receives the expected cookie from the Web service. I can tell because a breakpoint...
1
2014
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 here: http://www.mozilla.org/projects/webservices/examples/babelfish-wsdl/index.html The problem I have is this: When I try to adapt the invokation on the
4
10235
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 DataTable? Thanks for your advice, - Joe Geretz -
11
3668
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 method has the WebMethodAttribute.EnableSession set to true. When I run the test page the session is maintained. However, using a console application, in between setting the string value and attempting to
0
9944
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11151
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10752
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10858
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9582
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7134
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5804
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5996
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3238
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.