gpt4 book ai didi

java - 使用自定义 xml 协议(protocol)实现客户端,无需定义或模式

转载 作者:行者123 更新时间:2023-12-01 15:53:35 25 4
gpt4 key购买 nike

我有一个无聊的任务来实现基于 xml 的协议(protocol)的客户端。问题是没有模式,没有 wsdl,只有示例。

在这种情况下,是否有可能消除“代码猴子”工作——也许以某种方式注释这个示例,或者为它们生成模式,或者其他什么?

最佳答案

查看 Spring 对 XML 映射的支持或直接访问 JAXB 或 CASTOR。

Spring http://static.springsource.org/spring-ws/site/reference/html/oxm.html脚轮http://www.castor.org/xml-mapping.html

关于java - 使用自定义 xml 协议(protocol)实现客户端,无需定义或模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5512852/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com