我对WSDL很陌生。我正在做一个Spring Boot项目。我需要从第三方服务连接到WSDL。我想从WSDLURL生成JAVA。我正在使用
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>3.3.0</version>
我以https://turreta.com/2018/01/21/generate-java-classes-from-wsdl-files-using-cxf-codegen-plugin-in-maven/为榜样
示例选项如下,
<wsdl>${project.basedir}/src/main/resources/wsdl/geoipservice.wsdl</wsdl>
<wsdlLocation>classpath:wsdl/geoipservice.wsdl</wsdlLocation>
但是我的WSDL源代码URL。我花了一个小时在互联网上寻找WSDL网址的选项,但是还没有找到。
请帮帮忙。
是否需要从wsdl文件生成代码?
如果是。wsdl文件通常由服务器提供
url规则通常是超文本传输协议://serviceurl: port/interface-method.wsdl
例如谷歌广告
https://adwords.google.com/api/adwords/cm/v201809/CampaignService?wsdl