I think it's an error in the config but I do not know what it could be, since the parameters are being sent correctly, and SOAPUI is able to consume perfectly. I attached the appconfig.
The error thrown is: System.ArgumentException: The provided URI scheme 'https' is invalid; expected 'http'.Parameter name: via at System.ServiceModel.Channels.TransportChannelFactory
1.ValidateScheme (Uri via) at System.ServiceModel.Channels.HttpChannelFactory 1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via) at System.ServiceModel.Channels.HttpChannelFactory
1.OnCreateChannelCore (EndpointAddress remoteAddress, Uri via) at System.ServiceModel.Channels.ChannelFactoryBase 1.InternalCreateChannel(EndpointAddress address, Uri via) at System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via) at System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via) at System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via) at System.ServiceModel.ChannelFactory
1.CreateChannel (EndpointAddress address, Uri via) at System.ServiceModel.ClientBase 1.CreateChannel() at System.ServiceModel.ClientBase
1.CreateChannelInternal () at System.ServiceModel.ClientBase 1.get_Channel() at WSPLebrija.Service1.MPUESTO_PREDIAL_UNIFICADOPortTypeClient.consultaDeuda(String cadena) at WSPLebrija.Predial.PredialUserControl.ConsumingWS()
config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="IMPUESTO_PREDIAL_UNIFICADOBinding">
<security mode="Transport" />
</binding>
<binding name="IMPUESTO_PREDIAL_UNIFICADOBinding1" />
<binding name="IMPUESTO_PREDIAL_UNIFICADOBinding2">
<security mode="Transport" />
</binding>
<binding name="IMPUESTO_PREDIAL_UNIFICADOBinding3" />
<binding name="IMPUESTO_PREDIAL_UNIFICADOBinding4">
<security mode="Transport" />
</binding>
<binding name="IMPUESTO_PREDIAL_UNIFICADOBinding5" />
</basicHttpBinding>
</bindings>
<client>
<endpoint address="https://pruebaseco.delfineco.com:443/ws-predio/servicio1.php"
binding="basicHttpBinding" bindingConfiguration="IMPUESTO_PREDIAL_UNIFICADOBinding"
contract="Service1.IMPUESTO_PREDIAL_UNIFICADOPortType" name="IMPUESTO_PREDIAL_UNIFICADOPort" />
<endpoint address="https://pruebaseco.delfineco.com:443/ws-predio/servicio2.php"
binding="basicHttpBinding" bindingConfiguration="IMPUESTO_PREDIAL_UNIFICADOBinding2"
contract="Service2.IMPUESTO_PREDIAL_UNIFICADOPortType" name="IMPUESTO_PREDIAL_UNIFICADOPort1" />
<endpoint address="https://pruebaseco.delfineco.com:443/ws-predio/servicio3.php"
binding="basicHttpBinding" bindingConfiguration="IMPUESTO_PREDIAL_UNIFICADOBinding4"
contract="Service3.IMPUESTO_PREDIAL_UNIFICADOPortType" name="IMPUESTO_PREDIAL_UNIFICADOPort2" />
</client>
</system.serviceModel>
</configuration>