Click here to Skip to main content
15,394,885 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Multimodule assembly Pin
Mike Dimmick5-Apr-04 2:20
MemberMike Dimmick5-Apr-04 2:20 
GeneralRe: Multimodule assembly Pin
sieben5-Apr-04 2:37
Membersieben5-Apr-04 2:37 
Generalcompiling MSIL to Native code using ngen.exe tool Pin
Marco M.4-Apr-04 0:50
MemberMarco M.4-Apr-04 0:50 
GeneralRe: compiling MSIL to Native code using ngen.exe tool Pin
leppie4-Apr-04 1:13
Memberleppie4-Apr-04 1:13 
GeneralConcurrent Assembly versions Pin
ProffK2-Apr-04 1:50
MemberProffK2-Apr-04 1:50 
GeneralFramework Version Pin
JM_FL1-Apr-04 22:55
MemberJM_FL1-Apr-04 22:55 
GeneralRe: Framework Version Pin
Stefan Troschuetz12-Apr-04 22:52
MemberStefan Troschuetz12-Apr-04 22:52 
GeneralTransfers to the client an amount of the expected result Pin
s_habibi1-Apr-04 19:35
Members_habibi1-Apr-04 19:35 
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 8-)) ) Запихиваю 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 ХХХХ ??? ????

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-((( )
If AfterSerialize, then before SoapHeader already does not accessible ... 8-(( It already as it were packed... Here is...

Help please... Or prompt other way


In russian...

Привет !!!

Короче ТЗ 8-)))

Задачка передачи клиенту размера ожидаемого результата работы ВебСервиса (цыфра должна быть посчитана на серваке и на клиенте её нада видить до того как пошли данные... ).




Я от тут пытаюсь SoapHeader запихнуть размер (в байтах) сообщения, которое отправляет веб сервис клиенту...
На сколько я понял выхватить его можно примерно вот так (хотя может я и гоню 8-)) )
public override Stream ChainStream( Stream stream )
{

siz = stream.Length;
return newStream;
}

Вот а потом то. шо получил (если получил 8-)) ) Запихиваю в SoapHeader воттак

public override void ProcessMessage(SoapMessage message)
{
if (message.Stage == SoapMessageStage.ХХХХ)
{
((SizeHeader)message.Headers[0]).size=siz;
}

}

Так вот собсно вопрос:
Чему должен быть равен ХХХХ ????
а) Если BeforeSerialize, то тогда - не понятно что произайдёт если я как-то ещё буду работать со stream после сериализации (ну например сожму зипом и все - размер НЕ ТОТ 8-((( )
b) Если AfterSerialize, то тогда до SoapHeader уже не достучаться... 8-(( Он уже как бы упакован... Вот...


Помогите плиз... Или подскажите другой способ

QuestionHow to override non-virtual method in .NET (not a joke) Pin
Eugene Mayeski1-Apr-04 12:34
professionalEugene Mayeski1-Apr-04 12:34 
AnswerRe: How to override non-virtual method in .NET (not a joke) Pin
Colin Angus Mackay1-Apr-04 13:21
MemberColin Angus Mackay1-Apr-04 13:21 
GeneralRe: How to override non-virtual method in .NET (not a joke) Pin
Eugene Mayeski1-Apr-04 13:30
professionalEugene Mayeski1-Apr-04 13:30 
GeneralRe: How to override non-virtual method in .NET (not a joke) Pin
Colin Angus Mackay1-Apr-04 14:01
MemberColin Angus Mackay1-Apr-04 14:01 
GeneralDeployment of already installed Appllication in .NET. Pin
Mahesh Dara31-Mar-04 18:22
MemberMahesh Dara31-Mar-04 18:22 
GeneralRe: Deployment of already installed Appllication in .NET. Pin
John Kuhn31-Mar-04 18:44
MemberJohn Kuhn31-Mar-04 18:44 
GeneralRe: Deployment of already installed Appllication in .NET. Pin
je_gonzalez1-Apr-04 14:28
Memberje_gonzalez1-Apr-04 14:28 
GeneralRe: Deployment of already installed Appllication in .NET. Pin
Mahesh Dara1-Apr-04 20:21
MemberMahesh Dara1-Apr-04 20:21 
QuestionHow to print a RTF document Pin
manfred.bjorlin31-Mar-04 3:45
Membermanfred.bjorlin31-Mar-04 3:45 
GeneralCalling .Net-DLLs from regular, unmanaged C++ Pin
Eric Schaefer30-Mar-04 22:40
MemberEric Schaefer30-Mar-04 22:40 
GeneralRe: Calling .Net-DLLs from regular, unmanaged C++ Pin
Roman Rodov31-Mar-04 14:41
MemberRoman Rodov31-Mar-04 14:41 
GeneralRe: Calling .Net-DLLs from regular, unmanaged C++ Pin
Eric Schaefer1-Apr-04 22:08
MemberEric Schaefer1-Apr-04 22:08 
GeneralRe: Calling .Net-DLLs from regular, unmanaged C++ Pin
Mike Dimmick5-Apr-04 2:32
MemberMike Dimmick5-Apr-04 2:32 
Generalrichtextbox removing highlight from selected text Pin
Member 33109630-Mar-04 19:54
MemberMember 33109630-Mar-04 19:54 
GeneralPrompt to add files when inserted MISSING Pin
Kris Morness30-Mar-04 12:19
MemberKris Morness30-Mar-04 12:19 
GeneralRe: Prompt to add files when inserted MISSING Pin
Heath Stewart30-Mar-04 13:04
protectorHeath Stewart30-Mar-04 13:04 
GeneralRe: Prompt to add files when inserted MISSING Pin
Kris Morness30-Mar-04 13:13
MemberKris Morness30-Mar-04 13:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.