473,506 Members | 16,201 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WSE 3.0 MTOM Problems

I'm getting some strange behavior when making multiple async calls coming
from threads from the thread pool on a WinApp Client. The Event Log has the
following events:

Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 6/18/2006
Time: 10:44:40 AM
User: N/A
Computer: LAPTOP
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 6/18/2006 10:44:40 AM
Event time (UTC): 6/18/2006 2:44:40 PM
Event ID: cb22619132d040cbb26b655619f272e8
Event sequence: 52
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: 86135903-1-127951154375312500
Trust level: Full
Application Virtual Path: /WebService
Application Path: C:\QPID\WebService\
Machine name: LAPTOP

Process information:
Process ID: 6096
Process name: WebDev.WebServer.EXE
Account name: LAPTOP\aventura

Exception information:
Exception type: HttpException
Exception message: Server cannot clear headers after HTTP headers have
been sent.

Request information:
Request URL: http://localhost:1497/WebService/Att...tServices.asmx
Request path: /WebService/AttachmentServices.asmx
User host address: 127.0.0.1
User: LAPTOP\aventura
Is authenticated: True
Authentication Type: NTLM
Thread account name: LAPTOP\aventura

Thread information:
Thread ID: 4
Thread account name: LAPTOP\aventura
Is impersonating: False
Stack trace: at System.Web.HttpResponse.ClearHeaders()
at
System.Web.Services.Protocols.SoapServerProtocol.W riteException(Exception e,
Stream outputStream)
at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing)
at
System.Web.Services.Protocols.WebServiceHandlerFac tory.CoreGetHandler(Type
type, HttpContext context, HttpRequest request, HttpResponse response)

Then I get another one from WSE 3.0 in the Event Log

Event Type: Error
Event Source: Microsoft WSE 3.0
Event Category: None
Event ID: 0
Date: 6/18/2006
Time: 10:44:40 AM
User: N/A
Computer: LAPTOP
Description:
HTTP/ASMX Message Receive Failure: System.Xml.XmlException: Data at the root
level is invalid. Line 2, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitesp ace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent( )
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at Microsoft.Web.Services3.Xml.XmlSkipDTDReader.Read( )
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at Microsoft.Web.Services3.SoapEnvelope.Load(Stream inStream)
at
Microsoft.Web.Services3.WseProtocol.CreateRequestS oapEnvelope(SoapServerMessage message)
at
Microsoft.Web.Services3.WseProtocol.GetRequestEnve lopeFromMessage(SoapServerMessage message)

Finally, I catch an exception via the threaded exception handler on a
winform app.

It is an InvalidOperationException that says "There was an error during
async processing." The Inner exception is another InvalidOperationException
that says ""Response is not well-formed XML." That has an inner exception of
Type XopDocumentException with a strange message stating {"WSE1608: No XOP
parts were located in the stream for the specified content-id:
<0.******************@example.org>"}

Any Ideas?
Jun 18 '06 #1
1 4717
On Sun, 18 Jun 2006 08:05:02 -0700, aceven24
<ac******@discussions.microsoft.com> wrote:

Exception information:
Exception type: HttpException
Exception message: Server cannot clear headers after HTTP headers have
been sent.
Just a wild guess and untested, but I think an unbuffered response (or an
explicit flush) combined with code that directly or indirectly changes the
headers would cause this. For example (VB):

<WebMethod()> _
Public Sub CrashAndDie1()
My.Response.BufferOutput = False
My.Response.Write("<p>Hello</p>")
My.Response.ClearHeaders()
End Sub

<WebMethod()> _
Public Sub CrashAndDie2()
My.Response.Write("<p>Hello</p>")
My.Response.Flush()
My.Response.ClearHeaders()
End Sub
Then I get another one from WSE 3.0 in the Event Log <snip> Description:
HTTP/ASMX Message Receive Failure: System.Xml.XmlException: Data at the root
level is invalid. Line 2, position 1.


This reminds me of a server I have to connect to, that sometimes responds
with a nice HTML-formatted error message instead of the XML you'd expect
from a webservice.

I don't get the same error, but that app is .Net 1.1.
Jun 19 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2320
by: Michael A Barnhart | last post by:
If there is a more appropriate group to post this in please comment. Given the lack of comments I feel I may not be looking in the correct groups. With the MTOM spec becoming "Offical" then end...
0
1778
by: HansvL | last post by:
I investigated samples of MTOM implementations. They all use the byte array as a result of the client or server method. Does MTOM also work for byte arras that are used as in/out parameters? The...
1
1939
by: Marc Gravell | last post by:
Apologies if this is a known issue... I don't know if this is an intentional feature change, or simply a bug... but! I recently upgraded a web service to WSE3, specifically to use MTOM in a...
0
1269
by: Tom | last post by:
When I am implementing MTOM in my web service using WSE 3.0. <s:element minOccurs="0" maxOccurs="1" name="buffer" type="s:base64Binary" /> The wsdl generated still refers to my buffer as...
0
1334
by: Tom | last post by:
Hi guys, I'd like to send a binary file to a web service using MTOM. Is it possible to encrypt the byte ? is it something I need to specify before I send it out ? or do I need to somehow...
8
4744
by: Default User | last post by:
I'm working on a research and development project involving binary XML. I've been reading lots about the new MTOM and XOP recommendations put out by W3. I'm interested in trying to find a toolset...
7
7499
by: russell.lane | last post by:
I've been looking at both MTOM and simple HTTP POST or PUT for file uploads. Some relevant details: ... We want to support programmatic file uploads from Winform apps. ... The files are large...
1
4059
by: Ollie Riches | last post by:
Hi, I am recieving an exception when adding support for MTOM to a web config file that is using WSE3.0 to talk to a web service. when the following section is added: <messaging> <mtom...
0
1427
by: nick.krasnikov | last post by:
Hello, As far as I understand, the WSE 3.0 provides some optimization of MTOM usage. I.e. even if MTOM is specified, but the size of data is less than 768 bytes, they are sent inline instead of...
1
8614
by: compurhythms | last post by:
I'm having an issue calling a java-based web service from a C#/.NET 2.0 client that uses WSE 3.0. (No WCF) There is an operation on the web service that takes a single base64 encoded parameter...
0
7105
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7308
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7023
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7479
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5037
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3178
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1534
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
410
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.