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

.NET (Core and Framework)

 
GeneralRe: Multimodule assembly Pin
Mike Dimmick5-Apr-04 2:20
Mike Dimmick5-Apr-04 2:20 
GeneralRe: Multimodule assembly Pin
sieben5-Apr-04 2:37
sieben5-Apr-04 2:37 
Generalcompiling MSIL to Native code using ngen.exe tool Pin
Marco M.4-Apr-04 0:50
Marco M.4-Apr-04 0:50 
GeneralRe: compiling MSIL to Native code using ngen.exe tool Pin
leppie4-Apr-04 1:13
leppie4-Apr-04 1:13 
GeneralConcurrent Assembly versions Pin
ProffK2-Apr-04 1:50
ProffK2-Apr-04 1:50 
GeneralFramework Version Pin
JM_FL1-Apr-04 22:55
JM_FL1-Apr-04 22:55 
GeneralRe: Framework Version Pin
Stefan Troschuetz12-Apr-04 22:52
Stefan Troschuetz12-Apr-04 22:52 
GeneralTransfers to the client an amount of the expected result Pin
s_habibi1-Apr-04 19:35
s_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
Colin 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
Colin Angus Mackay1-Apr-04 14:01 
GeneralDeployment of already installed Appllication in .NET. Pin
Mahesh Dara31-Mar-04 18:22
Mahesh Dara31-Mar-04 18:22 
GeneralRe: Deployment of already installed Appllication in .NET. Pin
John Kuhn31-Mar-04 18:44
John Kuhn31-Mar-04 18:44 
GeneralRe: Deployment of already installed Appllication in .NET. Pin
je_gonzalez1-Apr-04 14:28
je_gonzalez1-Apr-04 14:28 
GeneralRe: Deployment of already installed Appllication in .NET. Pin
Mahesh Dara1-Apr-04 20:21
Mahesh Dara1-Apr-04 20:21 
QuestionHow to print a RTF document Pin
manfred.bjorlin31-Mar-04 3:45
manfred.bjorlin31-Mar-04 3:45 
GeneralCalling .Net-DLLs from regular, unmanaged C++ Pin
Eric Schaefer30-Mar-04 22:40
Eric Schaefer30-Mar-04 22:40 
GeneralRe: Calling .Net-DLLs from regular, unmanaged C++ Pin
Roman Rodov31-Mar-04 14:41
Roman Rodov31-Mar-04 14:41 
GeneralRe: Calling .Net-DLLs from regular, unmanaged C++ Pin
Eric Schaefer1-Apr-04 22:08
Eric Schaefer1-Apr-04 22:08 
GeneralRe: Calling .Net-DLLs from regular, unmanaged C++ Pin
Mike Dimmick5-Apr-04 2:32
Mike Dimmick5-Apr-04 2:32 
Generalrichtextbox removing highlight from selected text Pin
Member 33109630-Mar-04 19:54
Member 33109630-Mar-04 19:54 
GeneralPrompt to add files when inserted MISSING Pin
Kris Morness30-Mar-04 12:19
Kris 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
Kris 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.