简体   繁体   English

如何从 SOAP 服务中的 Z93F725A07423FE1CFZ8839

[英]how to create a “https” secured REST API from a SOAP servies in java springboot

I am working on integrating a SOAP service provided by european VAT validation service VIES.我正在整合由欧洲增值税验证服务 VIES 提供的 SOAP 服务。 the SOAP service is hosted at following linkshttps://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl I think both of them leads to pretty much same site with one being http and other https (please let me know if there is a difference) . the SOAP service is hosted at following linkshttps://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl I think both of them leads to pretty几乎相同的站点,其中一个是 http 和其他 https (如果有区别,请告诉我)

so I integrated the wsdl into our spring boot application and it worked fine when I tried in in my local host which was http.所以我将 wsdl 集成到我们的 spring 启动应用程序中,当我在本地主机 http 中尝试时,它运行良好。 but as soon as I hosted it in to our live server which is https it started giving error reply.但是一旦我将它托管到我们的实时服务器 https 中,它就开始给出错误回复。

I searched for possible reasons why it isn't working and ended up with the conclusion that the SOAP services provided by VTES works only in http sites.我搜索了它无法正常工作的可能原因,最终得出的结论是 VTES 提供的 SOAP 服务仅在 http 站点中有效。 (let me know if I am wrong) but when I searched for more solutions I found more sites that provide https secured REST application that uses same SOAP service ( https://vatlayer.com/ ). (let me know if I am wrong) but when I searched for more solutions I found more sites that provide https secured REST application that uses same SOAP service ( https://vatlayer.com/ ). We tried to reason with our client to purchase one of those since they only allow a limited number of free VAT validations, but they are not happy with that, but it got me thinking since they can built a https secured REST API with this thing it means I can do that to.我们试图说服我们的客户购买其中一个,因为他们只允许进行有限数量的免费增值税验证,但他们对此并不满意,但这让我想到了,因为他们可以用这个东西 D8080F47F6839D47D60BC4555EE00C3FZ ZDB974238714CA8DE63477ACE 构建一个 https意味着我可以做到。 so I searched for a solution but couldn't find any, can anyone please give a insight into it about how it is done.所以我搜索了一个解决方案,但找不到任何解决方案,任何人都可以深入了解它是如何完成的。

Thanks and regards.谢谢并恭祝安康。

If you are calling the link from the web browser(client side) and if your live web application runs on HTTPS, then you should also call the SOAP service with HTTPS or otherwise the browser will see it as violating the Same Origin Policy and will block your request. If you are calling the link from the web browser(client side) and if your live web application runs on HTTPS, then you should also call the SOAP service with HTTPS or otherwise the browser will see it as violating the Same Origin Policy and will block你的申请。

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

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