【问题标题】:Consuming SAP Web Service in .net or sharepoint在 .net 或 sharepoint 中使用 SAP Web 服务
【发布时间】:2013-07-10 08:27:20
【问题描述】:

我已从 SAP 团队收到这三个链接。

http://nmb.net:2525/sap/opu/odata/sap/empl/

服务文档的 URL:

http://nmb.net:2525/sap/opu/odata/sap/empl/?$format=xml

元数据的 URL:

http://nmb.net:2525/sap/opu/odata/sap/empl/?$metadata

如果我在浏览器中打开它们,我会得到以下结果:

<app:service xml:lang="en" xml:base="http://os0.nmb.net:2525/sap/opu/odata/sap/ZEMPLOYEERFCGEBO/">
<app:workspace>
<atom:title type="text">Data</atom:title>
<app:collection sap:deletable="false" sap:content-version="1" href="EmployeeCollection">
<atom:title type="text">EmployeeCollection</atom:title><sap:member-title>Bank</sap:member-title>
</app:collection>
</app:workspace>
<atom:link rel="self" href="http://os0wdddc.ores.net:8021/sap/opu/odata/sap/ZEMPLOYEERFCGEBO/"/>
<atom:link rel="latest-version" href="http://os0wdddc.ores.net:8021/sap/opu/odata/sap/ZEMPLOYEERFCGEBO/"/>
</app:service>

这是我们通常得到的wsdl吗?如何格式化上面的 URL 以获取一些数据,就像我在 .net 中创建自定义服务并在浏览器中查看它时通常会得到的那样?

编辑 1:

如果我使用提供的 URL 并在 Visual Studio 项目中添加服务引用,我会得到:

Operations: WCF Data Service: No operations found

【问题讨论】:

    标签: web-services sap


    【解决方案1】:

    这很简单。打开您的元数据——通过打开

    http://os0.nmb.net:2525/sap/opu/odata/sap/ZEMPLOYEERFCGEBO/?$metadata
    

    在您的浏览器中 - 然后在 URL 的末尾附加实体集的名称。请看几个例子 herehere

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-03
      • 2014-08-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多