从 WSDL 生成 WSDL 文件 URL
Generate WSDL file from WSDL URL
我在 http://localhost:8080/myService?wsdl
上公开了一个 WebService 定义
此 WSDL 包含许多外部架构导入。
我想将此 WSDL 保存到文件(单个或 wsdl + xsd - 随便)。
我知道 SoapUI
可以通过 Export definition
做到这一点,但是我正在研究 Windows 和 SoapUI
throws:
java.io.FileNotFoundException:
d:\myService_1_2_3_4_5_6_7_8_9_10_11_12_13_14_15_16_17_18_19_20_21_22_23_24_25_26_27_28_29_30_31_32_33_34_35_36_37_38_39_40_41_42_43_44_45_46_47_48_49_50_51_52_53_54_55_56_57_58_59_60_61_62_63_64_65_66_67_68_69_70_71_72_73_74_75_76_77_78_79_80_81_82_83.xsd
(The filename, directory name, or volume label syntax is incorrect)
如您所见,我有 83+ .xsd 文件,其中文件名太长(在 Windows 上)。
知道如何更改 SoapUI 命名约定或如何使用其他工具将定义导出到文件吗?
右击并选择"Show Interface Viewer"。选择选项卡 "WSDL Content"。右键单击右侧的 WSDL 并选择 "Select All",然后选择 "Copy"。粘贴到记事本并保存。
(2016/04/13 更新,在下面包含我自己的评论)或者:
尝试左侧的 Merging WSDL and XSD files which has the description of a free tool to do this. It has a link to Google Code page for the source code and binary. On the Google Code page, click the Downloads link 以仅下载 Windows 二进制文件,如果您不想从源代码构建它。
我在 http://localhost:8080/myService?wsdl
上公开了一个 WebService 定义此 WSDL 包含许多外部架构导入。
我想将此 WSDL 保存到文件(单个或 wsdl + xsd - 随便)。
我知道 SoapUI
可以通过 Export definition
做到这一点,但是我正在研究 Windows 和 SoapUI
throws:
java.io.FileNotFoundException:
d:\myService_1_2_3_4_5_6_7_8_9_10_11_12_13_14_15_16_17_18_19_20_21_22_23_24_25_26_27_28_29_30_31_32_33_34_35_36_37_38_39_40_41_42_43_44_45_46_47_48_49_50_51_52_53_54_55_56_57_58_59_60_61_62_63_64_65_66_67_68_69_70_71_72_73_74_75_76_77_78_79_80_81_82_83.xsd
(The filename, directory name, or volume label syntax is incorrect)
如您所见,我有 83+ .xsd 文件,其中文件名太长(在 Windows 上)。
知道如何更改 SoapUI 命名约定或如何使用其他工具将定义导出到文件吗?
右击并选择"Show Interface Viewer"。选择选项卡 "WSDL Content"。右键单击右侧的 WSDL 并选择 "Select All",然后选择 "Copy"。粘贴到记事本并保存。
(2016/04/13 更新,在下面包含我自己的评论)或者:
尝试左侧的 Merging WSDL and XSD files which has the description of a free tool to do this. It has a link to Google Code page for the source code and binary. On the Google Code page, click the Downloads link 以仅下载 Windows 二进制文件,如果您不想从源代码构建它。