Click here to Skip to main content
15,909,822 members
Home / Discussions / C#
   

C#

 
GeneralXmlSerializer bhaviour Pin
mav.northwind26-Feb-05 21:27
mav.northwind26-Feb-05 21:27 
GeneralRe: XmlSerializer bhaviour Pin
Heath Stewart27-Feb-05 4:43
protectorHeath Stewart27-Feb-05 4:43 
GeneralRe: XmlSerializer bhaviour Pin
mav.northwind27-Feb-05 22:12
mav.northwind27-Feb-05 22:12 
GeneralChange TreeNode text at runtime Pin
oohungoo26-Feb-05 15:11
oohungoo26-Feb-05 15:11 
GeneralRe: Change TreeNode text at runtime Pin
Radgar26-Feb-05 16:45
Radgar26-Feb-05 16:45 
GeneralRe: Change TreeNode text at runtime Pin
Luis Alonso Ramos26-Feb-05 18:52
Luis Alonso Ramos26-Feb-05 18:52 
GeneralRe: Change TreeNode text at runtime Pin
Radgar27-Feb-05 6:39
Radgar27-Feb-05 6:39 
GeneralReference to undeclared parameter entity Pin
mantissaPuc26-Feb-05 13:07
mantissaPuc26-Feb-05 13:07 
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(XmlEntityReference 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.SoapPlainFormatter.Microsoft.Web.Services2.Messaging.ISoapFormatter.Deserialize(Stream stream)
at WebSemantica.SoapSmtp.Mailbox.EndReceive(IAsyncResult 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">julio@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">julio@ntime.com.br</ical:contact>
<ical:attende>
<rdf:Bag rdf:ID="vevent_ateende">
<rdf:li rdf:datatype="&xsd;string">kid@teccomm.les.inf.puc-rio.br</rdf:li><rdf:li rdf:datatype="&xsd;string">fred.kid@gmail.com</rdf:li><rdf:li rdf:datatype="&xsd;string">fsilva@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...)


GeneralRe: Reference to undeclared parameter entity Pin
Heath Stewart27-Feb-05 4:37
protectorHeath Stewart27-Feb-05 4:37 
GeneralApplication Variables Pin
DougW4826-Feb-05 12:55
DougW4826-Feb-05 12:55 
GeneralRe: Application Variables Pin
Colin Angus Mackay26-Feb-05 13:32
Colin Angus Mackay26-Feb-05 13:32 
GeneralRe: Application Variables Pin
S. Senthil Kumar26-Feb-05 13:45
S. Senthil Kumar26-Feb-05 13:45 
GeneralCreating invisible services Pin
Esmo200026-Feb-05 12:52
Esmo200026-Feb-05 12:52 
GeneralRe: Creating invisible services Pin
Colin Angus Mackay26-Feb-05 13:35
Colin Angus Mackay26-Feb-05 13:35 
GeneralRe: Creating invisible services Pin
Radgar26-Feb-05 16:53
Radgar26-Feb-05 16:53 
GeneralRe: Creating invisible services Pin
Colin Angus Mackay26-Feb-05 17:00
Colin Angus Mackay26-Feb-05 17:00 
GeneralRe: Creating invisible services Pin
Radgar26-Feb-05 17:26
Radgar26-Feb-05 17:26 
GeneralRe: Creating invisible services Pin
Mazdak27-Feb-05 4:50
Mazdak27-Feb-05 4:50 
GeneralRe: Creating invisible services Pin
Colin Angus Mackay27-Feb-05 7:04
Colin Angus Mackay27-Feb-05 7:04 
GeneraltextBox Pin
sardonicus26-Feb-05 12:03
sardonicus26-Feb-05 12:03 
GeneralRe: textBox Pin
S. Senthil Kumar26-Feb-05 12:44
S. Senthil Kumar26-Feb-05 12:44 
GeneralRe: textBox Pin
sardonicus27-Feb-05 3:19
sardonicus27-Feb-05 3:19 
GeneralRe: textBox Pin
S. Senthil Kumar27-Feb-05 7:16
S. Senthil Kumar27-Feb-05 7:16 
GeneralNTDll's Compression Functions Pin
Stanimir_Stoyanov26-Feb-05 11:52
Stanimir_Stoyanov26-Feb-05 11:52 
GeneralRe: NTDll's Compression Functions Pin
Heath Stewart27-Feb-05 4:25
protectorHeath Stewart27-Feb-05 4:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.