Flutter:删除根据请求发送的肥皂信封

问题描述

ASMX Web 服务正在返回 JSON 响应,其中包含在请求中发送的soap 信封。为什么会这样?。有什么方法可以只接收 JSON 吗?相同的邮递员帖子工作正常。

{"name":"gonzalo","job":"programador","id":"A7866","createdAt":"2021-06-23T13:00:52.5194-07:00"}<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><HelloFlutterResponse xmlns="http://tempuri.org/" /></soap:Body></soap:Envelope>
Error: FormatException: SyntaxError: Unexpected token < in JSON at position 96

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)