改造Simplexml添加了classname t请求

时间:2018-03-15 11:36:40

标签: android xml soap retrofit2 simple-framework

我试图通过改造和simplexml来打电话。它确实有效,但是类名被添加到请求中。

课程:

    public class CheckVersionBody extends BaseRequestBody{

    @Element(name = "VersiyonKontrolGenel")
    @Namespace(reference = "http://asdasdasdasd.com/")
    private VersionControlGeneral versionControlGeneral;

    public CheckVersionBody(Object requestBody) {
        super(requestBody);
        this.versionControlGeneral = (VersionControlGeneral) requestBody;
    }
}
public class BaseRequestBody<T> {

    @Namespace(reference = "http://asdasdasdasd.com/")
    private T requestBody;

    public BaseRequestBody(T requestBody) {
        this.requestBody = requestBody;
    }
}

请求内容是:

<v:Body class="com.application.testapplication.networking.models.CheckVersionBody">

然后身体等。

我如何摆脱类名?

0 个答案:

没有答案