473,672 Members | 3,241 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The root element is missing and soapExtension

Hi I'm using the example posted on Ron Howard's site for encryting the
body of an xml file located at http://www.gotdotnet.com/team/rhoward/
I'm running into trouble where i'm getting an error of this type:

System.Web.Serv ices.Protocols. SoapException: Server was unable to
process request. ---> System.Xml.XmlE xception: The root element is
missing. at System.Xml.XmlT extReader.Read( ) at
System.Xml.XmlR eader.MoveToCon tent() at
System.Web.Serv ices.Protocols. SoapServerProto colHelper.GetHe lper(SoapServer Protocol
protocol) at System.Web.Serv ices.Protocols. SoapServerProto col.ReadParamet ers()
at System.Web.Serv ices.Protocols. WebServiceHandl er.Invoke() at
System.Web.Serv ices.Protocols. WebServiceHandl er.CoreProcessR equest()
--- End of inner exception stack trace ---

Does anyone have experience doing encryption of xml file via use of
soapextensions? I'm using the code directly from this example and
it's not working.
Nov 21 '05 #1
2 9907
Hi,

Is this the error thrown by the client? Or by the server? This kind of
error can happen if you aren't careful to manage the copy/assignment of the
in-out streams in both directions in you Soap Extension

Hope this helps

Dan Rogers
Microsoft Corporation
--------------------
From: co******@yahoo. com (cordata5)
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Subject: The root element is missing and soapExtension
Date: 18 Nov 2004 12:12:48 -0800
Organization: http://groups.google.com
Lines: 17
Message-ID: <b4************ **************@ posting.google. com>
NNTP-Posting-Host: 63.251.233.249
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google. com 1100808768 14447 127.0.0.1 (18 Nov 2004
20:12:48 GMT)
X-Complaints-To: gr**********@go ogle.com
NNTP-Posting-Date: Thu, 18 Nov 2004 20:12:48 +0000 (UTC)
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTFE ED01.phx.gbl!TK 2MSFTNGP08.phx. gbl!newsfeed00. s
ul.t-online.de!t-online.de!news. glorb.com!postn ews.google.com! not-for-mail
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :7546
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices

Hi I'm using the example posted on Ron Howard's site for encryting the
body of an xml file located at http://www.gotdotnet.com/team/rhoward/
I'm running into trouble where i'm getting an error of this type:

System.Web.Serv ices.Protocols. SoapException: Server was unable to
process request. ---> System.Xml.XmlE xception: The root element is
missing. at System.Xml.XmlT extReader.Read( ) at
System.Xml.XmlR eader.MoveToCon tent() at
System.Web.Serv ices.Protocols. SoapServerProto colHelper.GetHe lper(SoapServer P
rotocol
protocol) at
System.Web.Serv ices.Protocols. SoapServerProto col.ReadParamet ers()
at System.Web.Serv ices.Protocols. WebServiceHandl er.Invoke() at
System.Web.Serv ices.Protocols. WebServiceHandl er.CoreProcessR equest()
--- End of inner exception stack trace ---

Does anyone have experience doing encryption of xml file via use of
soapextensions? I'm using the code directly from this example and
it's not working.

Nov 21 '05 #2
ochampet
1 New Member
Im getting the same error. I can see that my soapextension is decrypting the soap message on the Server. I can see that the soapMessage message contains the right information. However the process skips the AfterDeserializ e and the call to the webmethod and goes directly to BeforeSerialize on the server. Did you figure out what was the problem

My Decrypt function copies the decrypted message to newStream.
Jul 27 '06 #3

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

Similar topics

6
8339
by: David B. Bitton | last post by:
I am having a problem deserializing XML when the root node is missing a namespace declaration. My Type has an XmlTypeAttribute with a namespace defined. If I attempt to deserialize the XML, I get the dreaded <elementname xmlns=''> was not expected exception. If I comment out the XmlTypeAttribute, it works just fine. Just so you know, when I instantiate an instance of an XmlSerializer, I pass a default namespace to the ctor. ...
4
13775
by: Cheryl Gilbert | last post by:
I'm sending xml to a web service by building a string dynamically. When my web service tries to validate the xml with a schema, I'm getting the error "the root element is missing". If I use an xml file saved to disk, I don't get an error. Does anyone know what the problem could be? - Cheryl Public Function ValidateXML(ByVal sXML As String) As String
5
8061
by: Paul Nations | last post by:
I'm in a real pickle. I've inherited a project with major problems. It receives encrypted XML files from a website not under my control (so I can't modify the web app) for insertion into a database. I'm under intense pressure to get the data into the database NOW. I can decrypt the files alright and they look like xml, they'll import into Access 2K3 with no problem, but VB.Net will not read them. It's complaining about no root...
3
16288
by: Samem N via DotNetMonster.com | last post by:
Does anyone know how to solve this error? I dont know where it went wrong. Any help would be appreciated .Thanks ERROR ______ Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
9
6641
by: MR | last post by:
I get the following Exception "The data at the root level is invalid. Line 1, position 642" whenever I try to deserialize an incoming SOAP message. The incoming message is formed well and its length is 642 bytes ( I have appended it to the end of this message). I suspect that the reason may have something to do with an incorrect declaration of which class to de-serialize to. In the attached code I substituted @@@@@@@ in the code below with...
0
1734
by: thatsMaBoy | last post by:
Hi, I have a VB.NET 2003 web service client (EXE) that makes use of a SOAPExtension class. The client calls a web service that returns a SOAP message containing MIME encoded files. The SOAPExtension intecepts the SOAP message and extracts the MIME, before passing on the rest of the SOAP message to the client so it can process the remainder of the data within the SOAP message. My problem is that I have taken over the project from a...
2
2876
by: Scott Emick | last post by:
I am still having issues with getting Root Element Missing instead of the actual error that the webservice call is supposed to be returning. I'm using VB .Net 2003. Has anyone else been able to get around what seems like a bug in the dotnet framework? Scott Emick
1
5754
by: Tomas | last post by:
When I try to load my xslt i get an xml exception with the message "Root element is missing". The stylesheet works when I preview it in stylus studio, but apparently not in my application. Any ideas what may be wrong? The stylesheet: <?xml version="1.0" encoding="utf-8"?> <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:output indent="yes"/>
0
1564
by: Dave Hill | last post by:
Forgive a newbie question. I'm learning the .NET XML environment. In the walkthrough on using XML designer to create an xsd, there is no discussion of the root element of the target xml document. I realize that the namespace specifying the xsd is an attribute of the root element of an xml document conforming to the xsd, so is logically outside the xsd. I built a simple schema, then added an XML document, added a root element to the...
0
8419
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8945
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8846
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8697
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7475
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6255
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4242
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2093
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.