我尝试使用Retrofit 2.0将Soap Request作为String发送,但它总是添加myrequestString。 你知道如何通过Retrofit 2.0发送String SoapUI格式吗?
这是我的代码: 的 MyService.java:
@Headers({
"Content-Type: text/xml"
})
@POST
Call<ResponseBody> loadRepo(@Url String url,@Body String body);
发送请求的字符串:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="">
<soapenv:Header/>
<soapenv:Body>
<web:ValidateLink>
<Request>
...
请求实际:
<string><?xml version='1.0' encoding='UTF-8' standalone='yes' ?><soapenv:Envelope xmlns:au
...
;/soapenv:Body></soapenv:Envelope></string>
请求预期:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="">
<soapenv:Header/>
<soapenv:Body>
<web:ValidateLink>
<Request>