Hello Amila,
I did try with other databinding framework, I actually started with ADB
but the type schema is a bit too complex for it so I changed to
xmlbeans which generate the java type data model correctly. I haven't
succeeded to make JiBX working (lack of experience from my side I guess
and the documentation is not really explicit on this).
I actually did more investigations and noticed that if I separate all
the resources (the binary) generated from each WSDL (using the -R
option) while all the sources are in the same output folder it works.
The only problem now is a performance problem which I don't know if
it's an AXIS2 problem or a server side problem yet (the server is .NET
based). I suspect an AXIS2 problem as .NET client do not have any
performance issues.
When you suggest to merge the wsdl files in one, do you mean that AXIS2
(xmbeans generation) supports several <service>
...</service> in the wsdl?
Cheers,
Patrick.
Amila Suriarachchi wrote:
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.
--
------------------------------------------------------------------
| Patrick Houbaux
| Senior Consultant
| Eurostep AB Email: [EMAIL PROTECTED]
| Drottninggatan 68 Mobile: +33 611 192 943
| SE-111 21 Stockholm Fax: +46 (0) 8-200 399
| Sweden URL: http://www.eurostep.com
| Skype name: phoubaux
| Home address:
| BAT A11
| 12 Rue de Paris
| F-78560 Le Port-Marly
| France
-------------------------------------------------------------------
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]
|