F# Type Provider for WSDL and BasicHttpBinding

前端 未结 1 1136
-上瘾入骨i
-上瘾入骨i 2021-01-19 21:23

When I use a WSDL service in C# I am able to pass two parameters to the constructor; BasicHttpBinding and EndpointAddress



        
相关标签:
1条回答
  • 2021-01-19 22:25

    simplified data context (that is created via T.GetDataContext()) exposes only parameterless constructor and constructor that accepts EndpointAddress. If you want to setup bindings manually - you can instantiate client class directly (it should be located inside ServiceTypes) i.e.:

    type WSDL = Microsoft.FSharp.Data.TypeProviders.WsdlService< @"http://www.webservicex.net/RealTimeMarketData.asmx?WSDL">
    let client = new WSDL.ServiceTypes.RealTimeMarketDataSoapClient(...)
    
    0 讨论(0)
提交回复
热议问题