简体   繁体   English

模拟 SAP IDoc 服务器

[英]Mocking SAP IDoc Server

I am using SAP JcoIDocServer.我正在使用 SAP JcoIDocServer。

 JCoIDocServer server = JCoIDoc.getServer("SAPSERVER_" + connector.name)

I want to know if it possible to mock request for testing to this server.我想知道是否可以模拟对此服务器的测试请求。 Is there a framework or do I have to build my own?是否有框架或我必须建立自己的框架?

If you need to test an iDoc and you don't have an SAP server you can initially use another protocol, for example, SOAP, which will generate answers for you.如果您需要测试 iDoc 而您没有 SAP 服务器,您可以最初使用另一种协议,例如 SOAP,它会为您生成答案。 You can create a custom WSDL starting from the XSD (obviously assuming you have it) and test it using SOAPUI您可以从 XSD 开始创建自定义 WSDL(显然假设您拥有它)并使用 SOAPUI 对其进行测试

May be you can create client project and communicate it with your server.也许您可以创建客户端项目并与您的服务器进行通信。 Correct option is using SAP NW or SAP PI/XI for real test.正确的选择是使用 SAP NW 或 SAP PI/XI 进行实际测试。 If you haven't got any SAP server, you can download SAP NW ABAP trial server.如果您没有任何 SAP 服务器,您可以下载 SAP NW ABAP 试用服务器。

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

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