[ http://issues.apache.org/jira/browse/AXIS2-1056?page=all ]
Venkatakrishnan updated AXIS2-1056:
-----------------------------------
Attachment: Axis2-Java2WSDL-J1056-Aug-23.diff
buildlog.txt
Hi
Here is a patch for this. I have included one more commandline option "-xc
<classname>" for this purpose. If there are multiple classes for which
schematype must be generated then the usage is "-xc <class1> -xc <class2>..."
I have also refactored the Java2WSDLCodegenEngine class a bit. Most of the
user settings are passed across classes as separate pieces of data. I would
like to encapsulate all of this under 'GenerationConfig' and pass an instance
of this instead. I did not do this as I am not aware how this would impact
other modules that might be using java2wsdl.
BUT THEN... here are some issues : -
- It seems there is something that I am missing in the role of the
Java2OMBuilder. There is only one schema defintion this includes under the
wsdltypes. I tried testing it for more than one schema definition (five of
them infact belonging to different namespaces) and ended up having one schema
definition added multiple times. Has anybody complained about this upto or is
this only my unique experience? Anyways, I have fixed that in this patch and
it now works properly.
- my rough patch with building the entire Axis2 just continues. The build
consistently fails when building Apache Axis 2.0 - Integration. So I have
resorted to building the modules/java2wsdl project alone and I have been
successful in that. Since I have not changed the interfaces to any of the
classes, I hope this should be fine.
I have attached the build logs. If somebody can help me out of this I will
most certainly do a complete build and then resubmit this patch.
Thanks
- Venkat
> Java2Wsdl needs "extra classes" support
> ---------------------------------------
>
> Key: AXIS2-1056
> URL: http://issues.apache.org/jira/browse/AXIS2-1056
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: New Feature
> Components: Tools
> Reporter: Matt Parker
> Assigned To: Deepal Jayasinghe
> Attachments: Axis2-Java2WSDL-J1056-Aug-23.diff, buildlog.txt
>
>
> In Axis 1, Java2Wsdl has support for "extraclasses," which allows the wsdl to
> generate complex types for subclasses that are possible return types for
> methods that return abstract classes or interfaces. For example:
> One might have an abstract class "com.myCo.fruit.Fruit.java" that has the
> subclasses "com.myCo.fruit.FruitApple.java" and
> "com.myCo.fruit.FruitOrange.java". If there is a method in our service
> interface:
> public Fruit getUsersFavoriteFruit(User user){
> return fruitService.getFavoriteFruit(user);
> }
> I want my WSDL to have definitions of not just Fruit, but also FruitOrange
> and FruitApple so my client will be able to handle those types. In Axis 1,
> you could add something to you ant task like:
> extraclasses="com.myCo.fruit.FruitApple.java,
> com.myCo.fruit.FruitOrange.java"
> Is there the possibility of getting this feature in Axis2?
> Thanks,
> Matt
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]