Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Transfers to the client an amount of the expected result

Reply
Thread Tools

Transfers to the client an amount of the expected result

 
 
alexey
Guest
Posts: n/a
 
      04-02-2004
Regard!!!





So the question of Transfers to the client an amount of the expected result of functioning WebService (value must be considered on Server side and on the client its has to be seen before that datas will go... ).



I from here try put amount (in bytes) of the message in SoapHeader, which sends by Web service to the client...

On how much I has understood I can get it this way (or I'm wrong: )



public override Stream ChainStream( Stream stream )

{



siz = stream.Length;

return newStream;

}



Here is but afterwards . has got (if has got ) ) in SoapHeader



public override void ProcessMessage(SoapMessage message)

{

if (message.Stage == SoapMessageStage.)

{

((SizeHeader)message.Headers[0]).size=siz;

}



}



So the question is:

What must be is ??? ????

a.. If BeforeSerialize, then - not understandable what happens if I somehow shall else work with stream after serialisation (well for example compress by ZIP and this is the end - an size NOT CORRECT 8-((( )
b.. If AfterSerialize, then before SoapHeader already does not accessible ... 8-(( It already as it were packed... Here is...


Help please... Or prompt other way

 
Reply With Quote
 
 
 
 
alexey
Guest
Posts: n/a
 
      04-02-2004
Ok.. If there is no answers maybe I'm asked not understandable question:
I'll tray to change my question
1) Is it possible to change value of SoapHeader after serialisation?
2) Is it possible to determinate size (in bytes) of the message which will be transferred to the client of Web Service before serialisation?
3) What can I use except SoapHeader, to transfer some integer to push it to the client of my Web Service, before response of WebMetod starts transfer (prefer not other WebMetod)



Best regards:







So the question of Transfers to the client an amount of the expected result of functioning WebService (value must be considered on Server side and on the client its has to be seen before that datas will go... ).



I from here try put amount (in bytes) of the message in SoapHeader, which sends by Web service to the client...

On how much I has understood I can get it this way (or I'm wrong: )



public override Stream ChainStream( Stream stream )

{



siz = stream.Length;

return newStream;

}



Here is but afterwards . has got (if has got ) ) in SoapHeader



public override void ProcessMessage(SoapMessage message)

{

if (message.Stage == SoapMessageStage.)

{

((SizeHeader)message.Headers[0]).size=siz;

}



}



So the question is:

What must be is ??? ????

a.. If BeforeSerialize, then - not understandable what happens if I somehow shall else work with stream after serialisation (well for example compress by ZIP and this is the end - an size NOT CORRECT 8-((( )
b.. If AfterSerialize, then before SoapHeader already does not accessible ... 8-(( It already as it were packed... Here is...


Help please... Or prompt other way

 
Reply With Quote
 
 
 
 
alexey
Guest
Posts: n/a
 
      04-02-2004

Ok.. If there is no answers maybe I'm asked not understandable question:
I'll tray to change my question
1) Is it possible to change value of SoapHeader after serialisation?
2) Is it possible to determinate size (in bytes) of the message which will be transferred to the client of Web Service before serialisation?
3) What can I use except SoapHeader, to transfer some integer to push it to the client of my Web Service, before response of WebMetod starts transfer (prefer not other WebMetod)



Best regards:

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Result not expected with user control - any ideas why/ Sue ASP .Net Web Controls 6 12-12-2005 09:37 PM
Cache feature doesn't produce expected result (bug?) Tom.PesterDELETETHISSS@pandora.be ASP .Net 14 08-05-2005 04:09 PM
1. Ruby result: 101 seconds , 2. Java result:9.8 seconds, 3. Perl result:62 seconds Michael Tan Ruby 32 07-21-2005 03:23 PM
client-server data transfers appended with funny characters Matt C Programming 2 07-19-2004 05:23 AM
client-server data transfers appended with funny characters Matt C++ 5 07-12-2004 06:06 AM



Advertisments