惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Microsoft Security Blog
Microsoft Security Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
V
Visual Studio Blog
宝玉的分享
宝玉的分享
IT之家
IT之家
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
I
InfoQ
B
Blog RSS Feed
T
Threatpost
博客园_首页
M
MIT News - Artificial intelligence
Spread Privacy
Spread Privacy
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Know Your Adversary
Know Your Adversary
U
Unit 42
Engineering at Meta
Engineering at Meta
C
Cyber Attacks, Cyber Crime and Cyber Security
月光博客
月光博客
Scott Helme
Scott Helme
T
Tor Project blog
有赞技术团队
有赞技术团队
AWS News Blog
AWS News Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Last Week in AI
Last Week in AI
S
Schneier on Security
Vercel News
Vercel News
博客园 - Franky
C
Cybersecurity and Infrastructure Security Agency CISA
L
LINUX DO - 热门话题
NISL@THU
NISL@THU
L
LangChain Blog
爱范儿
爱范儿
Google DeepMind News
Google DeepMind News
The GitHub Blog
The GitHub Blog
雷峰网
雷峰网
Latest news
Latest news
C
CXSECURITY Database RSS Feed - CXSecurity.com
Hugging Face - Blog
Hugging Face - Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
G
GRAHAM CLULEY
S
Security Affairs
A
About on SuperTechFans
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
大猫的无限游戏
大猫的无限游戏
W
WeLiveSecurity
Cisco Talos Blog
Cisco Talos Blog
罗磊的独立博客

博客园 - 烂人

删除数据前把数据备份到另外一个表的通用Oracle Procedure代码 一个混乱千万级软件项目 Python中安装Prophet Python 列表下标操作 Weka java.lang.reflect.InvocationTargetException 金山注入浏览器默认开启上网导航 www.uu114.cn 下载Web微信视频 强制删除无用old windows文件夹命令 BitLocker 加密工具挂起和恢复命令行(windows7) R 统计学工具部署和使用 Microsoft Azure 01 (Summarize) Windows性能优化关键点-Windows Performance tuning important settings Office OneNote 自动打开问题 BAT 快速删除CVS文件和拷贝最近修改文件的目录结构 WINDOWS 远程桌面不能直接拷贝文件问题 PLSQL外键悲剧 eclipse 3.6 慢 卡 原因根源,终于找到了! - 烂人 Java applet java.lang.OutOfMemoryError: Java heap space 翻页中改变每页记录数后当前页面起始页问题
使用WSDL转换成JAVA客户端代码问题
烂人 · 2021-05-02 · via 博客园 - 烂人

  好久没法技术博客了,最近接触开发多了许多,又有新总结发给遇到问题的老铁们。

大家可能都知道使用JDK中自带的wsimport命令把WSDL文件或URL直接转换成JAVA客户端代码,以实现快速开发。

如下:

wsimport -keep "mywsdlfile.xml" -p com.zeng.test

可是我最近总是遇到无法生成service类文件,这个类继承于javax.xml.ws.Service。百思不得其解,看了老半天,发现控制台有warning,

[WARNING] Ignoring SOAP port "WorkOrderManagerPort": it uses non-standard SOAP 1.2 binding.

You must specify the "-extension" option to use this binding.

  line 88 of file:/C:/Users/xxxx/xxxx_1623774202.xml

[WARNING] Service "WorkOrderManagerService" does not contain any usable ports. try running wsimport with -extension switch.

  line 87 of file:/C:/Users/xxx/xxxx_1623774202.xml

 原来是因为客户给的是SOAP 1.2版本的wsdl文件,需要加-extension

既然wsimport知道我是用这个版本,干脆直接帮加上得了,然后出个warning不是更好吗,咳!浪费大家的时间。

改成下面命令,搞定:

wsimport -keep "mywsdlfile.xml" -p com.zeng.test -extension

 如果WSDL是一些老系统给的,很可能会有类似问题,自己看看控制台的输出,有惊喜。