I try to import a remote web service in my project. I am using gvnix and I give the command
remote service import ws --wsdl http://www.restfulwebservices.net/wcf/UNSPSCService.svc?wsdl --class ~.services.UNSPSC
And I have this response
Updated SRC_MAIN_JAVA\com\springsource\petclinic\services\UNSPSC.java
Updated ROOT\pom.xml [skipped dependency org.apache.cxf:cxf-rt-frontend- jaxws:${cxf.version}; skipped dependency org.apache.cxf:cxf-rt-transports-http
:${cxf.version}; added dependency org.hibernate.javax.persistence:hibernate- jpa-2.0-api:1.0.1.Final; skipped dependency org.springframework:spring-tx:
${spring.version}; added plugin org.apache.cxf:cxf-codegen- plugin:${cxf.version}]
Updated ROOT\pom.xml
Generating sources ...
Generating sources error !
Undo manage SRC_MAIN_WEBAPP\WEB-INF\i18n\application.properties
Undo manage ROOT\pom.xml
Undo manage SRC_MAIN_WEBAPP\WEB-INF\i18n\application.properties
Undo manage ROOT\pom.xml
Undo manage SRC_MAIN_JAVA\com\springsource\petclinic\services\UNSPSC.java
Undo manage SRC_MAIN_WEBAPP\WEB-INF\spring\webmvc-config.xml
Error generating web service sources
Any help!!!!
I try this commands and works for me:
But I have one difference about trace:
gvNIX uses cxf-codegen-plugin maven plugin to generate source from a WDSL. So maven executable must be reachable on system
PATH
. Assure that you can executemvn
command from system shell.Good luck!