简体   繁体   English

Woocommerce通过HTTP请求发送和接收XML

[英]Woocommerce send and receive XML through HTTP request

I'm creating an ecommerce store and it has to communicate with the billing software, which is totally independent and works on another server. 我正在创建一个电子商务商店,它必须与计费软件进行通信,该软件完全独立,并且可以在另一台服务器上工作。 That communication is made my XML through HTTP requests. 通过HTTP请求使该通信成为我的XML。

The communication is bilateral, shopping and stock information goes to the billing software and new stocks goes from the billing into Woocommerce. 通信是双向的,购物和库存信息进入计费软件,新库存从计费进入Woocommerce。

The guys from the billing software gave me some information about the tags I can use and some examples of these communications and they're quite simple. 计费软件的家伙给了我一些我可以使用的标签的信息以及这些通讯的一些示例,它们非常简单。

I don't have much experience on this, I've been checking the documentation for it but could use some help. 我对此没有太多经验,我一直在检查文档,但可能会有所帮助。 What's the best way to create this requests, either for sending and receiving? 创建此请求(发送和接收)的最佳方法是什么? Do I need to create a plugin or can I just implement new functions for it? 我需要创建一个插件还是可以为其实现新功能? From the billing server, it's already prepared to receive and send this information. 从计费服务器,它已经准备好接收和发送此信息。 I just need to create the request in WordPress. 我只需要在WordPress中创建请求。

Thank you! 谢谢!

I know there's already a plugin for exporting: 我知道已经有一个用于导出的插件:

http://www.woothemes.com/products/customerorder-xml-export-suite/ http://www.woothemes.com/products/customerorder-xml-export-suite/

but I also need to receive communication from the remote server with new information such as new arrivals, new stock quantities, new clients, etc... 但是我还需要接收来自远程服务器的通讯,其中包含新信息,例如新到货,新库存数量,新客户等。

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

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