藝龍API-C#.NET

來源:互聯網
上載者:User

藝龍網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錯誤,就能夠運行項目

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.