Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > WSE 2.0 SP3 DIME client error: Response is not well-formed XML. ---> System.Xml.XmlException: Root element is missing.

Reply
Thread Tools

WSE 2.0 SP3 DIME client error: Response is not well-formed XML. ---> System.Xml.XmlException: Root element is missing.

 
 
Rich Fowler
Guest
Posts: n/a
 
      09-09-2009
Environment:
Windows forms web services client tested on Vista Ultimate x64 and Windows
XP (Virtual PC)
WSE 2.0 SP 3 using DIME attachments

I get the error below when trying to receive an attachment in a response
that causes the response to exceed 10 megabytes (approximate). I do not have
control of the web service server. It is an interface with the IRS MeF
(Modern eFile) System. I am able to successfully receive messages in the 9.5
mb range but when the message exceeds 10 mb, I receive the error. Based on
timing tests that I performed, it looks like the entire response is being
received but the process errors before completing the processing of the
response. The trace of the web service does not record the response in the
trace file. There are no problems with the XML with smaller (less than 10mb)
responses. The responses themselves, without the attachments, are about 2.5
kb.

I have the following WSE 2.0 configuration parameters:

<messaging>
<executionTimeout value="600"/>
<maxRequestLength>-1</maxRequestLength>
</messaging>

The response takes less than two minutes for the successful 9.5 mb response.
The error occurs in less than two minutes for a 10.5 mb attachment. The
error occurs at around two minutes fifty seconds for an 18 mb attachment.

Thanks - Rich F.

Exception: System.InvalidOperationException: Response is not well-formed
XML. ---> System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo( String res)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent( )
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at Microsoft.Web.Services2.Xml.XmlSkipDTDReader.Read( )
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at Microsoft.Web.Services2.SoapEnvelope.Load(Stream stream)
at
Microsoft.Web.Services2.Messaging.SoapDimeFormatte r.Microsoft.Web.Services2.Messaging.ISoapFormatter .Deserialize(Stream
stream)
at Microsoft.Web.Services2.InputStream.GetRawContent( )
at Microsoft.Web.Services2.InputStream.Read(Byte[] buffer, Int32 offset,
Int32 count)
at System.IO.StreamReader.ReadBuffer(Char[] userBuffer, Int32 userOffset,
Int32 desiredChars, Boolean& readToUserBuffer)
at System.IO.StreamReader.Read(Char[] buffer, Int32 index, Int32 count)
at System.Xml.XmlTextReaderImpl.ReadData()
at System.Xml.XmlTextReaderImpl.InitTextReaderInput(S tring baseUriStr,
TextReader input)
at System.Xml.XmlTextReaderImpl..ctor(String url, TextReader input,
XmlNameTable nt)
at System.Xml.XmlTextReaderImpl..ctor(TextReader input)
at System.Xml.XmlTextReader..ctor(TextReader input)
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.GetReaderForMessage(SoapClientMessage
message, Int32 bufferSize)
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)
at
IRSProxiesSA.StateService.GetSubmissionsClass.GetS ubmissions(GetSubmissionsRequestType
GetSubmissionsRequestArgs) in
D:\Form990Development\Form990Software\IRSProxiesSA \StateService.cs:line 76
at IRSWebSupportSA.State.GetSubmissions(GetSubmission sRequestType
Request) in
D:\Form990Development\Form990Software\IRSWebSuppor tSA\State.cs:line 196

 
Reply With Quote
 
 
 
 
Kenneth
Guest
Posts: n/a
 
      01-22-2010
Hello. I realize it's been a few months for this post, but did you happen to find a resolution? I am having the same issue.

Thanks!



Rich Fowler wrote:

WSE 2.0 SP3 DIME client error: Response is not well-formed XML. ---> System.Xml.XmlException: Root element is missing.
09-Sep-09

Environment
Windows forms web services client tested on Vista Ultimate x64 and Window
XP (Virtual PC
WSE 2.0 SP 3 using DIME attachment

I get the error below when trying to receive an attachment in a respons
that causes the response to exceed 10 megabytes (approximate). I do not hav
control of the web service server. It is an interface with the IRS Me
(Modern eFile) System. I am able to successfully receive messages in the 9.
mb range but when the message exceeds 10 mb, I receive the error. Based o
timing tests that I performed, it looks like the entire response is bein
received but the process errors before completing the processing of th
response. The trace of the web service does not record the response in th
trace file. There are no problems with the XML with smaller (less than 10mb
responses. The responses themselves, without the attachments, are about 2.
kb

I have the following WSE 2.0 configuration parameters

<messaging
<executionTimeout value="600"/
<maxRequestLength>-1</maxRequestLength
</messaging

The response takes less than two minutes for the successful 9.5 mb response
The error occurs in less than two minutes for a 10.5 mb attachment. Th
error occurs at around two minutes fifty seconds for an 18 mb attachment

Thanks - Rich F

Exception: System.InvalidOperationException: Response is not well-forme
XML. ---> System.Xml.XmlException: Root element is missing
at System.Xml.XmlTextReaderImpl.Throw(Exception e
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo( String res
at System.Xml.XmlTextReaderImpl.ParseDocumentContent(
at System.Xml.XmlTextReaderImpl.Read(
at System.Xml.XmlTextReader.Read(
at Microsoft.Web.Services2.Xml.XmlSkipDTDReader.Read(
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolea
preserveWhitespace
at System.Xml.XmlDocument.Load(XmlReader reader
at Microsoft.Web.Services2.SoapEnvelope.Load(Stream stream
a
Microsoft.Web.Services2.Messaging.SoapDimeFormatte r.Microsoft.Web.Services2.Messaging.ISoapFormatter .Deserialize(Strea
stream
at Microsoft.Web.Services2.InputStream.GetRawContent(
at Microsoft.Web.Services2.InputStream.Read(Byte[] buffer, Int32 offset
Int32 count
at System.IO.StreamReader.ReadBuffer(Char[] userBuffer, Int32 userOffset
Int32 desiredChars, Boolean& readToUserBuffer
at System.IO.StreamReader.Read(Char[] buffer, Int32 index, Int32 count
at System.Xml.XmlTextReaderImpl.ReadData(
at System.Xml.XmlTextReaderImpl.InitTextReaderInput(S tring baseUriStr
TextReader input
at System.Xml.XmlTextReaderImpl..ctor(String url, TextReader input
XmlNameTable nt
at System.Xml.XmlTextReaderImpl..ctor(TextReader input
at System.Xml.XmlTextReader..ctor(TextReader input
a
System.Web.Services.Protocols.SoapHttpClientProtoc ol.GetReaderForMessage(SoapClientMessag
message, Int32 bufferSize
a
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessag
message, WebResponse response, Stream responseStream, Boolean asyncCall
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(Strin
methodName, Object[] parameters
--- End of inner exception stack trace --
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(Strin
methodName, Object[] parameters
a
IRSProxiesSA.StateService.GetSubmissionsClass.GetS ubmissions(GetSubmissionsRequestTyp
GetSubmissionsRequestArgs) i
D:\Form990Development\Form990Software\IRSProxiesSA \StateService.cs:line 7
at IRSWebSupportSA.State.GetSubmissions(GetSubmission sRequestTyp
Request) i
D:\Form990Development\Form990Software\IRSWebSuppor tSA\State.cs:line 196

Previous Posts In This Thread:

On Wednesday, September 09, 2009 12:17 AM
Rich Fowler wrote:

WSE 2.0 SP3 DIME client error: Response is not well-formed XML. ---> System.Xml.XmlException: Root element is missing.
Environment:
Windows forms web services client tested on Vista Ultimate x64 and Windows
XP (Virtual PC)
WSE 2.0 SP 3 using DIME attachments

I get the error below when trying to receive an attachment in a response
that causes the response to exceed 10 megabytes (approximate). I do not have
control of the web service server. It is an interface with the IRS MeF
(Modern eFile) System. I am able to successfully receive messages in the 9.5
mb range but when the message exceeds 10 mb, I receive the error. Based on
timing tests that I performed, it looks like the entire response is being
received but the process errors before completing the processing of the
response. The trace of the web service does not record the response in the
trace file. There are no problems with the XML with smaller (less than 10mb)
responses. The responses themselves, without the attachments, are about 2.5
kb.

I have the following WSE 2.0 configuration parameters:

<messaging>
<executionTimeout value="600"/>
<maxRequestLength>-1</maxRequestLength>
</messaging>

The response takes less than two minutes for the successful 9.5 mb response.
The error occurs in less than two minutes for a 10.5 mb attachment. The
error occurs at around two minutes fifty seconds for an 18 mb attachment.

Thanks - Rich F.

Exception: System.InvalidOperationException: Response is not well-formed
XML. ---> System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo( String res)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent( )
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at Microsoft.Web.Services2.Xml.XmlSkipDTDReader.Read( )
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at Microsoft.Web.Services2.SoapEnvelope.Load(Stream stream)
at
Microsoft.Web.Services2.Messaging.SoapDimeFormatte r.Microsoft.Web.Services2.Messaging.ISoapFormatter .Deserialize(Stream
stream)
at Microsoft.Web.Services2.InputStream.GetRawContent( )
at Microsoft.Web.Services2.InputStream.Read(Byte[] buffer, Int32 offset,
Int32 count)
at System.IO.StreamReader.ReadBuffer(Char[] userBuffer, Int32 userOffset,
Int32 desiredChars, Boolean& readToUserBuffer)
at System.IO.StreamReader.Read(Char[] buffer, Int32 index, Int32 count)
at System.Xml.XmlTextReaderImpl.ReadData()
at System.Xml.XmlTextReaderImpl.InitTextReaderInput(S tring baseUriStr,
TextReader input)
at System.Xml.XmlTextReaderImpl..ctor(String url, TextReader input,
XmlNameTable nt)
at System.Xml.XmlTextReaderImpl..ctor(TextReader input)
at System.Xml.XmlTextReader..ctor(TextReader input)
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.GetReaderForMessage(SoapClientMessage
message, Int32 bufferSize)
at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)
at
IRSProxiesSA.StateService.GetSubmissionsClass.GetS ubmissions(GetSubmissionsRequestType
GetSubmissionsRequestArgs) in
D:\Form990Development\Form990Software\IRSProxiesSA \StateService.cs:line 76
at IRSWebSupportSA.State.GetSubmissions(GetSubmission sRequestType
Request) in
D:\Form990Development\Form990Software\IRSWebSuppor tSA\State.cs:line 196


Submitted via EggHeadCafe - Software Developer Portal of Choice
ASP.NET SqlCacheDependency Redux
http://www.eggheadcafe.com/tutorials...dependenc.aspx
 
Reply With Quote
 
 
 
 
Rich Fowler
Guest
Posts: n/a
 
      01-22-2010
I have not. If you wish to discuss this offline, you can get my email address from Xan.



Kenneth wrote:

Resolved?
22-Jan-10

Hello. I realize it's been a few months for this post, but did you happen to find a resolution? I am having the same issue.

Thanks!

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice
Performance Testing .NET Web Apps [MSPRESS]
http://www.eggheadcafe.com/tutorials...sting-net.aspx
 
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
WSE 2 SP3 error: Client found response content type of '', but expected 'text/xml'. j.edwards ASP .Net Web Services 1 02-13-2006 04:26 PM
WSE 2.0 DIME Streaming Problem David Talbot ASP .Net Web Services 1 08-03-2005 08:21 PM
DIME attachments break double-byte characters using WSE 1.0 SP1 Vaylor Trucks ASP .Net Web Services 1 11-18-2004 11:21 PM
WSE 2.0 SP1 unable to consume WSDL from DIME Specification Sebastien Tardif ASP .Net Web Services 4 11-04-2004 01:38 PM
WSE Dime Chunking? Dave ASP .Net Web Services 0 09-30-2003 10:48 AM



Advertisments