步骤 1:连接到 Amazon ECommerce Web 服务

LobSystem 对象是描述特定业务应用程序的元数据的顶级容器。在 XML 术语中,它是包含所有其他元数据对象的根节点。它为业务数据目录提供身份验证和连接字符串信息。本主题说明如何定义 LOBSystem 对象的 XML 以连接到 Amazon Ecommerce Web 服务。

Amazon Ecommerce Web 服务使用匿名身份验证。因此在示例中,将指定易于使用的 PassThrough 身份验证。在此模式中,将凭据传递给 Web 服务,但由于此 Web 服务是为匿名访问建立的,因此它将忽略凭据。

备注

Web 服务需要必须与针对该服务的所有请求一起传递的 SubscriptionID。通过在 Amazon 网站上进行注册可获取 SubscriptionID。

先决条件

在写入元数据之前,必须设置环境。此示例假定已设置 Microsoft Office SharePoint Server 2007 并已从 Amazon 获取有效的 SubscriptionID 以便使用 Web 服务。

连接到 Amazon Ecommerce Web 服务

  1. 创建新的文本文件并将其另存为 AWSECommerceService.XML。此文件的位置并不重要。

  2. 打开此文本文件以便在文本编辑器中进行编辑。

  3. 插入以下 XML:

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <LobSystem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://schemas.microsoft.com/office/2006/03/BusinessDataCatalog BDCMetadata.XSD" Type="WebService" Version="1.0.0.0" Name="AWSECommerceService" xmlns="https://schemas.microsoft.com/office/2006/03/BusinessDataCatalog">
      <Properties>
        <Property Name="WebServiceProxyNamespace" Type="System.String">AWSECommerceService</Property>
        <Property Name="WsdlFetchAuthenticationMode" Type="System.String">PassThrough</Property>
        <Property Name="WsdlFetchUrl" Type="System.String">http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl</Property>
        <Property Name="WildcardCharacter" Type="System.String">%</Property>
        <!-- The Business Data Catalog uses the Wildcard character specified here with filter parameters.-->
      </Properties>
      <LobSystemInstances>
        <LobSystemInstance Name="AWSECommerceService">
          <Properties>
            <Property Name="WebServiceAuthenticationMode" Type="System.String">PassThrough</Property>
            <!--Property Name="WebProxyServerConfiguration" Type="System.String">EnterYourProxyServerURL</Property-->
          </Properties>
        </LobSystemInstance>
      </LobSystemInstances>
      <Entities>
        <!--Enter your entity XML here.-->
      </Entities>
    </LobSystem>
    
  4. 在 WebProxyServerConfiguration 属性中输入代理服务器 URL 并取消注释行(如果需要)。有关详细信息,请查看注释。

  5. 保存 XML 文件。

Next Steps

步骤 2:定义实体、方法和筛选器

See Also

任务

AdventureWorks SQL Server 2000 示例

概念

业务数据目录:元数据模型