Instead of pushing object
[ServiceContract(Namespace = "int:")]
[XmlSerializerFormat]
public interface IUsersService
{
[OperationContract]
[FaultContract(typeof(SoapResponse))]
Task<GetUserSomethingResponse> GetUserSomething(GetUserSomethingQuery query);
}
Separating each parameter and delivering it into constructor with X amount of properties helped.
///Interface
[OperationContract]
[FaultContract(typeof(SoapResponse))]
Task<GetUserSomethingResponse> GetUserSomething(string username, string id, bool archive);
///Implementation Method
public async Task<GetUserSomethingQueryResponse> GetUserSomethingQuery(string username, string id, bool archive)
=> await mediator.Send(new GetUserSomethingQuery(username, id, archive));