6-mils 中文文档教程
6-mils
用于创建、发送和解析 cXML 消息的 Node.js 库< /a>. 请注意,此库并不是所有 cXML 功能的完整实现。 它目前被设计用作客户端(买家对卖家)而不是服务器(卖家对买家)。
本项目遵循标准
编码风格(点击下方了解更多信息):
Getting Started
这个库包含几种不同类型的 cXML 消息的类。 其中一些用于解析,一些用于创建/发送:
PunchOutSetupRequest
此类用于创建和发送请求以启动新的 Punch Out 会话。
PunchOutOrderMessage
此类用于解析传入的 PunchOutOrderMessage
cXML 文档。
OrderRequest
此类用于创建和发送采购订单。
Examples
该库的使用示例请参考test/functional/
的内容。
Technical Documentation
请参考 docs/
子文件夹。 该库中的每个对象都有单独的条目。
Name
在为这个模块起名字时,我认为“cx”可以读成“六”。 “ml”可以被认为与“mL”(毫升)相同,在某些地方被称为“mil”。 这也可能意味着这个库只有 0.006 英寸厚。无论哪种方式,我认为它听起来比“cxml”更吸引人。
License
请参考 LICENSE
。
6-mils
A Node.js library for creating, sending, and parsing cXML messages. Note that this library is not a complete implementation of all cXML features. It is currently designed to be used as a client (buyer to seller) instead of a server (seller to buyer).
This project adheres to the standard
coding style (click below for more information):
Getting Started
This library contains classes for several different types of cXML messages. Some of them are intended for parsing, and some for creating/sending:
PunchOutSetupRequest
This class is used to create and send a request to initiate a new Punch Out session.
PunchOutOrderMessage
This class is used to parse incoming PunchOutOrderMessage
cXML documents.
OrderRequest
This class is used to create and send purchase orders.
Examples
Please refer to the contents of test/functional/
for examples of this library in use.
Technical Documentation
Please refer to the docs/
sub-folder. There are separate entries for each object in this library.
Name
While dreaming up a name for this module, I thought "cx" could be vocalized as "six". "ml" could be considered the same as "mL" (milliliter), which in some locations is said as "mil". It could also mean that this library is only 0.006" thick. Either way, I think it sounds more catchy than "cxml".
License
Please refer to LICENSE
.