Using Maven2 and CXF to create a contract-first web service.
For a new service, my WSDL is on my local box. In maven, I have the
following:
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<executions>
<execution>
<phase>generate-sources</phase>
<configuration>
<sourceRoot>
${basedir}/target/generated/src/main/java
</sourceRoot>
<wsdlOptions>
<wsdlOption>
<wsdl>
${basedir}/src/main/wsdl/School.wsdl
</wsdl>
<extraargs>
<extraarg>-client</extraarg>
<extraarg>-impl</extraarg>
<extraarg>-verbose</extraarg>
</extraargs>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
My class gets generated with:
@javax.jws.WebService(name = "School",
serviceName = "School",
portName = "SchoolPort",
targetNamespace =
"http://services.mycompany.com/hss-school/services/School",
wsdlLocation =
"file:/home/beechb/repositories/hssSchoolService/trunk/jaxws/src/main/wsdl/School.wsdl",
endpointInterface =
"com.mycompany.services.hss_school.services.school.School")
I most definitely do not want the wsdlLocation to be the local file system
file, but the location the wsdl will be deployed to.
Anyone have any suggestions for configuring/working around the local file
being referenced in the generated class?
Thanks,
--
View this message in context:
http://www.nabble.com/wsdl2java-question-tp21354597p21354597.html
Sent from the cxf-user mailing list archive at Nabble.com.