0

After hours of working I have found a way to create a SOAP client that performs calls to web servers. I did two tests on public web servers and everything went okay. When I did a project with another server I got an error:

Web Service Client can not be created by JAXWS:wsimport utility. Reason: 'Any' Property already defined. Use <jaxb:property> to resolve this conflict

I am using Java EE 7 and Netbeans to create the web service client.

The problem maybe is that this web server requires a username and password to download the WSDL file.

How I can resolve this, and how can I enter a username and password to request the WSDL file?


EDIT: The problem is not related to SSL, beacause I can access to WSDL from browser.

midor
  • 5,487
  • 2
  • 23
  • 52
Wallcraft
  • 21
  • 1
  • 8
  • Did you try 3'rd party libraries to create client stub? e.g. CXF or Axis. Try to check that WSDL with [SoapUI](https://www.soapui.org/) – Denys Kurochkin Sep 08 '16 at 15:47
  • @Denis Kurochkin WIth SoapUI works. – Wallcraft Sep 08 '16 at 15:52
  • 1
    Possible duplicate of [error while consuming a .Net web service from a WSDL in NetBeans](http://stackoverflow.com/questions/9189236/error-while-consuming-a-net-web-service-from-a-wsdl-in-netbeans) – Denys Kurochkin Sep 08 '16 at 16:00
  • Another possible solution - http://stackoverflow.com/questions/785945/problem-generating-java-soap-web-services-client-with-jdk-tool-wsimport-from-a-w?rq=1 – Denys Kurochkin Sep 08 '16 at 16:03

0 Answers0