How is build-wsdl2java.xml created?

I have inherited a code base for a Java application that talks about several SOAP web services. Proxy classes for this are generated using the ANT task that calls wsdl2java. Since my Java experience is pretty limited, I'm still trying to figure out how it all works.

There is a build-wsdl2java.xml file in the project that seems to contain the configuration information needed to generate the class. Currently, the file has attributes that are not currently supported (namespacesmapfile, overWriteTypes, testcaseoverwrite), but if I try to resolve this by changing the first to 'namespacemappingfile' and deleting the rest, the attributes will be returned if the project is cleared. The WSDL URL is also returned if it is changed.

What controls the generation of this file and where can I determine the configuration options that it contains?

+4
source share
2 answers
Finally, it turned out that it controlled this and, more importantly, packed things up again. I am using JBuilder 2008 (based on the Eclipse Java IDE from Embarcadero Technologies), and the seemingly client proxy classes were created from WSDL using the JBuilders built-in to support this, which is actually a wrapper for wsdl2java, as mentioned in Noergaarde.

To set parameters such as the WSDL URL, I had to switch to the modeling perspective and use the Model Navigator to change the URL by selecting a class under the node web service client and using Properties.

+2
source

When you build your project, does the build-wsdl2java.xml timestamp change? i.e. is this the file generated by the assembly in another ant file?

Anyway, it certainly looks like your client stubs are created using AXIS.

http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL

+1
source

Source: https://habr.com/ru/post/1388369/


All Articles