Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
客户端(浏览器)期望收到一个 JSON 字符串作为响应。我有 JSON 字符串要在服务端发送。但是调用函数 (axis2_invoke) 需要 axiom_node_t 使其返回 XML。
有没有办法以我想要的方式发送我的回复,而不是作为公理对象
AxiOM 是一个数据抽象层,而不是 XML。
当谈到原生支持 JSON 的 Axis2/C-unofficial 时,您将根据您的请求格式得到响应:
Content-Type
application/json
application/soap+xml
您的响应 AxiOM 将由 Axis2/C 的传输发送器转换为适当的格式。