我正在努力开发一个Android应用程序.我需要使用Web服务.我有一个wsdl文件,但我想将其转换为java,以便我可以在我的Java程序中使用它的函数.有没有办法将wsdl文件转换为Java?
我试图使用Maven生成供Spring框架使用的JAXB文件,但Maven显示以下错误:
我知道它无法生成带有名称的文件,但我不知道如何解决这个问题.到目前为止,我访问了以下链接.1,2,3
org.xml.sax.SAXParseException; systemId: http://www5v80.elsyarres.net/service.asmx?wsdl; lineNumber: 5; columnNumber: 39; A class/interface with the same name "hello.wsdl.SearchFlights" is already in use. Use a class customization to resolve this conflict.
....
org.xml.sax.SAXParseException; systemId: http://www5v80.elsyarres.net/service.asmx?wsdl; lineNumber: 12; columnNumber: 43; (Relevant to above error) another "SearchFlights" is generated from here.
....
org.xml.sax.SAXParseException; systemId: http://www5v80.elsyarres.net/service.asmx?wsdl; lineNumber: 371; columnNumber: 42; A class/interface with the same name "hello.wsdl.GetFlightDetails" is already in use. Use a class customization to resolve this conflict.
....
Run Code Online (Sandbox Code Playgroud)
Maven插件 …