Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ServiceStack.WebServiceException: The provided URI scheme 'https' is invalid; ex
- pected 'http'.
- Parameter name: via ---> System.ArgumentException: The provided URI scheme 'http
- s' is invalid; expected 'http'.
- Parameter name: via
- at System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelPar
- ameters(EndpointAddress remoteAddress, Uri via)
- at System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannelCore(Endp
- ointAddress remoteAddress, Uri via)
- at System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(En
- dpointAddress address, Uri via)
- at System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOv
- erRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
- at System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(En
- dpointAddress address, Uri via)
- at System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type chan
- nelType, 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 ServiceStack.WcfServiceClient.Send(Message message)
- at ServiceStack.WcfServiceClient.Send[T](Object request)
- --- End of inner exception stack trace ---
- at ServiceStack.WcfServiceClient.Send[T](Object request)
- at ElectronicServiceInterface.ESIClient.Login()
- using (var client = new Soap12ServiceClient(Uri))
- {
- var request = new MyRequestObject { Username = Username, Password = Password };
- var response = client.Send<MyResponseObject>(request);
- }
- <bindings>
- <basicHttpBinding>
- <binding name="Endpoint_BasicHttpBinding" />
- </basicHttpBinding>
- <wsHttpBinding>
- <binding name="Endpoint_WsHttpBinding">
- <security mode="None">
- <transport clientCredentialType="None" />
- <message establishSecurityContext="false" />
- </security>
- </binding>
- </wsHttpBinding>
- </bindings>
- <bindings>
- <basicHttpBinding>
- <binding name="Endpoint_BasicHttpBinding" />
- </basicHttpBinding>
- <wsHttpBinding>
- <binding name="Endpoint_WsHttpBinding">
- <security mode="None">
- <transport clientCredentialType="None" />
- <message establishSecurityContext="false" />
- </security>
- </binding>
- </wsHttpBinding>
- </bindings>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement