gpt4 book ai didi

ruby-on-rails - Delphi 上的 Web 服务错误

转载 作者:太空宇宙 更新时间:2023-11-03 16:26:32 24 4
gpt4 key购买 nike

我尝试在 上创建一个 WebService 客户端, what 接收到一个 String,但是当它得到响应时给出一个错误

error class EDOMParseError with message "Invalid at the top level of the document" Line: 0 '.

我的 String

'
I8,A,001
Q400,024
q863
rN
S3
D7
ZT
JF
O
R231,0
f100
N
A63,353,0,3,1,2,N,'www.zebrashop.com.br'
A17,10,0,3,2,2,N,'Linguagem EPL'
B43,123,0,1,2,6,160,B,'11 3526-5909'
P1
'

我的 功能是

procedure TForm2.btn1Click(Sender: TObject);
var teste : impressao_port;
xmld : TXMLDocument;
i : Integer;
begin
teste := Getimpressao_port();
xmld := teste.imprimir;
mmo1.Text := xmld.XML[0];
end;

我正在使用 到服务器。

最佳答案

问题一定在应用程序,出现此错误是因为您尝试使用 XML 并且服务器正在返回 String

关于ruby-on-rails - Delphi 上的 Web 服务错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23876061/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com