Netbeans JAX-WS Client [ERROR] A class/interface with the same name

548 Views Asked by At

My WSDL URL is URLhttp://192.168.100.197:4443/PaymentServiceServerWS.asmx?wsdl. I want to generate java client in netbeans from the mentioned wsdl. But it gives a class/interface with the same name is already in use, use a class customization to resolve this conflict. I cant resolve this problem. But I could do it in cmd with the following comand:

wsimport http://192.168.100.197:4443/PaymentServiceServerWS.asmx?wsdl -s 
D:\PROJECTS\WS\my_path  -B-XautoNameResolution

After that I got all generated java code in netbeans, and trade code and got a Soap fault exception.

Just i want resolve this problem in netbeans and use customization xml file or other files to generate it ,because netbeans was unable to genare it. How can I generate this WDSL as java client without any issue?

0

There are 0 best solutions below