Groups > Borland > Dellphi web services soap > Re: reading SOAP XML




reading SOAP XML

reading SOAP XML
Sat, 12 Apr 2008 11:32:07 -040
Hi everyone, my name is Luc, I've been building a delphi project sending 
SOAP and reading the answer and it works thanks to Bruneau from this forum 
(Jean-Marie Babet) but I have one more question.

When I read the soap answer with SOAPHTTPTrans, it's a stringlist but, in 
order to read a XML I have to save the stringlist to a xml file (savetofile) 
and read it from there, is there a way for me to read the answer directly 
from the stringlist without creating any file?

This is part of the code I use to read the XML answer file, 'doc' is a 
IXMLDOMDocument and 'nlist' is a IXMLDOMNodelist.    I haven't been able to 
load a stringlist into the IXMLDOMDocument and get the result with 
Get_nodeValue.
doc.load('c:\test.xml');

nlist1.Get_item(j).Get_nodeValue

Maybe there's a better way to read XML result but this is what I have found 
so far.

Post Reply
Re: reading SOAP XML
Sun, 13 Apr 2008 12:04:33 -070
Hello,

> is there a way for me to read the answer directly
> from the stringlist without creating any file?

You can load the data coming back from a SOAP request directly into an XML
dom without going through a file. That's what the SOAP runtime does. Can you
give me a little context? Are you using the TLinkedRIO component, or are you
catching the AfterExecute event? If I have the context, I can suggest an
approach.

Cheers,

Bruneau.

Post Reply
about | contact