我正在使用SOAP协议从使用Matlab代码的网站获取响应。我的代码如下
newsentence = [n.replace('1', 'I') for n in sentence]
newsentence = [n.replace('1a', 'we') for n in sentence]
newsentence = [n.replace('2', 'put') for n in newsentence]
newsentence = [n.replace('3', 'this') for n in newsentence]
newsentence = [n.replace('4', 'here') for n in newsentence]
当我运行此代码时,发生错误如下:
'只允许在其方法中访问对象的字段'
我该如何解决这个问题?
当我使用' https://www.zarinpal.com/pg/services/WebGate/service'替换PaymentRequest中的obj.endpoint时,会发生另一个错误,如下所示:
' java.net.SocketException:连接重置'