Ask a Question related to ASP.NET Web Services, Design and Development.
-
Mark Oueis #1
Avoiding De-Serialization
I've got what i think is a tough question. I hope someone can help me.
We have data entering our software through a Web Service. It is then
directly (without any processing whatsoever) forwarded to a Windows
Service through remoting. The problem is this: when lots of data is
coming in, its being de-serialized by the Web Service, then serialized
again to be sent to the windows Service, then de-serialized by the
Windows Service to be used.
Is there any way i can just avoid the de-serialization process of the
Web Service? Can i just keep the data serialized and pass it through
remoting to the Windows Service?
Thanks
Mark
Mark Oueis Guest
-
#39635 [NEW]: Better control for serialization (keyword for permit property serialization)
From: t dot prochazka at centrum dot cz Operating system: all PHP version: 5CVS-2006-11-26 (CVS) PHP Bug Type: Feature/Change... -
Avoiding subquery
Hi, if anyone feels like a little quiz (but I don't know the answer), just for interest: Is it possible to rewrite this: SELECT... -
Avoiding Evaluate
I'm starting with a formula, which is a string, in a variable. For example, calcFormula = (a + b) / c. I replace parts of the string with numeric... -
avoiding XML serialization, different WSDL generation, soap serialization
Hello, I think my problem is interesting for most of developers who wish to exchange actual business entities with webservices, not just xml... -
avoiding flash
You can do all sorts of eyecandy with JS if you code for IE... they have these cool things called Filters :) I think you can mess about with... -
Dan Rogers #2
RE: Avoiding De-Serialization
Hi Mark,
Yes, there is a way. You can process the incoming request directly, either
by building a port listener that does a passthrough, or by hosting your
first service end-point on a Biztalk Server 2004 port. The data will still
get copied as it moves thru any interim, but you can avoid deserializing
twice by keeping the data as XML. An advantage of using a Biztalk Server
2004 is that you can add in validation, signature verification,
transformation, etc.
I hope this helps
Dan Rogers
Microsoft Corporation
--------------------17:56:08 GMT)>From: [email]markoueis@hotmail.com[/email] (Mark Oueis)
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
>Subject: Avoiding De-Serialization
>Date: 23 Nov 2004 09:56:07 -0800
>Organization: [url]http://groups.google.com[/url]
>Lines: 16
>Message-ID: <b1800bd3.0411230956.772f8a7a@posting.google.com >
>NNTP-Posting-Host: 207.35.201.4
>Content-Type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 8bit
>X-Trace: posting.google.com 1101232568 5629 127.0.0.1 (23 Nov 2004cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado .fastwebnet.it!tiscali!new>X-Complaints-To: [email]groups-abuse@google.com[/email]
>NNTP-Posting-Date: Tue, 23 Nov 2004 17:56:08 +0000 (UTC)
>Path:
sfeed1.ip.tiscali.net!news.glorb.com!postnews.goog le.com!not-for-mailmicrosoft.public.dotnet.framework.aspnet.webservic es:26774>Xref: cpmsftngxa10.phx.gbl>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
>
>I've got what i think is a tough question. I hope someone can help me.
>
>We have data entering our software through a Web Service. It is then
>directly (without any processing whatsoever) forwarded to a Windows
>Service through remoting. The problem is this: when lots of data is
>coming in, its being de-serialized by the Web Service, then serialized
>again to be sent to the windows Service, then de-serialized by the
>Windows Service to be used.
>
>Is there any way i can just avoid the de-serialization process of the
>Web Service? Can i just keep the data serialized and pass it through
>remoting to the Windows Service?
>
>Thanks
>
>Mark
>Dan Rogers Guest
-
Mark Oueis #3
Re: Avoiding De-Serialization
Thanks, we might need to use one of those methods.
I was thinking though, is there any need to have a Windows Service at
all? Can we not simply use the ASP .NET service for all our needs?
Basically the question boils down to this. What can we do in the
windows service that cannot be done in the ASP .NET service.
Thanks again
Mark
Mark Oueis Guest
-
Dan Rogers #4
Re: Avoiding De-Serialization
If you choose to use the ASP.net infrastructure, you won't be able to avoid
the repeated serialization/deserialization since this is a part of the
ASP.net stack. For more information on this, look at how web service
extensions work - the full deserialization stack is discussed in the
articles on web service extensions.
If you write your own port reader or HTTP handler (and thus use IIS as a
service facade), you have full control. The WSE 2.0 toolkit also comes
with the infrastructure you need to do this kind of work, so that is an
option as well.
I hope this helps
Dan Rogers
Microsoft Corporation
--------------------<9mQtJWa0EHA.3440@cpmsftngxa10.phx.gbl>>From: [email]markoueis@hotmail.com[/email] (Mark Oueis)
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
>Subject: Re: Avoiding De-Serialization
>Date: 25 Nov 2004 10:02:57 -0800
>Organization: [url]http://groups.google.com[/url]
>Lines: 11
>Message-ID: <b1800bd3.0411251002.40e6becf@posting.google.com >
>References: <b1800bd3.0411230956.772f8a7a@posting.google.com >18:02:57 GMT)>NNTP-Posting-Host: 207.35.201.4
>Content-Type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 8bit
>X-Trace: posting.google.com 1101405777 11571 127.0.0.1 (25 Nov 2004cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado .fastwebnet.it!tiscali!new>X-Complaints-To: [email]groups-abuse@google.com[/email]
>NNTP-Posting-Date: Thu, 25 Nov 2004 18:02:57 +0000 (UTC)
>Path:
sfeed1.ip.tiscali.net!news.glorb.com!postnews.goog le.com!not-for-mailmicrosoft.public.dotnet.framework.aspnet.webservic es:26815>Xref: cpmsftngxa10.phx.gbl>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
>
>Thanks, we might need to use one of those methods.
>
>I was thinking though, is there any need to have a Windows Service at
>all? Can we not simply use the ASP .NET service for all our needs?
>
>Basically the question boils down to this. What can we do in the
>windows service that cannot be done in the ASP .NET service.
>
>Thanks again
>
>Mark
>Dan Rogers Guest
-
markoueis@hotmail.com #5
Re: Avoiding De-Serialization
What do you think of avoiding the windows service all together and
moving everything to the web application.
I have seen techniques to keep the application alive (by making the
application make requests to itself before the session ends)
Mark
markoueis@hotmail.com Guest
-
Dan Rogers #6
Re: Avoiding De-Serialization
Hi Mark,
I'm not sure what it is that you are trying to gain. Of course, you could
develop a number of means (including an interactive application that just
opens a port and listens). But the purpose of creating tools and standards
based infrastructure is to get you out of the game of implemeting the
infrastructure pieces (very error prone) and into the application business.
Does this make sense?
Dan
--------------------19:27:09 GMT)>From: [email]markoueis@hotmail.com[/email]
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
>Subject: Re: Avoiding De-Serialization
>Date: 13 Dec 2004 11:27:05 -0800
>Organization: [url]http://groups.google.com[/url]
>Lines: 8
>Message-ID: <1102966025.427501.73740@c13g2000cwb.googlegroups. com>
>References: <b1800bd3.0411230956.772f8a7a@posting.google.com >
> <9mQtJWa0EHA.3440@cpmsftngxa10.phx.gbl>
> <b1800bd3.0411251002.40e6becf@posting.google.com >
> <MCaYwAl1EHA.3984@cpmsftngxa10.phx.gbl>
>NNTP-Posting-Host: 207.35.201.4
>Mime-Version: 1.0
>Content-Type: text/plain; charset="iso-8859-1"
>X-Trace: posting.google.com 1102966029 22322 127.0.0.1 (13 Dec 2004cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!newsfeed00.s>X-Complaints-To: [email]groups-abuse@google.com[/email]
>NNTP-Posting-Date: Mon, 13 Dec 2004 19:27:09 +0000 (UTC)
>In-Reply-To: <MCaYwAl1EHA.3984@cpmsftngxa10.phx.gbl>
>User-Agent: G2/0.2
>Complaints-To: [email]groups-abuse@google.com[/email]
>Injection-Info: c13g2000cwb.googlegroups.com; posting-host=207.35.201.4;
> posting-account=Sj2LdA0AAACzyflh18yp0KSqllm3aAzf
>Path:
ul.t-online.de!t-online.de!news.glorb.com!postnews.google.com!c13g2 000cwb.go
oglegroups.com!not-for-mailmicrosoft.public.dotnet.framework.aspnet.webservic es:27161>Xref: cpmsftngxa10.phx.gbl>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
>
>What do you think of avoiding the windows service all together and
>moving everything to the web application.
>
>I have seen techniques to keep the application alive (by making the
>application make requests to itself before the session ends)
>
>Mark
>
>Dan Rogers Guest
-
markoueis@hotmail.com #7
Re: Avoiding De-Serialization
I'm trying to avoid double serialization.
One way of doing that is to avoiding having to send the information to
my windows service and just processing the infromation at the web
application directly. What limitations does this have?
Mark
markoueis@hotmail.com Guest
-
Dan Rogers #8
Re: Avoiding De-Serialization
Hi Mark,
None on the surface of things. In essence what you are doing right now
sounds like you've built a web service wrapper on a remoting application.
I'd consider refactoring both so that the logic you want to share is in a
DLL that both the web servce and the windows service (your remoting host
for your application) can directly use the shared code.
Dan
--------------------16:56:33 GMT)>From: [email]markoueis@hotmail.com[/email]
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
>Subject: Re: Avoiding De-Serialization
>Date: 16 Dec 2004 08:56:29 -0800
>Organization: [url]http://groups.google.com[/url]
>Lines: 8
>Message-ID: <1103216189.245384.82500@f14g2000cwb.googlegroups. com>
>References: <b1800bd3.0411230956.772f8a7a@posting.google.com >
> <1102966025.427501.73740@c13g2000cwb.googlegroups. com>
> <Qft9ekV4EHA.2732@cpmsftngxa10.phx.gbl>
>NNTP-Posting-Host: 207.35.201.4
>Mime-Version: 1.0
>Content-Type: text/plain; charset="iso-8859-1"
>X-Trace: posting.google.com 1103216193 23899 127.0.0.1 (16 Dec 2004cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado .fastwebnet.it!tiscali!new>X-Complaints-To: [email]groups-abuse@google.com[/email]
>NNTP-Posting-Date: Thu, 16 Dec 2004 16:56:33 +0000 (UTC)
>In-Reply-To: <Qft9ekV4EHA.2732@cpmsftngxa10.phx.gbl>
>User-Agent: G2/0.2
>Complaints-To: [email]groups-abuse@google.com[/email]
>Injection-Info: f14g2000cwb.googlegroups.com; posting-host=207.35.201.4;
> posting-account=Sj2LdA0AAACzyflh18yp0KSqllm3aAzf
>Path:
sfeed1.ip.tiscali.net!news.maxwell.syr.edu!postnew s.google.com!f14g2000cwb.g
ooglegroups.com!not-for-mailmicrosoft.public.dotnet.framework.aspnet.webservic es:27236>Xref: cpmsftngxa10.phx.gbl>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
>
>I'm trying to avoid double serialization.
>
>One way of doing that is to avoiding having to send the information to
>my windows service and just processing the infromation at the web
>application directly. What limitations does this have?
>
>Mark
>
>Dan Rogers Guest



Reply With Quote

