Hi!
I'm new to cxf. At the moment I try to generate a wsdl from an existing
java class via a maven plugin. It seems that everything works fine,
except the targetNamespace I defined in my pom.xml was not transferred
to the wsdl. What is wrong?
Here is the part of my pom.xml:
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-java2ws-plugin</artifactId>
<version>2.1</version>
<dependencies>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-simple</artifactId>
<version>2.1</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>generate-test-sources</id>
<phase>process-classes</phase>
<configuration>
<className>com.test.webservices.MyWebService</className>
<genWsdl>true</genWsdl>
<verbose>true</verbose>
<outputFile>wsdl/MyWebService.wsdl</outputFile>
<serviceName> MyWebService </serviceName>
<targetNameSpace>http://www.test.de/ws/ MyWebService </targetNameSpace>
</configuration>
<goals>
<goal>java2ws</goal>
</goals>
</execution>
</executions>
</plugin>
But in the wsdl-file the namespace is:
<wsdl:definitions name=" MyWebService "
targetNamespace=http://webservice.test.com/
<http://webservice.dmf.encoway.com/> ...
Regards,
Jacqueline.