Java 安卓使用改造库将post方法中的多参数发送到WCF服务?

Java 安卓使用改造库将post方法中的多参数发送到WCF服务?,java,android,wcf,retrofit,Java,Android,Wcf,Retrofit,我应该用post方法发送4个参数 [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, UriTemplate = "CustomerInsertPost/{Username}/{Password}/{lan}/{Cust}")] int CustomerInsertPost(stri

我应该用post方法发送4个参数

[WebInvoke(Method = "POST",
       ResponseFormat = WebMessageFormat.Json,
       BodyStyle = WebMessageBodyStyle.Wrapped,
       UriTemplate = "CustomerInsertPost/{Username}/{Password}/{lan}/{Cust}")]
    int CustomerInsertPost(string Username, string Password, string lan, string Cust);
通过使用翻新库

问题是,此“CustomerInsertPost”的改型后格式是什么

上的第一个示例是

公共接口服务{
@获取(“用户/{user}/repos”)
调用listRepos(@Path(“user”)字符串user);
}

如果这也适用于POST请求,那么您就快到了

插入错误:com.squareup.okhttp.ResponseBody错误请求'@GET(“CustomerInsertPost/{Username}/{Password}/{lan}/{Cust}”)调用customerInsert(@Path(“Username”)String Username,@Path(“Password”)String Pass,@Path(“lan”)String lan,@Path(“Cust”)String customer);'
public interface GitHubService {
  @GET("users/{user}/repos")
  Call<List<Repo>> listRepos(@Path("user") String user);
}