Puzzling SOAP Error...

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: charlie (spamnongrata_at_yahoo.com)
Date: 04/29/04


Date: 29 Apr 2004 12:31:48 -0700

Hi,

I am getting a very puzzling error when I execute some services
written in C#. This message is actually fairly infrequent and occurs
on a couple of machines more often than others (usually servers
running Win2000). The message indicates that the SOAP message is
being modified before it is read. This is very odd since I don't ever
manually massage any of the SOAP flowing into or out of the Services.
I can't find anything relating to this exact message so any insight
that anyone could provide would be greatly appreciated. Here is the
message as it is returned:

System.Web.Services.Protocols.SoapException: The root element for the
request could not be determined. When RoutingStyle is set to
RequestElement, SoapExtensions configured via an attribute on the
method cannot modify the request stream before it is read. The
extension must be configured via the SoapExtensionTypes element in
web.config, or the request must arrive at the server as clear text.
--> The root element is missing.
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
   at RQ.WebModules.TCntrl.RQSoapSrvc.LoginWithTokenTC(String
validateToken) in C:\RQ\RQLibraries\Core\Web
References\TCntrl\Reference.cs:line 111
   at RQ.WebModules.SecServices.Token.LoginWithTokenRQ(String token,
String dbName, String connectionString) in
C:\RQ\RQLibraries\SecServices\Token.cs:line 219
   at PCServices.Initialized(KeyInfo keyInfo) in
c:\inetpub\wwwroot\rqtcservices\services\rqpcsoapsrvc.asmx.cs:line
1966
   at PCServices.GetOrders(KeyInfo keyInfo, OrderSearchCriteria
searchCriteria, RequestFilter reqFilter) in
c:\inetpub\wwwroot\rqtcservices\services\rqpcsoapsrvc.asmx.cs:line 273

Again, any insight would be most welcome.
Charlie