EBay Web Services

来自开放百科 - 灰狐
跳转到: 导航, 搜索

在 eBay SDK和 Web 服务的帮助下着手建立您自己的网上市场。有超过 40% 的 eBay 列表是通过调用 eBay API 实现的。eBay 现在有了 Windows 平台和 Java 平台下封装这些 API 的 SDK ,使得您定制访问 eBay 市场更为简单。

现在 eBay 提供了方便访问 eBay 市场的Web 服务。 自从 2000 年,eBay 就提供一组 XML API ,它被用来在 HTTPS 在以 XML 文档的形式传送数据。就在这年之前, eBay 发布了一组 SOAP API ,它通过 SOAP 和 WSDL 来定义一种 eBay 脚本,简化了对 eBay 平台的访问。这两组 API 都利用了 eBay Web 服务来提供对于同样功能和数据的访问。这些 API 使得定制与 eBay 交互的应用程序变得简单。

这些 API 的作用是显而易见的,事实上,目前超过 40% 的 eBay 列表都是通过调用 API 来实现的。


Ebay-web-services.gif eBay 的 Web 服务体系结构

Schema Files

The XML API and the SOAP API are based on the same schema. If you are using the XML API, you can use ebaySvc.xsd for request validation and in conjunction with some XML tools that recognize the format. If you are using the SOAP API, you will need to generate eBay API interfaces and proxies from ebaySvc.wsdl.

Latest ebaySvc.xsd

http://developer.ebay.com/webservices/latest/ebaySvc.xsd

Latest ebaySvc.wsdl

http://developer.ebay.com/webservices/latest/ebaySvc.wsdl

如:

http://developer.ebay.com/webservices/549/ebaySvc.xsd
http://developer.ebay.com/webservices/549/ebaySvc.wsdl

Generating Interfaces and Stubs from the eBay WSDL (Java)

java org.apache.axis.wsdl.WSDL2Java -o src -O -1 http://developer.ebay.com/webservices/549/eBaySvc.wsdl  

or

./wsdl2java.sh -uri http://developer.ebay.com/webservices/549/ebaySvc.wsdl

会创建 src 目录, 包含 EBayAPIInterfaceServiceCallbackHandler.java EBayAPIInterfaceServiceStub.java 文件

相关链接

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱