Re: maven and wsdl2java

2012-02-06 Thread Thorsten Heit
Hi,

 Hi,  I am trying to use maven to generate some client stubs for axis 
1.4.
  The below pom, runs without complaint, but it doesn't generate the
 required ServiceLocator classes.  If I download axis 1.4 and use the
 standard wsdl2java from the command line, everything is fine.

I have seen a similar behaviour recently with a WSDL I got from a 
colleague: The generated ServiceLocator file had a length of 0 bytes. 
Comparing the new WSDL with an older version showed me that there was an 
improperly set wsdlsoap:address entry:

(...)
wsdl:service name=MyService
  wsdl:port binding=intf:webservices.test.srv.deSoapBinding 
name=de.srv.test.webservices
**  wsdlsoap:address location=http://server:port/some/more/stuff/
  /wsdl:port
/wsdl:service
(...)


I replaced the line marked with ** with
wsdlsoap:address location=http://webservices.test.srv.de/
and the ServiceLocator was generated, i.e. the problem was solved...



HTH

Thorsten

maven and wsdl2java

2012-02-05 Thread Bill Smith
Hi,  I am trying to use maven to generate some client stubs for axis 1.4.
 The below pom, runs without complaint, but it doesn't generate the
required ServiceLocator classes.  If I download axis 1.4 and use the
standard wsdl2java from the command line, everything is fine.

Any ideas?

project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
 modelVersion4.0.0/modelVersion
groupIdcom.agentws/groupId
artifactIdagentws/artifactId
nameWebservice Axis 1.4 Clients/name
version0.0.2-SNAPSHOT/version

dependencies

dependency
  groupIdorg.apache.axis/groupId
  artifactIdaxis/artifactId
  version1.4/version
/dependency
dependency
  groupIdaxis/groupId
  artifactIdaxis-jaxrpc/artifactId
  version1.4/version
/dependency

/dependencies
build
 finalNameaxis-webclient/finalName
 plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdaxistools-maven-plugin/artifactId
version1.4/version
executions
execution
idimport/id
phasegenerate-sources/phase
goals
goalwsdl2java/goal
/goals
configuration
sourceDirectory${basedir}/src/main/resources/sourceDirectory

wsdlFiles
wsdlFileAgent.wsdl/wsdlFile
/wsdlFiles
outputDirectory${basedir}/target/generated-sources/main/java/outputDirectory
/configuration
/execution
/executions
 /plugin
/plugins
 /build
/project