I have this controller
[Route("api/[controller]")]
public class OptOutClientController : Controller
{
HttpClient client = new HttpClient();
private readonly IOptOutService _service;
public OptOutClientController(IOptOutService service)
{
_service = service;
}
[HttpPost]
public OptOutCliente Unsubscribe([FromBody]OptOutCliente cliente)
{
if (cliente == null)
throw new OptOutException("Informar os dados do cliente OptOut!");
var valida = _service.Process(cliente);
BasicHttpBinding httpBinding = new BasicHttpBinding();
EndpointAddress wsUrl = new
EndpointAddress("http://localhost:64460/myservicio.asmx");
//ServicoWSClient soapClient = new ServicoWSClient(httpBinding, wsUrl);
return cliente;
}
}
the client parameter that comes from another service, I need to send it to another asmx service. How do I do this?