Error generating files / classes from a Web Service with Netbeans

5

I'm trying to generate files / class from a Web Service and bring it to my Java project.

For this I am using Netbeans IDE 8.0.2

At first I'm getting the message "Uma classe/interface com o mesmo nome já está sendo usada. Use a personalização de classe para resolver este conflito."

During my searches I found a very similar case: link

The link author indicates that I should set the property -b-xautoNameResolution (with the value true) (image below) in options wsimport and this will solve the problem.

Thenthelogshowsmethefollowingerror:

My question is, as the -b-xautoNameResolution command did not stop at the wsimport execution line (as shown in the above log).

With wsimport at the command prompt I can do this:

    
asked by anonymous 13.01.2015 / 20:21

2 answers

0

Thanks for everyone's help, the image below shows how to resolve the question.

    
15.01.2015 / 17:17
0

I noticed that you used -b (lowercase) in the Netbeans interface and -B (upper case) in the terminal. Looking at the "wsimport" documentation there is a difference in the semantics of these two options and you really should be wanting the second: -B<jaxbOption> .

Would this be the problem?

    
24.02.2015 / 22:04