Passing XML data and providing progress to client.

B

BLUE

I want to pass chunks of an xml file or an entire xml file to my WS.
I'm surprised to see fro MSDN that no System.Xml class is serializable
(XmlDocument, XmlElement and XmlNode):
- I should use a string as the web method parameter?
- to create the string I should use a stream to read the file or there is a
System.Xml method?
- to validate xml on the WS how can I pass the string to the XmlReader?


To provide progress to client I've seen WSE 2.0 documentation and this
article:
http://msdn2.microsoft.com/en-us/library/aa480520.aspx

I want to transfer an xml file of N bytes and to update the progress bar
each time N/100 bytes are transferred.
I think I should analyze data transfer, that is detect a transfer of N/100
and update the progress.

When are data transferred: during serialization (each serialized byte is
automatically sent on the wire) or there is another stage after
AfterSerialize?

Why the article use BeforeDeserialize?
I think it is related not to request (data send) but to response that is
when the web method has returned: the article is processing returned data in
my opinion; moreover it is processing a buffer of 8KB of data not data as
they are received N/100 at a time!
In this way the progress goes faster than real even if it starts after data
are received (the progress bar waits and then it fills quickly): this can
simulate progress only if data are much bigger than 8K (at least 160K).

I think it should analyze request not response but I do not know hot to
monitor fisical data transfer of N/100 bytes.

"In order for a SOAP extension to be invoked for a client application, the
SoapExtension class must be configured appropriately. For a Microsoft
Windows Form application, this involves modifying the application's
configuration file."
The problem is I'm using VS 2003 to develop a Windows CE .Net 4.2
application: configuration files does not exist, so how to tell my app to
use my SOAP extension?


Thanks,
Luigi.
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top