简体   繁体   English

在 SAP 中生成 WSDL Web 服务对象

[英]Generate WSDL web-service objects in SAP

is it possible with SAP to generate client stubs and transfer objects from a WSDL served by a .NET WCF web service? SAP 是否可以生成客户端存根并从 .NET WCF Web 服务提供的 WSDL 传输对象? Or do I have to build my SOAP XML requests manually?还是我必须手动构建我的 SOAP XML 请求?

To be more on the point.更重要的是。 I still have a WCF web service and the wsdl.我还有一个 WCF Web 服务和 wsdl。 I have no knowlege in SAP.我对 SAP 一无所知。 So the question is.所以问题是。 Is it possible and how can I create client service stubs and the transfer objects in SAP from my WSDL?是否可以以及如何从我的 WSDL 在 SAP 中创建客户端服务存根和传输对象?

It's easy to create an ABAP client for an existing web service if you have access to the URL for obtaining the wsdl file or the wsdl file itself.如果您有权访问用于获取 wsdl 文件或 wsdl 文件本身的 URL,则可以轻松为现有 Web 服务创建 ABAP 客户端。 See this link for an step by step tutorial wich is basically:请参阅此链接以获取分步教程,其基本上是:
1- Generate proxy from wsdl using assitant 1- 使用助手从 wsdl 生成代理
2- Use proxy generated in your ABAP program 2- 使用您的 ABAP 程序中生成的代理

Regards问候

You can use the WSDL from the wcf for this.为此,您可以使用 wcf 中的 WSDL。 You can get the WSDL as service.svc?wsdl .您可以将 WSDL 作为service.svc?wsdl However at times, some SOAP client generator expect all the definitions of the SOAP/WSDL in a single call.然而,有时,某些 SOAP 客户端生成器希望在一次调用中获得 SOAP/WSDL 的所有定义。 For that you might have to look at the following pages:为此,您可能需要查看以下页面:

  1. http://weblogs.asp.net/pglavich/archive/2010/03/16/making-wcf-output-a-single-wsdl-file-for-interop-purposes.aspx http://weblogs.asp.net/pglavich/archive/2010/03/16/making-wcf-output-a-single-wsdl-file-for-interop-purposes.aspx

  2. http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/f03b6e78-ef28-4692-8f19-62d2f2d3bc9c http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/f03b6e78-ef28-4692-8f19-62d2f2d3bc9c

  3. WCF: how to generate a single WSDL document, without WSDL:import? WCF:如何在没有 WSDL:import 的情况下生成单个 WSDL 文档?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM