I am using Spring Tool Suite 4 with JAVA on the JDK 1.8.0.181. I have the wsdl linking of the Web Service Server and i want to create the coresponding Web Service Client on my project. I have configured the CXF preferences as follows:
My steps to create the Customer Web Service:
- On my maven project, right click on "New" -> "Other" -> "Web Service Client",
- I choose the Tomcat server (previously configured in 8.5),
- I choose the configuration environment (previously configured on CXF),
- I copy the WSDL link in the corresponding field.
After copying the link, and after a few seconds of waiting, STS returns the following error:
Could not retrieve the WSDL file "...wsdladresse.wsdl". Do you want to continueto wait for this file ?
I clicked on continue and was able to add an empty xml file (for the moment) of binding. Once the wsdl recovery process is finished, STS returns the error below:
WSDLToJava Error: Schema Error : cos-st-restricts.1.1 : Le type 'anySimpleType' étant non décomposable, sa valeur {base type definition}, 'anyType', doit être une définition de type simple atomique ou un type de données primitif intégré.
After some research on the Internet, I understood that I had to create my class proposals (here for the "anySimpleType" type) and add them to my binding xml file. How do I know the correct structure of my class to make sure that STS takes it into account when importing the WSDL?
Thank you