package com.bxzk.afxj.retrofit;



import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

public interface MyXmlRetroService {

    @Headers({
            "Content-Type: text/xml; charset=utf-8",
            "SOAPAction: http://tempuri.org/UserLogin"
    })
    @POST("WebServiceForPDA.asmx/UserLogin")
    Call<ResponseBody> login1(@Body String loginWebBeanIn);
//    Observable<RequestBody> login(@FieldMap Map<String,String> params);
//    Observable<LoginWebBeanIn> login(@FieldMap Map<String,String> params);

    @Headers({
            "Content-Type: text/xml; charset=utf-8",
            "SOAPAction: http://tempuri.org/UserLogin"
    })
    @POST("WebServiceForPDA.asmx/UserLogin")
    Observable<ResponseBody> login(@Body String loginWebBeanIn);
    @Headers({
            "Content-Type: text/xml; charset=utf-8",
            "SOAPAction: http://tempuri.org/UserLogin"
    })
    @POST("WebServiceForPDA.asmx/UserLogin")
    Observable<ResponseBody> login(@Body RequestBody loginWebBeanIn);

    @POST("WebServiceForPDA.asmx")
    Observable<RequestBody> hello();
}
