Advertisement
Guest User

Untitled

a guest
Jan 28th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. ServiceStack.WebServiceException: The provided URI scheme 'https' is invalid; ex
  2. pected 'http'.
  3. Parameter name: via ---> System.ArgumentException: The provided URI scheme 'http
  4. s' is invalid; expected 'http'.
  5. Parameter name: via
  6. at System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelPar
  7. ameters(EndpointAddress remoteAddress, Uri via)
  8. at System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannelCore(Endp
  9. ointAddress remoteAddress, Uri via)
  10. at System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(En
  11. dpointAddress address, Uri via)
  12. at System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOv
  13. erRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
  14. at System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(En
  15. dpointAddress address, Uri via)
  16. at System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type chan
  17. nelType, EndpointAddress address, Uri via)
  18. at System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address
  19. , Uri via)
  20. at System.ServiceModel.ClientBase`1.CreateChannel()
  21. at System.ServiceModel.ClientBase`1.CreateChannelInternal()
  22. at System.ServiceModel.ClientBase`1.get_Channel()
  23. at ServiceStack.WcfServiceClient.Send(Message message)
  24. at ServiceStack.WcfServiceClient.Send[T](Object request)
  25. --- End of inner exception stack trace ---
  26. at ServiceStack.WcfServiceClient.Send[T](Object request)
  27. at ElectronicServiceInterface.ESIClient.Login()
  28.  
  29. using (var client = new Soap12ServiceClient(Uri))
  30. {
  31. var request = new MyRequestObject { Username = Username, Password = Password };
  32. var response = client.Send<MyResponseObject>(request);
  33. }
  34.  
  35. <bindings>
  36. <basicHttpBinding>
  37. <binding name="Endpoint_BasicHttpBinding" />
  38. </basicHttpBinding>
  39. <wsHttpBinding>
  40. <binding name="Endpoint_WsHttpBinding">
  41. <security mode="None">
  42. <transport clientCredentialType="None" />
  43. <message establishSecurityContext="false" />
  44. </security>
  45. </binding>
  46. </wsHttpBinding>
  47. </bindings>
  48.  
  49. <bindings>
  50. <basicHttpBinding>
  51. <binding name="Endpoint_BasicHttpBinding" />
  52. </basicHttpBinding>
  53. <wsHttpBinding>
  54. <binding name="Endpoint_WsHttpBinding">
  55. <security mode="None">
  56. <transport clientCredentialType="None" />
  57. <message establishSecurityContext="false" />
  58. </security>
  59. </binding>
  60. </wsHttpBinding>
  61. </bindings>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement