Transfers to the client an amount of the expected result

A

alexey

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 :cool:) ) úÁÐÉÈÉ×ÁÀ 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
 
A

alexey

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 :cool:) ) úÁÐÉÈÉ×ÁÀ 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
 
A

alexey

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:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,525
Members
44,997
Latest member
mileyka

Latest Threads

Top