简体   繁体   中英

Reason for not being able to convert wsdl to java class using intellij

Hello friends and thanks in advance for your time and attention. I've consumed from lots of web services till now but I could barely use intellij built in tool to convert wsdl to java classes. It faces an error about duplicate id(s). So if converting web service code to wsdl is done by means of a tool just like Intellij tool , why it's not working properly reversing the conversion?

If you're using maven and using the org.apache.cxf plugin, you can set autoNameResolution to true, which solves the problem for duplicate IDs

<configuration>
    <defaultOptions>                                
        <autoNameResolution>true</autoNameResolution>
    </defaultOptions>
</configuration>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM