Hello people, this must simple for most. How do I handle in a simple form a TXMLData? I have access to consume a webserver, so I have a method that returns a table. I need to read data attributes but I am missing something, I've done like:
Hello people, this must simple for most. How do I handle in a simple form a TXMLData? I have access to consume a webserver, so I have a method that returns a table. I need to read data attributes but I am missing something, I've done like:
with (HTTPRIO1 as ServiceSoap) do
begin
xdata := TXMLData.Create;
xdata := readTheTable(params);
.
.
.
xdata.Free;
end;
I can just get the xsd structure info, not the data itself.
with (HTTPRIO1 as ServiceSoap) do
begin
xdata := TXMLData.Create;
xdata := readTheTable(params);
.
.
.
xdata.Free;
end;
I can just get the xsd structure info, not the data itself.
Have you tried Google https://www.google.se/search?q=delphi+soap+txmldata
ReplyDeleteYes, sure. On the HTTPRIO1AfterExecute that I forgot to mention, I have the code to run the list.
ReplyDeleteI can see the data if on the SOAPResponse, move that to the XMLDocument but I can never get any attribute. I have similar code that works fine but this case seems to be diferent for me, even its common, this is the 1st time I have a xml response with xsd structure so I must be missing something.
Try to ask on stackoverflow.com and be very specific with code. Tag it with delphi and xml tags. Usually I got good answers on my questions.
ReplyDeleteThank you Roland! I will ask there :)
ReplyDeleteDue deadline I made a recursive parser and solved it, it's not an orthodox approach but I was out of options.
ReplyDelete