473,320 Members | 1,896 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,320 software developers and data experts.

Reference to undeclared parameter entity

Hi,
I'm trying to use the Microsoft.Web.Services2.Messaging.
ISoapFormatter

but I receive this error:
System.Xml.XmlException: Reference to undeclared parameter entity,
'meetingmaker'.
at System.Xml.XmlLoader.ExpandEntityReference(XmlEnti tyReference eref)
at System.Xml.XmlEntityReference.SetParent(XmlNode node)
at System.Xml.XmlNode.AppendChild(XmlNode newChild)
at System.Xml.XmlLoader.LoadAttributeChildren(XmlNode parent)
at System.Xml.XmlLoader.LoadAttributeNode()
at System.Xml.XmlLoader.LoadCurrentNode()
at System.Xml.XmlLoader.LoadElementNode()
at System.Xml.XmlLoader.LoadCurrentNode()
at System.Xml.XmlLoader.LoadChildren(XmlNode parent)
at System.Xml.XmlLoader.LoadElementNode()
at System.Xml.XmlLoader.LoadCurrentNode()
at System.Xml.XmlLoader.LoadChildren(XmlNode parent)
at System.Xml.XmlLoader.LoadElementNode()
at System.Xml.XmlLoader.LoadCurrentNode()
at System.Xml.XmlLoader.LoadChildren(XmlNode parent)
at System.Xml.XmlLoader.LoadElementNode()
at System.Xml.XmlLoader.LoadCurrentNode()
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at Microsoft.Web.Services2.SoapEnvelope.Load(Stream stream)
at
Microsoft.Web.Services2.Messaging.SoapPlainFormatt er.Microsoft.Web.Services2.Messaging.ISoapFormatte r.Deserialize
(Stream stream)
at WebSemantica.SoapSmtp.Mailbox.EndReceive(IAsyncRes ult result) in c:\
wsf-projeto+final-julio\wsf-projeto final\websemantica\zutil-soapsmtp\
mailbox.cs:line 308
----------------------------------------------------------
the code I'm using is (line 308 is the last line):

UTF8Encoding encoding = new UTF8Encoding();
SimpleMailMessage m = messagesArray[i];
ISoapFormatter formatter = new SoapPlainFormatter();
MemoryStream stream = new MemoryStream( encoding.GetBytes( m.TextDataString
) );
stream.Position = 0;
envelopes[i] = formatter.Deserialize( stream );
----------------------------------------------------------
if I print the xml (the "m.TextDataString") the result is:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rdf:RDF [
<!ENTITY meetingmaker "http://websemantica.puc-
rio.br/2004/06/meetingmaker/meetingmaker#">
<!ENTITY ical "http://www.w3.org/2002/12/cal/ical#">
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#">
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#">
]>
<soap:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-
wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-
open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsa:Action>InvokeCoordinator</wsa:Action><wsa:MessageID>uuid:d905eba6-
7ed8-420d-a297-
b8625751f63c</wsa:MessageID><wsa:To>urn:websemanticaproxy</wsa:To><wsse:Security><wsu:Timestamp
wsu:Id="Timestamp-71318c38-b4e8-46a5-af91-72348be37458"><wsu:Created>2005-
02-27T00:12:47Z</wsu:Created><wsu:Expires>2005-02-
27T00:17:47Z</wsu:Expires></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><string
xmlns="http://tempuri.org/">
<rdf:RDF
xmlns:meetingmaker="&meetingmaker;"
xmlns:ical="&ical;"
xmlns:rdf="&rdf;"
xmlns:rdfs="&rdfs;"
xmlns:xsd="&xsd;"

<meetingmaker:MeetingMaker rdf:ID="meetingmaker_id">
<meetingmaker:criteria
rdf:datatype="&xsd;string">majority</meetingmaker:criteria>
<meetingmaker:algorithm
rdf:datatype="&xsd;string">parallel</meetingmaker:algorithm>
<meetingmaker:uid rdf:datatype="&xsd;string">ju***@ntime.com.br-02-26-
2005 09:12:45</meetingmaker:uid>
<meetingmaker:vevent>
<ical:Vevent rdf:ID="vevent_id">
<ical:location rdf:datatype="&xsd;string">Puc</ical:location>
<ical:summary rdf:datatype="&xsd;string">Apresentacao de
Trabalho</ical:summary>
<ical:dtstart rdf:datatype="&xsd;datetime">12-10-2004
10:00:00</ical:dtstart>
<ical:dtend rdf:datatype="&xsd;datetime">12-10-2004
11:00:00</ical:dtend>
<ical:contact
rdf:datatype="&xsd;string">ju***@ntime.com.br</ical:contact>
<ical:attende>
<rdf:Bag rdf:ID="vevent_ateende">
<rdf:li rdf:datatype="&xsd;string">ki*@teccomm.les.inf.puc-
rio.br</rdf:li><rdf:li
rdf:datatype="&xsd;string">fr******@gmail.com</rdf:li><rdf:li
rdf:datatype="&xsd;string">fs****@inf.puc-rio.br</rdf:li>
</rdf:Bag>
</ical:attende>
</ical:Vevent>
</meetingmaker:vevent>
</meetingmaker:MeetingMaker>
</rdf:RDF></string></soap:Body></soap:Envelope>

(whitch is a valid XML, at least the Internet explorer open it...)

--
Message posted via http://www.dotnetmonster.com
Nov 16 '05 #1
0 2791

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

Similar topics

2
by: David Dorward | last post by:
I'm attempting to read an XHTML 1.1 file, perform some DOM manipulation, then write the results to a different file. I've found myself rather stuck at the first hurdle. I have the following: ...
1
by: Romeo Disca | last post by:
Hello newsgroup, i'm new to xml - what's wrong with this piece code here? i have these two files: test.xml ---- <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE a SYSTEM "test.ent"
4
by: Per | last post by:
Hi, I'm struggling with the DocBook XML DTD, which can be found at http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd. But this DTD seems to somehow include some other documents. E.g.: ...
1
by: Ion Chalmers Freeman | last post by:
Um, I think XMLSPY is wrong about this, but it was surprising, so I wanted to check. my dtd has <!ENTITY % en "value"> and <!ATTLIST element attribute CDATA #FIXED "%en;"> so, when I generate...
12
by: JKop | last post by:
template<class T> inline T& NthArrayMember( T & (array),size_t i) { return array; } template<class T> inline const T& NthArrayMember( const T & (array),size_t i) { return array;
4
by: Chris Beall | last post by:
If you want your code to be bulletproof, do you have to explicitly check for the existence of any possibly-undefined variable? Example: window.outerHeight is defined by some browsers, but not...
1
by: STech | last post by:
I have an instance of an XmlDocument. I am using the Load method to load some xml data but get the error message "Reference to undeclared parameter entity". Here is the xml data <data> <items>...
4
by: Pritcham | last post by:
Hi all I've got a number of classes already developed (basic entity classes) like the following: Public Class Contact Private _firstname as String Private _age as Integer Public Property...
2
by: raylopez99 | last post by:
I'm having problems compiling complex reference declarations in MSVC++.NET 2002 IDE. Here is an example: // --Foo.h-- #include "Bar.h" class Bar; //forward decl. to a class Bar in...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.