you also have the same problem as in http://issues.apache.org/jira/browse/AXIS2-2075
the only option i can see is to merge the two wsdl files and generate the code once. Can you try out another databinding frame work? On 4/17/07, Patrick Houbaux <[EMAIL PROTECTED]> wrote:
Hello, I'm writing a client against several WSDL which are all sharing the same schemas for types. Let's say I have the following: - WSDL1 using schema typeA and schema typeB - WSDL2 using schema typeA and schema typeC When I generate the client stub with AXIS2 (using xmlbeans bindings) against WSDL1 and implement a small client using only this stub everything works great. When I start to generate the client stub with AXIS2 (using xmlbeans binding) against WSDL2 in the same output folders where client stub for WSDL1 was and run my small client without touching any lines I get some ClassCastException on the java type generated with AXIS2 (sources/resources were regenerated and overwritten against WSDL2). I did repack the resources generated folder and added it to my project classpath everytime I generated a new stub. If anybody can advise on how to generate client stubs against several WSDL sharing the same schema types, it would be really useful. Thanks for any help. I'm using AXIS2-1.2-RC2, and here are my settings for generating the stubs: <target name="generate.client.sm"> <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" maxmemory="128m"> <classpath refid="axis2.classpath"/> <jvmarg value="-Xss2048k"/> <arg value="-d"/> <arg value="xmlbeans"/> <arg value="-uri"/> <arg value="${wsdl.sm.url}"/> <arg value="-g"/> <arg value="-ssi"/> <arg value="-s"/> <arg value="-u"> <arg value="-o"/> <arg file="${src.client}"/> </java> </target> <target name="generate.client.cm"> <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true" maxmemory="128m"> <classpath refid="axis2.classpath"/> <jvmarg value="-Xss2048k"/> <arg value="-d"/> <arg value="xmlbeans"/> <arg value="-uri"/> <arg value="${wsdl.cm.url}"/> <arg value="-g"/> <arg value="-ssi"/> <arg value="-s"/> <arg value="-u"/> <arg value="-o"/> <arg file="${src.client}"/> </java> </target> I was wondering if using the option -uw would help in anyway. Cheers, Patrick. This message contains information that may be privileged or confidential and is the property of Eurostep Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Amila Suriarachchi, WSO2 Inc.