dotnet web services enhancements:
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.ParseRootLevelWhitespace()
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.ValidationExtension.ProcessMessage(SoapMessage
message)
at System.Web.Services.Protocols.SoapMessage.RunExtensions(SoapExtension[]
extensions, Boolean throwOnException)
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
HttpContext context, HttpRequest request, HttpResponse response, Boolean&
abortProcessing)
Anyone got any ideas?
Cheers in advance
Ollie Riches