This content has been marked as final.
Show 3 replies
-
1. Re: DataHandler jaxrpc mapping
thomas.diesler Jan 20, 2005 9:11 AM (in response to time4tea)Try to use wscompile to generate jaxrpc-mapping.xml
DataHandler is not a valid JAXRPC return type, i.e there is no standard mapping for it. -
2. Re: DataHandler jaxrpc mapping
md5georg Feb 2, 2005 9:38 AM (in response to time4tea)Hello...
How do you use wsconfig to generate the jaxrpc mapping file then...? There is one argument "mapping" but when I insert that into the my ant task I just get an exception that "mapping" is not a valid argument...
/Georg -
3. Re: DataHandler jaxrpc mapping
kanno Feb 2, 2005 1:57 PM (in response to time4tea)If you search the forums, I've posted a message about this problem:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=57446
My solution was to just write the task into the ant build file without using the tag. My ant task looks as the following:
(Ignore the mkdirs)<target name="wscompile" description="Generates WSDL and JAXRPC mapping file" depends="compile"> <mkdir dir="${build.web.service.home}"/> <mkdir dir="${build.web.service.generated.home}"/> <mkdir dir="${build.web.service.wsdl.home}"/> <java classname="com.sun.xml.rpc.tools.wscompile.Main" fork="yes" dir="."> <classpath refid="compile.classpath"/> <arg line='-d "${build.web.service.wsdl.home}"' /> <arg line="-define" /> <arg line="-features:documentliteral" /> <arg line='-mapping "${build.web.service.wsdl.home}/${jaxrpc.mapping.file}"'/> <arg line="-verbose" /> <arg line='-classpath "${build.classes.home}"' /> <arg line='"${config.home}/${config.file}"' /> </java> </target>
This circumvents the problems you're seeing from using the wscompile ant task.