艺龙网SDK:http://open.elong.com/SDK#csharp_sdk
API文档:http://open.elong.com/API%E6%96%87%E6%A1%A3
自带的.NET MVC项目服务引用有错误,我们通过api文档里的介绍可以看到,服务引用的地址应该是如下,BLL里app.config的配置文件如下
<endpoint address="http://211.151.230.198/NorthBoundService/V1.1/NorthBoundAPIService.asmx" binding="basicHttpBinding" bindingConfiguration="NorthBoundAPIServiceSoap1" contract="NorthBoundAPIService.NorthBoundAPIServiceSoap" name="NorthBoundAPIServiceSoap1" />
同样的,在web的client端也是类似的。
<client> <!--这里是艺龙提供给代理的服务地址--> <endpoint address="http://211.151.230.198/NorthBoundService/V1.1/NorthBoundAPIService.asmx" binding="basicHttpBinding" bindingConfiguration="NorthBoundAPIServiceSoap" contract="NorthBoundAPIService.NorthBoundAPIServiceSoap" name="NorthBoundAPIServiceSoap1" /> </client>
再修改下,BLL项目中的using错误,就能够运行项目