Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新版本3.3.0http返回xml就回调到onFailure 里面了 但是xml是正常数据正常返回的 #511

Closed
1226362423 opened this issue Oct 12, 2024 · 7 comments

Comments

@1226362423
Copy link

No description provided.

@1226362423
Copy link
Author

1226362423 commented Oct 12, 2024

RxHttp.postBody()
    .setBody(wfsBody, Param.HTTP_CONTENT_TYPE.toMediaType())
    .toAwaitString()
    .awaitResult {
                    
    }
    .onFailure {
                   
    }

@liujingxing
Copy link
Owner

贴出返回数据及日志

@1226362423
Copy link
Author

1226362423 commented Oct 12, 2024

返回数据

<?xml version="1.0" encoding="UTF-8"?>
<wfs:TransactionResponse
    xmlns:xs=""
    xmlns:wfs="http://www.opengis.net/wfs"
    xmlns:gml="http://www.opengis.net/gml"
    xmlns:ogc="http://www.opengis.net/ogc"
    xmlns:ows="http://www.opengis.net/ows"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:xsi="" version="1.1.0" xsi:schemaLocation="">
    <wfs:TransactionSummary>
        <wfs:totalInserted>0</wfs:totalInserted>
        <wfs:totalUpdated>1</wfs:totalUpdated>
        <wfs:totalDeleted>0</wfs:totalDeleted>
    </wfs:TransactionSummary>
    <wfs:TransactionResults/>
    <wfs:InsertResults>
        <wfs:Feature>
            <ogc:FeatureId fid="none"/>
        </wfs:Feature>
    </wfs:InsertResults>
</wfs:TransactionResponse>

@liujingxing
Copy link
Owner

贴上日志,看看啥异常

@1226362423
Copy link
Author

1226362423 commented Oct 12, 2024

3.2.7没问题 3.3.0有问题 代码没动 我用string按理可以让接收任意string吧 这直接转json 又不是所有请求都会返回json

image

@liujingxing
Copy link
Owner

看了下,是有问题,3.3.0版本改一个需求引起的,这样看来,应该是要还原回去

@liujingxing
Copy link
Owner

v3.3.1版本已更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants