473,395 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

MTOM supports in WSE3.0 causes exception

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 clientMode="On" />
</messaging>

so that the WSE3.0 section is:

<microsoft.web.services3>
<policy fileName="wse3policyCache.config" />
<security>
<timeToleranceInSeconds value="86400" />
</security>
<messaging>
<mtom clientMode="On" />
</messaging>
</microsoft.web.services3>
I receive the following exception, without it, it does not fail.

Exception:

System.Web.Services.Protocols.SoapException: There was an exception running
the extensions specified in the config file. ---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 System.Xml.XmlCharCheckingReader.Read()
at System.Xml.XsdValidatingReader.Read()
at
Thinktecture.Tools.Web.Services.Extensions.Validat ionExtension.ProcessMessage(SoapMessage
message)
at System.Web.Services.Protocols.SoapMessage.RunExten sions(SoapExtension[]
extensions, Boolean throwOnException)
at System.Web.Services.Protocols.SoapServerProtocol.I nitialize()
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapServerProtocol.I nitialize()
at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing)
Anyone got any ideas?

Cheers in advance

Ollie Riches

Apr 12 '07 #1
1 4044
it appears this could be related to the use of WSCF and MTOM

Ollie

"Ollie Riches" <ol**********@hotmail.comwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
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 clientMode="On" />
</messaging>

so that the WSE3.0 section is:

<microsoft.web.services3>
<policy fileName="wse3policyCache.config" />
<security>
<timeToleranceInSeconds value="86400" />
</security>
<messaging>
<mtom clientMode="On" />
</messaging>
</microsoft.web.services3>
I receive the following exception, without it, it does not fail.

Exception:

System.Web.Services.Protocols.SoapException: There was an exception
running the extensions specified in the config file. --->
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 System.Xml.XmlCharCheckingReader.Read()
at System.Xml.XsdValidatingReader.Read()
at
Thinktecture.Tools.Web.Services.Extensions.Validat ionExtension.ProcessMessage(SoapMessage
message)
at
System.Web.Services.Protocols.SoapMessage.RunExten sions(SoapExtension[]
extensions, Boolean throwOnException)
at System.Web.Services.Protocols.SoapServerProtocol.I nitialize()
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapServerProtocol.I nitialize()
at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing)
Anyone got any ideas?

Cheers in advance

Ollie Riches

Apr 12 '07 #2

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

Similar topics

1
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
by: Stu | last post by:
I x-posted this in the enhancements group as well, looking for some help: Need help with a CAS issue with WSE3. Enable an asp.net2 webapp to use WSE3. Create a new webservice in the app via...
0
by: David G | last post by:
I have a web service originally written to use soap.tcp transport in WSE2 that now uses http transport under WSE3. The WSE2 method looked like public IndividualLookupResponse...
0
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...
0
by: jcvoon | last post by:
Hi all: The application is a WinForm application which will invoke the Web Services host in the same development machine, the WSE policy is setup properly and it is configure to use...
0
by: =?Utf-8?B?UGV0ZXIgR2lsbGhhbQ==?= | last post by:
I have created a Web services using WSE3 which seems OK and works fine, created the client using "wsewsdl3.exe soap.tcp://ServerName/tcpRTSServerservice /out:proxy.cs /n:Namespace /type:webClient"...
0
by: tovbinm | last post by:
When I'm trying to send rapidly (50-100 msgs in a row, while each one ~100kb) to the service that is configured with the next configuration: <system.serviceModel> <bindings>...
1
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
by: rjreynolds | last post by:
I have large data > 500MB that I want to send to a webservice that I've MTOM-enabled. I've tried the various WSE 3.0 MTOM samples, but all of them require loading the entire data into a byte which...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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...

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.