Can anyone please provide me with a sample code for this?
I have a wsdl file, and I want to create a client that will call a service from that wsdl file
A working code
You can do it from command line using wsimport provided by JAX-WS
wsimport -keep -s (output folder) urlToWsdl
> ex : wsimport -keep -s {homeDirectory}/OutputFolder https://www.example.com
PS: while using non-standard SOAP 1.2 binding. You must specify the "-extension" option to use this binding.
for further reading visit this