如何将现有的 SOAP 网络服务调用到 REST API Spring 引导应用程序中
How to invoke existing SOAP webservice into REST API Spring boot application
我有一个 Rest Spring 引导应用程序,我需要在我的 Rest Spring 引导应用程序中调用外部 SOAP 网络服务 - 在 Whosebug 中提出了类似的问题 - Calling a SOAP service using REST service but didn't get any exact steps. One blog I found the solution but don't know whether it right approach or not - https://docs.oracle.com/cd/E19340-01/820-6767/aeqgc/index.html
如果有人知道解决方案,请告诉我。是否需要在 Spring boot rest 应用程序中创建 wsdl 或直接将 json 转换为 xml 并调用端点?
WSDL 由 SOAP Web 服务提供。您可以通过访问其 WSDL 端点 url.
来获取它
想法是,一旦您获得 WSDL,将其复制到您的项目文件夹,然后使用一些 maven 插件从 WSDL 生成 SOAP 客户端。下面是 spring official guide 如何操作。
你在java对象级别操作生成的客户端,有助于将SOAP请求格式化为正确的XML格式,然后发送出去。所以你不需要手动创建XML 自己申请。
我有一个 Rest Spring 引导应用程序,我需要在我的 Rest Spring 引导应用程序中调用外部 SOAP 网络服务 - 在 Whosebug 中提出了类似的问题 - Calling a SOAP service using REST service but didn't get any exact steps. One blog I found the solution but don't know whether it right approach or not - https://docs.oracle.com/cd/E19340-01/820-6767/aeqgc/index.html
如果有人知道解决方案,请告诉我。是否需要在 Spring boot rest 应用程序中创建 wsdl 或直接将 json 转换为 xml 并调用端点?
WSDL 由 SOAP Web 服务提供。您可以通过访问其 WSDL 端点 url.
来获取它想法是,一旦您获得 WSDL,将其复制到您的项目文件夹,然后使用一些 maven 插件从 WSDL 生成 SOAP 客户端。下面是 spring official guide 如何操作。
你在java对象级别操作生成的客户端,有助于将SOAP请求格式化为正确的XML格式,然后发送出去。所以你不需要手动创建XML 自己申请。