简体   繁体   English

PHP SOAP OTA连接

[英]PHP SOAP OTA Connection

for a customer I want to implement the OTA service in an interface to check availabilty and things like that. 对于一个客户,我想在一个界面中实现OTA服务以检查可用性和诸如此类的事情。

I've downloaded the 2017 specifications from OpenTravel. 我已从OpenTravel下载了2017年规范。 But I lack some information. 但是我缺少一些信息。 I want to realize it with PHP and SOAP and later connect it to Magento. 我想用PHP和SOAP实现它,然后将其连接到Magento。 But I can't find any url for the SOAP client to send those XMLs to. 但是我找不到用于SOAP客户端发送这些XML的任何URL。

I would greatly appreciate any help on this topic or maybe suggestions to do it in an easier way. 我将不胜感激在此主题上的任何帮助,或者以更简单的方式提出建议。

Greetings 问候

Consuming OTA SOAP web services is tricky as PHP SoapClient class does not handle it properly. 消耗OTA SOAP Web服务非常棘手,因为PHP SoapClient类无法正确处理它。

First you should generate the PHP sdk from the WSDL corresponding to the availabilities you need to send requests to. 首先,您应该根据需要向其发送请求的可用性从WSDL生成PHP sdk。 You should give the PackageGenerator project from Github a try. 您应该尝试一下Github的PackageGenerator项目。

Nevertheless, as I said, the native PHP SoapClient class does not map the parameters to the XML request correctly. 但是,正如我所说,原生PHP SoapClient类无法将参数正确映射到XML请求。 This is where you have to write your proper code to handle the mapping from the PHP objects to the XML request. 在这里,您必须编写适当的代码来处理从PHP对象到XML请求的映射。

As I work regularly on these sorte of issues, I can help you further but only privately at contact@wsdltophp.com. 当我定期处理此类问题时,我可以进一步帮助您,但只能通过contact@wsdltophp.com私下提供。

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

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