我试图通过改造和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">
然后身体等。
我如何摆脱类名?