Saturday, March 31, 2012

Simulating a windows service

So I only have VWD and therefore can not create a windows service. I found this articlehttp://www.codeproject.com/aspnet/aspnetservice.asp and wanted some feedback on whether this is really a reliable solution or if I'm going to have to fork over the cash and buy Visual Studio Pro. I set this up this past friday, it worked until about 9pm. Monday morning I had to restart IIS to get it going and now on tuesday morning its still working.

I believe you can produce console applications with the Express editions (not VWD, but C# or VB). You can create a console app that does what you want then schedule it using the Windows scheduler to run when you want. You may get a console popping up but it'll disappear as soon as it has run. Result is pretty much the same as using a Windows service. I have a feeling you can also create a Windows service using the .Net SDK, but you'll probably have to do some command line compilation and build the installer in code by hand - not sure though, never tried it myself.


Hi jhoop2002,

jhoop2002:

So I only have VWD and therefore can not create a windows service.

thats right, but with Visual C# or VB you can. There is no template to create a windows service in the express editions, but that's not really a problem. I now itWink

jhoop2002:

I found this articlehttp://www.codeproject.com/aspnet/aspnetservice.asp and wanted some feedback on whether this is really a reliable solution or if I'm going to have to fork over the cash and buy Visual Studio Pro.

Very interested article, really. But this have nothing to do with the version of VS youre using. I think the real question is: will you use the ready coded solution from this article, or sit down and create a windows service from ground up. Yes, its a lot of work at the first time. But keep in mind, you learn a lot while doing this job.

Anyway, only my two cents.


Well, I'm a network admin thats had a programmers hat thrown on him, so I would much rather take the ready coded solution from the article. I guess i was just wondering if its reliable enough.


jhoop2002:

Well, I'm a network admin thats had a programmers hat thrown on him, so I would much rather take the ready coded solution from the article.

... self-explanatory.

jhoop2002:

I guess i was just wondering if its reliable enough.

but remeber, all the different jobs are hostet by the IIS, who's running as a service. So when IIS crashs, all the jobs are crashed also. A windows service is running in its own context and so a windows service is really more reliable.

If you think this solution is reliable enough for you, so go this way.


Sorry, double post.


Sorry, double post.


Sorry, double post.

Simulating a Web Service Application

Hi All,
I'm in a strange situation.
I have WSDL files generated by a apache Axis software. But i dont have
access to the application, becuase of few reasons. I want to validate
the application that I'm preparing now.
Anybody had overcome such situation? Expects some help from you.
Thanks in Advance.
AnbuWhat kind of validation you want to do?
"Anbu" <Anbu.Thangarathinam@.gmail.com> wrote in message
news:1150896182.258265.172170@.m73g2000cwd.googlegroups.com...
> Hi All,
> I'm in a strange situation.
> I have WSDL files generated by a apache Axis software. But i dont have
> access to the application, becuase of few reasons. I want to validate
> the application that I'm preparing now.
> Anybody had overcome such situation? Expects some help from you.
> Thanks in Advance.
> Anbu
>
Well if you have the wsdl you can easily setup a dummy service on your local
system just copy the method signatures in a new webservice project
add some ( expected ) standard return values and test your program with that
regards
Michel Posseth [MCP]
"Anbu" <Anbu.Thangarathinam@.gmail.com> schreef in bericht
news:1150896182.258265.172170@.m73g2000cwd.googlegroups.com...
> Hi All,
> I'm in a strange situation.
> I have WSDL files generated by a apache Axis software. But i dont have
> access to the application, becuase of few reasons. I want to validate
> the application that I'm preparing now.
> Anybody had overcome such situation? Expects some help from you.
> Thanks in Advance.
> Anbu
>
Will the free online wsdl validator at
http://www.mgateway.com/wsdlValidator.htm help you?
Anbu wrote:
> Hi All,
> I'm in a strange situation.
> I have WSDL files generated by a apache Axis software. But i dont have
> access to the application, becuase of few reasons. I want to validate
> the application that I'm preparing now.
> Anybody had overcome such situation? Expects some help from you.
> Thanks in Advance.
> Anbu

simulating browser cookie management

Hello,

I am trying to write a script for testing web
applications. It needs to be able to authenticate user
and manage state through cookies. Is it possible to
simulate cookie management like a browser? If so, how?

Thank you,

Martin KubaMartin,

Look at System.Net.CookieContainer.

--
John Saunders
Internet Engineer
john.saunders@.surfcontrol.com

"Martin Kuba" <martin@.loyalcare.com> wrote in message
news:038f01c35ad3$47ded110$a601280a@.phx.gbl...
> Hello,
> I am trying to write a script for testing web
> applications. It needs to be able to authenticate user
> and manage state through cookies. Is it possible to
> simulate cookie management like a browser? If so, how?
> Thank you,
> Martin Kuba
John,

Thanks for your response. Do you know where I could find
a real-world example of using this class? MSDN has only
description of the class members. It would help me get
up to speed faster. Thanks again.

Martin

>--Original Message--
>Martin,
>Look at System.Net.CookieContainer.
>--
>John Saunders
>Internet Engineer
>john.saunders@.surfcontrol.com
>
>"Martin Kuba" <martin@.loyalcare.com> wrote in message
>news:038f01c35ad3$47ded110$a601280a@.phx.gbl...
>> Hello,
>>
>> I am trying to write a script for testing web
>> applications. It needs to be able to authenticate user
>> and manage state through cookies. Is it possible to
>> simulate cookie management like a browser? If so, how?
>>
>> Thank you,
>>
>> Martin Kuba
>
>.
Martin,

The code I gave you _is_ a real-world example. That's' all there is to it!

Did you have more in mind?

--
John Saunders
Internet Engineer
john.saunders@.surfcontrol.com

"Martin Kuba" <martin@.loyalcare.com> wrote in message
news:039101c35ad6$5c75efc0$a501280a@.phx.gbl...
> John,
> Thanks for your response. Do you know where I could find
> a real-world example of using this class? MSDN has only
> description of the class members. It would help me get
> up to speed faster. Thanks again.
> Martin
>
> >--Original Message--
> >Martin,
> >Look at System.Net.CookieContainer.
> >--
> >John Saunders
> >Internet Engineer
> >john.saunders@.surfcontrol.com
> >"Martin Kuba" <martin@.loyalcare.com> wrote in message
> >news:038f01c35ad3$47ded110$a601280a@.phx.gbl...
> >> Hello,
> >>
> >> I am trying to write a script for testing web
> >> applications. It needs to be able to authenticate user
> >> and manage state through cookies. Is it possible to
> >> simulate cookie management like a browser? If so, how?
> >>
> >> Thank you,
> >>
> >> Martin Kuba
> >.

simulating MDI in ASP.NET

The IT Manager where I'm working prizes "no touch" deployment
above all else. The instructions I've been given are basically
this: if it's possible in ASP.NET, write it in ASP.NET; use
WinForms only as a last resort.
One of the departments has specified that they need to have
multiple Customer records open at the same time, in different
windows. If they're handling a call from CustomerA and another
call comes in from CustomerB, they need to put CustomerA on hold
and open CustomerB's record, etc etc.
Any suggestions for simulating MDI in ASP.NET?
Thanks!
TimoIn ASP.NET your code is rendered by a web browser. I don't thing there is a
browser that implements MDI. What you should rather do is to open customer
records in a separate browser window. You can achieve it on client side
using JavaScript call window.open (...).
Eliyahu
"Timo" <timo@.noneofyer.biz> wrote in message
news:MPG.1af58ec65cfeb1499896ef@.msnews.microsoft.com...
> The IT Manager where I'm working prizes "no touch" deployment
> above all else. The instructions I've been given are basically
> this: if it's possible in ASP.NET, write it in ASP.NET; use
> WinForms only as a last resort.
> One of the departments has specified that they need to have
> multiple Customer records open at the same time, in different
> windows. If they're handling a call from CustomerA and another
> call comes in from CustomerB, they need to put CustomerA on hold
> and open CustomerB's record, etc etc.
> Any suggestions for simulating MDI in ASP.NET?
> Thanks!
> Timo
>
>
Hi Eliyahu,
Thanks for the reply. Window.open with javascript can certainly
open multiple windows, but I was thinking perhaps there was a
custom control that simulated MDI using multiple panes inside a
single webform or something like that. I was also hoping it might
be possible to get the panes to move around the screen using drag-
drop if such a control implemented CSOM (which is beyond my
programming experience) or to have one of these pseudo-forms
superimposed upon another using z-index. BTW, this would not have
to be a cross-browser solution; we're using IE6.
Timo
In article <#2UqfPtKEHA.2624@.TK2MSFTNGP09.phx.gbl>,
removemeegoldin@.monarchmed.com writes...
>In ASP.NET your code is rendered by a web browser. I don't thing there is a
>browser that implements MDI. What you should rather do is to open customer
>records in a separate browser window. You can achieve it on client side
>using JavaScript call window.open (...).
>Eliyahu
>"Timo" <timo@.noneofyer.biz> wrote in message
>news:MPG.1af58ec65cfeb1499896ef@.msnews.microsoft.com...
>
>
You might be able to do this with IFrames. I suspect, however, that to
achieve the results you really want will require a bit of DHTML coding.
"Timo" <timo@.noneofyer.biz> wrote in message
news:MPG.1af58ec65cfeb1499896ef@.msnews.microsoft.com...
> The IT Manager where I'm working prizes "no touch" deployment
> above all else. The instructions I've been given are basically
> this: if it's possible in ASP.NET, write it in ASP.NET; use
> WinForms only as a last resort.
> One of the departments has specified that they need to have
> multiple Customer records open at the same time, in different
> windows. If they're handling a call from CustomerA and another
> call comes in from CustomerB, they need to put CustomerA on hold
> and open CustomerB's record, etc etc.
> Any suggestions for simulating MDI in ASP.NET?
> Thanks!
> Timo
>
>
Web-based applications have their own GUI culture, it is not a good idea to
make a web application look and feel exactly as a Windows one. I remember
early 90s when Windows started taking over MS-DOS. Imagine a Windows program
that would look exactly as MS-DOS one.
Eliyahu
"Timo" <timo@.noneofyer.biz> wrote in message
news:MPG.1af5b551d33a800a9896f0@.msnews.microsoft.com...
> Hi Eliyahu,
> Thanks for the reply. Window.open with javascript can certainly
> open multiple windows, but I was thinking perhaps there was a
> custom control that simulated MDI using multiple panes inside a
> single webform or something like that. I was also hoping it might
> be possible to get the panes to move around the screen using drag-
> drop if such a control implemented CSOM (which is beyond my
> programming experience) or to have one of these pseudo-forms
> superimposed upon another using z-index. BTW, this would not have
> to be a cross-browser solution; we're using IE6.
> Timo
>
> In article <#2UqfPtKEHA.2624@.TK2MSFTNGP09.phx.gbl>,
> removemeegoldin@.monarchmed.com writes...
a
customer
Using Framesets is similar to MDI in some respects (although you should know
that Frames need to be used in moderation).
Obviously that won't give you the movability, but then you might want to
reconsider whether that would provide the best user experience anyway.
Many people would find it confusing/annoying.
"Timo" <timo@.noneofyer.biz> wrote in message
news:MPG.1af5b551d33a800a9896f0@.msnews.microsoft.com...
> Hi Eliyahu,
> Thanks for the reply. Window.open with javascript can certainly
> open multiple windows, but I was thinking perhaps there was a
> custom control that simulated MDI using multiple panes inside a
> single webform or something like that. I was also hoping it might
> be possible to get the panes to move around the screen using drag-
> drop if such a control implemented CSOM (which is beyond my
> programming experience) or to have one of these pseudo-forms
> superimposed upon another using z-index. BTW, this would not have
> to be a cross-browser solution; we're using IE6.
> Timo
>
> In article <#2UqfPtKEHA.2624@.TK2MSFTNGP09.phx.gbl>,
> removemeegoldin@.monarchmed.com writes...
a
customer
Timo,
First, I would ask around to see if Citrix is in house.
I'm in a similar situation concerning the deploymnet issue,
and to me it often makes more sense to put complex window apps on a
server rather than try to replace them with browser apps.
On the other hand, one possible take on your problem would be to create
a User Control to hold the customer info, and
set up a page where you could hold multiple copies (hopefully not too
many) of this control. Then you could populate them and make them
visible as you worked with the customers. If they're on the same page
you could toggle the visibility of each control without losing the info.
Jim
*** Sent via Developersdex http://www.examnotes.net ***
Don't just participate in USENET...get rewarded for it!

simulating MDI in ASP.NET

The IT Manager where I'm working prizes "no touch" deployment
above all else. The instructions I've been given are basically
this: if it's possible in ASP.NET, write it in ASP.NET; use
WinForms only as a last resort.

One of the departments has specified that they need to have
multiple Customer records open at the same time, in different
windows. If they're handling a call from CustomerA and another
call comes in from CustomerB, they need to put CustomerA on hold
and open CustomerB's record, etc etc.

Any suggestions for simulating MDI in ASP.NET?

Thanks!
TimoIn ASP.NET your code is rendered by a web browser. I don't thing there is a
browser that implements MDI. What you should rather do is to open customer
records in a separate browser window. You can achieve it on client side
using JavaScript call window.open (...).

Eliyahu

"Timo" <timo@.noneofyer.biz> wrote in message
news:MPG.1af58ec65cfeb1499896ef@.msnews.microsoft.c om...
> The IT Manager where I'm working prizes "no touch" deployment
> above all else. The instructions I've been given are basically
> this: if it's possible in ASP.NET, write it in ASP.NET; use
> WinForms only as a last resort.
> One of the departments has specified that they need to have
> multiple Customer records open at the same time, in different
> windows. If they're handling a call from CustomerA and another
> call comes in from CustomerB, they need to put CustomerA on hold
> and open CustomerB's record, etc etc.
> Any suggestions for simulating MDI in ASP.NET?
> Thanks!
> Timo
Hi Eliyahu,
Thanks for the reply. Window.open with javascript can certainly
open multiple windows, but I was thinking perhaps there was a
custom control that simulated MDI using multiple panes inside a
single webform or something like that. I was also hoping it might
be possible to get the panes to move around the screen using drag-
drop if such a control implemented CSOM (which is beyond my
programming experience) or to have one of these pseudo-forms
superimposed upon another using z-index. BTW, this would not have
to be a cross-browser solution; we're using IE6.
Timo

In article <#2UqfPtKEHA.2624@.TK2MSFTNGP09.phx.gbl>,
removemeegoldin@.monarchmed.com writes...
>In ASP.NET your code is rendered by a web browser. I don't thing there is a
>browser that implements MDI. What you should rather do is to open customer
>records in a separate browser window. You can achieve it on client side
>using JavaScript call window.open (...).
>Eliyahu
>"Timo" <timo@.noneofyer.biz> wrote in message
>news:MPG.1af58ec65cfeb1499896ef@.msnews.microsoft.c om...
>> The IT Manager where I'm working prizes "no touch" deployment
>> above all else. The instructions I've been given are basically
>> this: if it's possible in ASP.NET, write it in ASP.NET; use
>> WinForms only as a last resort.
>>
>> One of the departments has specified that they need to have
>> multiple Customer records open at the same time, in different
>> windows. If they're handling a call from CustomerA and another
>> call comes in from CustomerB, they need to put CustomerA on hold
>> and open CustomerB's record, etc etc.
>>
>> Any suggestions for simulating MDI in ASP.NET?
>>
>> Thanks!
>> Timo
>>
>>
>>
>
You might be able to do this with IFrames. I suspect, however, that to
achieve the results you really want will require a bit of DHTML coding.

"Timo" <timo@.noneofyer.biz> wrote in message
news:MPG.1af58ec65cfeb1499896ef@.msnews.microsoft.c om...
> The IT Manager where I'm working prizes "no touch" deployment
> above all else. The instructions I've been given are basically
> this: if it's possible in ASP.NET, write it in ASP.NET; use
> WinForms only as a last resort.
> One of the departments has specified that they need to have
> multiple Customer records open at the same time, in different
> windows. If they're handling a call from CustomerA and another
> call comes in from CustomerB, they need to put CustomerA on hold
> and open CustomerB's record, etc etc.
> Any suggestions for simulating MDI in ASP.NET?
> Thanks!
> Timo
Web-based applications have their own GUI culture, it is not a good idea to
make a web application look and feel exactly as a Windows one. I remember
early 90s when Windows started taking over MS-DOS. Imagine a Windows program
that would look exactly as MS-DOS one.

Eliyahu

"Timo" <timo@.noneofyer.biz> wrote in message
news:MPG.1af5b551d33a800a9896f0@.msnews.microsoft.c om...
> Hi Eliyahu,
> Thanks for the reply. Window.open with javascript can certainly
> open multiple windows, but I was thinking perhaps there was a
> custom control that simulated MDI using multiple panes inside a
> single webform or something like that. I was also hoping it might
> be possible to get the panes to move around the screen using drag-
> drop if such a control implemented CSOM (which is beyond my
> programming experience) or to have one of these pseudo-forms
> superimposed upon another using z-index. BTW, this would not have
> to be a cross-browser solution; we're using IE6.
> Timo
>
> In article <#2UqfPtKEHA.2624@.TK2MSFTNGP09.phx.gbl>,
> removemeegoldin@.monarchmed.com writes...
> >In ASP.NET your code is rendered by a web browser. I don't thing there is
a
> >browser that implements MDI. What you should rather do is to open
customer
> >records in a separate browser window. You can achieve it on client side
> >using JavaScript call window.open (...).
> >Eliyahu
> >"Timo" <timo@.noneofyer.biz> wrote in message
> >news:MPG.1af58ec65cfeb1499896ef@.msnews.microsoft.c om...
> >> The IT Manager where I'm working prizes "no touch" deployment
> >> above all else. The instructions I've been given are basically
> >> this: if it's possible in ASP.NET, write it in ASP.NET; use
> >> WinForms only as a last resort.
> >>
> >> One of the departments has specified that they need to have
> >> multiple Customer records open at the same time, in different
> >> windows. If they're handling a call from CustomerA and another
> >> call comes in from CustomerB, they need to put CustomerA on hold
> >> and open CustomerB's record, etc etc.
> >>
> >> Any suggestions for simulating MDI in ASP.NET?
> >>
> >> Thanks!
> >> Timo
> >>
> >>
> >
Using Framesets is similar to MDI in some respects (although you should know
that Frames need to be used in moderation).
Obviously that won't give you the movability, but then you might want to
reconsider whether that would provide the best user experience anyway.
Many people would find it confusing/annoying.

"Timo" <timo@.noneofyer.biz> wrote in message
news:MPG.1af5b551d33a800a9896f0@.msnews.microsoft.c om...
> Hi Eliyahu,
> Thanks for the reply. Window.open with javascript can certainly
> open multiple windows, but I was thinking perhaps there was a
> custom control that simulated MDI using multiple panes inside a
> single webform or something like that. I was also hoping it might
> be possible to get the panes to move around the screen using drag-
> drop if such a control implemented CSOM (which is beyond my
> programming experience) or to have one of these pseudo-forms
> superimposed upon another using z-index. BTW, this would not have
> to be a cross-browser solution; we're using IE6.
> Timo
>
> In article <#2UqfPtKEHA.2624@.TK2MSFTNGP09.phx.gbl>,
> removemeegoldin@.monarchmed.com writes...
> >In ASP.NET your code is rendered by a web browser. I don't thing there is
a
> >browser that implements MDI. What you should rather do is to open
customer
> >records in a separate browser window. You can achieve it on client side
> >using JavaScript call window.open (...).
> >Eliyahu
> >"Timo" <timo@.noneofyer.biz> wrote in message
> >news:MPG.1af58ec65cfeb1499896ef@.msnews.microsoft.c om...
> >> The IT Manager where I'm working prizes "no touch" deployment
> >> above all else. The instructions I've been given are basically
> >> this: if it's possible in ASP.NET, write it in ASP.NET; use
> >> WinForms only as a last resort.
> >>
> >> One of the departments has specified that they need to have
> >> multiple Customer records open at the same time, in different
> >> windows. If they're handling a call from CustomerA and another
> >> call comes in from CustomerB, they need to put CustomerA on hold
> >> and open CustomerB's record, etc etc.
> >>
> >> Any suggestions for simulating MDI in ASP.NET?
> >>
> >> Thanks!
> >> Timo
> >>
> >>
> >
Timo,

First, I would ask around to see if Citrix is in house.
I'm in a similar situation concerning the deploymnet issue,
and to me it often makes more sense to put complex window apps on a
server rather than try to replace them with browser apps.

On the other hand, one possible take on your problem would be to create
a User Control to hold the customer info, and
set up a page where you could hold multiple copies (hopefully not too
many) of this control. Then you could populate them and make them
visible as you worked with the customers. If they're on the same page
you could toggle the visibility of each control without losing the info.

Jim

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Simulating Server.Transfer to another machine

I need to do the logical equivelent of Server.Transfer to another
server whos identity is known only upon receipt of the request. (The
other machine is on-site, but not addressable from the outside world,
which is one of many reasons I can't do a Redirect.)
I'm assuming I have to make another request, and then copy the response
back to the original response. What is the most efficient way of doing
this? (All servers are IIS/Asp.Net.)
thanks,
mIck. Sounds like an unfortunate problem. What sort of information is the
second server providing? Does it have to be presented as HTML?

Can you instead design your app such that you get back XML (such as a web
service) from the second server, instead of HTML? So then your first server
is really the one rendering the page to the client based upon the XML data
provided by the second? I think this will make things smoother for you in
the long run.

If not then you can use HttpWebRequest class to issue a HTTP request to the
second server and use HttpWebResponse to handle the results.

-Brock
DevelopMentor
http://staff.develop.com/ballen

> I need to do the logical equivelent of Server.Transfer to another
> server whos identity is known only upon receipt of the request. (The
> other machine is on-site, but not addressable from the outside world,
> which is one of many reasons I can't do a Redirect.)
> I'm assuming I have to make another request, and then copy the
> response
> back to the original response. What is the most efficient way of doing
> this? (All servers are IIS/Asp.Net.)
> thanks,
> m
"Mike" <vimakefile@.yahoo.com> wrote in news:1110938109.479879.144170
@.g14g2000cwa.googlegroups.com:

> I'm assuming I have to make another request, and then copy the response
> back to the original response. What is the most efficient way of doing
> this? (All servers are IIS/Asp.Net.)

Seems like you may have to do a HTTPWebRequest... basically screen
scraping.

Here is more info:

http://aspnet.4guysfromrolla.com/articles/122204-1.aspx

Or could your internal app be exposed as a web service? That way the
external server can make remoting or web service calls to the back end
server to fetch the appropriate information.

--
Lucas Tam (REMOVEnntp@.rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
"Brock Allen" <ballen@.develop.com.i_hate_spam_too> wrote in message
news:7395632465175520068896@.msnews.microsoft.com.. .
> Ick. Sounds like an unfortunate problem. What sort of information is the
> second server providing? Does it have to be presented as HTML?

It's partially binary (which is why I don't want to use a web-svc and
base-64 everything) -- -- target is not a browser in this case, but I'm
using http:80 for other reasons. This is basically akin to a load-balancing
problem.
It must be a pretty common problem to solve, because I assume that's what
all those expensive magic switches (f5, Cisco, etc.) do that route your
request to an ostensibly available server, but always re-route the same
session back to the same server.

thanks,
m

> Can you instead design your app such that you get back XML (such as a web
> service) from the second server, instead of HTML? So then your first
> server is really the one rendering the page to the client based upon the
> XML data provided by the second? I think this will make things smoother
> for you in the long run.
> If not then you can use HttpWebRequest class to issue a HTTP request to
> the second server and use HttpWebResponse to handle the results.
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>> I need to do the logical equivelent of Server.Transfer to another
>> server whos identity is known only upon receipt of the request. (The
>> other machine is on-site, but not addressable from the outside world,
>> which is one of many reasons I can't do a Redirect.)
>> I'm assuming I have to make another request, and then copy the
>> response
>> back to the original response. What is the most efficient way of doing
>> this? (All servers are IIS/Asp.Net.)
>> thanks,
>> m

Simulating Server.Transfer to another machine

I need to do the logical equivelent of Server.Transfer to another
server whos identity is known only upon receipt of the request. (The
other machine is on-site, but not addressable from the outside world,
which is one of many reasons I can't do a Redirect.)
I'm assuming I have to make another request, and then copy the response
back to the original response. What is the most efficient way of doing
this? (All servers are IIS/Asp.Net.)
thanks,
mIck. Sounds like an unfortunate problem. What sort of information is the
second server providing? Does it have to be presented as HTML?
Can you instead design your app such that you get back XML (such as a web
service) from the second server, instead of HTML? So then your first server
is really the one rendering the page to the client based upon the XML data
provided by the second? I think this will make things smoother for you in
the long run.
If not then you can use HttpWebRequest class to issue a HTTP request to the
second server and use HttpWebResponse to handle the results.
-Brock
DevelopMentor
http://staff.develop.com/ballen

> I need to do the logical equivelent of Server.Transfer to another
> server whos identity is known only upon receipt of the request. (The
> other machine is on-site, but not addressable from the outside world,
> which is one of many reasons I can't do a Redirect.)
> I'm assuming I have to make another request, and then copy the
> response
> back to the original response. What is the most efficient way of doing
> this? (All servers are IIS/Asp.Net.)
> thanks,
> m
"Mike" <vimakefile@.yahoo.com> wrote in news:1110938109.479879.144170
@.g14g2000cwa.googlegroups.com:

> I'm assuming I have to make another request, and then copy the response
> back to the original response. What is the most efficient way of doing
> this? (All servers are IIS/Asp.Net.)
Seems like you may have to do a HTTPWebRequest... basically screen
scraping.
Here is more info:
http://aspnet.4guysfromrolla.com/articles/122204-1.aspx
Or could your internal app be exposed as a web service? That way the
external server can make remoting or web service calls to the back end
server to fetch the appropriate information.
Lucas Tam (REMOVEnntp@.rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
[url]http://members.ebay.com/aboutme/spot18/[/url]
"Brock Allen" <ballen@.develop.com.i_hate_spam_too> wrote in message
news:7395632465175520068896@.msnews.microsoft.com...
> Ick. Sounds like an unfortunate problem. What sort of information is the
> second server providing? Does it have to be presented as HTML?
It's partially binary (which is why I don't want to use a web-svc and
base-64 everything) -- -- target is not a browser in this case, but I'm
using http:80 for other reasons. This is basically akin to a load-balancing
problem.
It must be a pretty common problem to solve, because I assume that's what
all those expensive magic switches (f5, Cisco, etc.) do that route your
request to an ostensibly available server, but always re-route the same
session back to the same server.
thanks,
m

> Can you instead design your app such that you get back XML (such as a web
> service) from the second server, instead of HTML? So then your first
> server is really the one rendering the page to the client based upon the
> XML data provided by the second? I think this will make things smoother
> for you in the long run.
> If not then you can use HttpWebRequest class to issue a HTTP request to
> the second server and use HttpWebResponse to handle the results.
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>
>