I'm generating java classes from multiple wsdl files. Works. However, I want to provide the appropriate wsdl file in the @WebServiceClient annotation. In the attribute wsdlLocation I expect the directory path concatenated with the distinct file name. E.g. /myDir/myWsdl-1.wsdl for the first webservice. However, the wsdlLocation is populated with "/myDir" only - without the service name. How do I supply that name for each wsdl?
@WebServiceClient(name = "myService", targetNamespace = "http://mycompany.com/services/", wsdlLocation = "/myDir")
Below is my instruction:
<wsdlLocation>/myDir</wsdlLocation>
<wsdlDirectory>src/main/resources/myDir</wsdlDirectory>
<wsdlFiles>
<wsdlFile>myWsdl-1.wsdl</wsdlFile>
<wsdlFile>myWsdl-2.wsdl</wsdlFile>
<wsdlFile>myWsdl-3.wsdl</wsdlFile>
<wsdlFile>myWsdl-4.wsdl</wsdlFile>
</wsdlFiles>
What slips my attention?
Thanks for any hints. Feder.
It reports External binding file(s) can not be bound to more WSDL files (/myDir/*)Please use either inline binding(s) or multiple execution tags.
– Wayfaring