|
|
|
[
Permlink
| « Hide
]
Dan Diephouse - 22/Jun/06 10:27 AM
Thanks, adding to TODO for 1.1.2
Have you tried just "wsdl/MyService.wsdl" - take out the file:
One further comment - file:wsdl/Foo.wsdl
Thanks Dan,
If I specify wsdl/MyService.wsdl (without specifying the scheme) for the wsdlURL element of the services.xml, or for @WebService.wsdlLocation in the Implementation class then I am successful in retreiving the original WSDL from the jar file. Now, if only I could retrieve the stylesheet from the jar, I would be completely happy with this solution. Unfortunately, specifying the stylesheet with the following does not work: I can reference the stylesheet if I place it off the docroot of my local webserver and reference it with an absolute URL: FWIW,
The second request to retrieve the WSDL fails with the exception information below. I will test this scenario in the new 1.1.2 release and if it still occurs then I will create a new JIRA. ---------- Begin included text ---------- 2006-06-26 12:12:15,768 ERROR org.codehaus.xfire.transport.http.XFireServletController - Couldn't invoke servlet request. setting the fix version to unknown for now
I use xfire 1.1.2. and maven. When I generate the sources form wsdl the ..Impl classes contain a wsdllocation with file:/
My workaround is, replacing the wsdllocation with a relitive path: pom.xml <executions> <execution> <id>generate-sourec</id> <phase>generate-sources</phase> <configuration> <tasks> <taskdef name="wsgen" classname="org.codehaus.xfire.gen.WsGenTask" classpathref="maven.compile.classpath" /> <wsgen outputDirectory="${project.build.directory}/xfire-source" wsdl="${basedir}/src/main/resources/wsdl/SessionService.wsdl" package="nl.tesis.webservices" overwrite="true" /> <wsgen outputDirectory="${project.build.directory}/xfire-source" wsdl="${basedir}/src/main/resources/wsdl/ApplicationService.wsdl" package="nl.tesis.webservices" overwrite="true" /> <wsgen outputDirectory="${project.build.directory}/xfire-source" wsdl="${basedir}/src/main/resources/wsdl/AuditingService.wsdl" package="nl.tesis.webservices" overwrite="true" /> <wsgen outputDirectory="${project.build.directory}/xfire-source" wsdl="${basedir}/src/main/resources/wsdl/DataService.wsdl" package="nl.tesis.webservices" overwrite="true" /> <wsgen outputDirectory="${project.build.directory}/xfire-source" wsdl="${basedir}/src/main/resources/wsdl/SchoolService.wsdl" package="nl.tesis.webservices" overwrite="true" /> <wsgen outputDirectory="${project.build.directory}/xfire-source" wsdl="${basedir}/src/main/resources/wsdl/UserGroupService.wsdl" package="nl.tesis.webservices" overwrite="true" /> <wsgen outputDirectory="${project.build.directory}/xfire-source" wsdl="${basedir}/src/main/resources/wsdl/ApplicationService.wsdl" package="nl.tesis.webservices" overwrite="true" /> <wsgen outputDirectory="${project.build.directory}/xfire-source" wsdl="${basedir}/src/main/resources/wsdl/UserService.wsdl" package="nl.tesis.webservices" overwrite="true" /> </tasks> <sourceRoot>${project.build.directory}/xfire-source</sourceRoot> </configuration> <goals> <goal>run</goal> </goals> </execution> <execution > <id>fix-sources</id> <phase>generate-sources</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <ant inheritRefs="true" antfile="${basedir}/build.xml"> <target name="fix-source"></target> </ant> </tasks> </configuration> </execution> </executions> build.xml <?xml version="1.0" encoding="UTF-8"?> <project default="fix-source"> <property name="xfire-source" value="${basedir}/target/xfire-source" /> <target name="fix-source"> <property name="replace" value="file:${basedir}/src/main/resources/"/> <echo>fix source in: ${xfire-source}</echo> <echo>replace: ${replace}</echo> <replace dir="${xfire-source}" value="" token="${replace}"> <include name="**/*.java"/> </replace> </target> </project> It is not beautyfull but it works. What would be the right solution ? Looking into this... will get back to you all soon
This is resolved in current SVN. Instead of adding the @WebService.wsdlLocation attribute we now generate a service descriptor, which should help.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||