使用VS2010的C#
使用的WSDL,添加为服务参考而非网络参考。
初始化
//The client object
cb.Clearbooks_Service_ApiPortClient client = new cb.Clearbooks_Service_ApiPortClient();
//The apiKey object
cb.authenticate auth = new cb.authenticate();
auth.apiKey = "YOUR_API_KEY";