Here is a wsdl service link: http://www.webservicemart.com/uszip.asmx?WSDL
If I run the following command:
wsimport -s src -d bin http://www.webservicemart.com/uszip.asmx?WSDL
This command produces Java source code in the /src directory and compiled .class files in the /bin directory relative to the directory from which the command was issued. These generated classes can be used to access the remote web service.
Created a jar file, zipws.jar, containing the classes in the package com.webservicemart.ws by issuing the following commands:
- cd /bin
- jar cvf zipws.jar com
I can Add this jar into my build path in the java project and use it.
Is there a way I can have a java project created with maven2 and specify this wsdl url in POM.xml and have the jars directly downloaded into my local machine? Please let me know if you need more information.