SAP 和 PeopleSoft 使用 Web 服务复杂对象
我们正在创建一个 Web 服务,它将接受一个复杂的对象作为参数。如果 SAP 和 PeopleSoft 需要使用该服务并创建对象以作为参数传入,这会成为问题吗?
谢谢!
We are creating a web service that will take a complex object as a parameter. Will this be an issue if SAP and PeopleSoft need to consume the service and create the object to pass in as a parameter?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果 WSDL 已完善,并且 PeopleSoft 和 SAP 都可以创建 SOAP XML 请求并将它们发送到 URL,那么两者都应该能够使用您的服务。
关键是将复杂对象编组到 XML 或从 XML 编组和解组。 PeopleSoft 和 SAP 都无法处理您的对象。他们必须从 XML 中获取所需的一切,不多也不少。
首先为您的服务建立请求和响应合同,其余部分如下: 合同第一网络服务。
If the WSDL is well-established, and both PeopleSoft and SAP can create SOAP XML requests and send them to a URL, then both should be able to work with your service.
The key will be marshalling and unmarshalling your complex object to and from XML. Neither PeopleSoft nor SAP will be able to deal with your object. They'll have to get everything they need from XML, no more and no less.
Start by establishing the contract for request and response for your service, and the rest will follow: contract first web service.