You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Federica Ciotti (JIRA)" <xm...@xml.apache.org> on 2007/03/13 11:58:09 UTC
[jira] Created: (XMLBEANS-318) not able to generate inner
classes/interfaces
not able to generate inner classes/interfaces
---------------------------------------------
Key: XMLBEANS-318
URL: https://issues.apache.org/jira/browse/XMLBEANS-318
Project: XMLBeans
Issue Type: Bug
Affects Versions: Version 2.2
Environment: Linux Fedora fc5, tomcat 6.0.7, java1.5.0_11, Axis2 1.1.1, xmlbeans 2.2.0
Reporter: Federica Ciotti
I'm using the wsdl2java axis ant task with xmlbeans.
For each complex element in my xsd referenced in wsdl, let say save_business, I get
the two interfaces:
SaveBusiness.java
SaveBusinessDocument.java
and the two classes:
impl/SaveBusinessDocumentImpl.java
impl/SaveBusinessImpl.java
Why don't I get SaveBusiness interface contained in SaveBusinessDocument?
I thought it depends on the -u options but using this option doesn't make any difference in my case.
Many Thanks
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Commented: (XMLBEANS-318) not able to generate inner
classes/interfaces
Posted by "Federica Ciotti (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12491579 ]
Federica Ciotti commented on XMLBEANS-318:
------------------------------------------
Hi Jacob,
Thanks for providing me this link, it is a very exhaustive explanation of XML schemas design strategies.
I found out that my schema follows the design strategy "Venetian Blind" and thus all the elements, complexTypes and simpleTypes are declared globally.
All the others example I looked at were "Russian doll".
It is clear how this design aspect influences the generated classes.
The problem was that I have a very complex schema and I haven't possibilities to change it. I just wanted to understand if there was a way to reduce the number of generated classes.
Many Thanks.
Federica Ciotti
> not able to generate inner classes/interfaces
> ---------------------------------------------
>
> Key: XMLBEANS-318
> URL: https://issues.apache.org/jira/browse/XMLBEANS-318
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2.2
> Environment: Linux Fedora fc5, tomcat 6.0.7, java1.5.0_11, Axis2 1.1.1, xmlbeans 2.2.0
> Reporter: Federica Ciotti
> Assigned To: Jacob Danner
> Priority: Minor
>
> I'm using the wsdl2java axis ant task with xmlbeans.
> For each complex element in my xsd referenced in wsdl, let say save_business, I get
> the two interfaces:
> SaveBusiness.java
> SaveBusinessDocument.java
> and the two classes:
> impl/SaveBusinessDocumentImpl.java
> impl/SaveBusinessImpl.java
> Why don't I get SaveBusiness interface contained in SaveBusinessDocument?
> I thought it depends on the -u options but using this option doesn't make any difference in my case.
> Many Thanks
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Commented: (XMLBEANS-318) not able to generate inner
classes/interfaces
Posted by "Federica Ciotti (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480449 ]
Federica Ciotti commented on XMLBEANS-318:
------------------------------------------
Thank you for the quick reply Jacob.
I will try to explain my doubts.
1. I have a doc/lit wsdl
2."Why don't I get SaveBusiness interface contained in SaveBusinessDocument?"
This question comes form the example that comes with axis2 1.1.1 and from the code shown here http://www.sosnoski.com/jibx-wiki/space/axis2-jibx/example/xmlbeans-client.
In both cases the generated classes look like this:
public interface AddBookDocument extends org.apache.xmlbeans.XmlObject
{
.....
public interface AddBook extends org.apache.xmlbeans.XmlObject
{............... }
public static final class Factory
{.................}
}
When using my wsdl the two different interfaces are generate in different files.
I see it has the same semantic.
I'm referring to the wsd2java options -u, Unpack classes. This option specifies whether to unpack the classes and generate separate classes for the databinders. (http://ws.apache.org/axis2/tools/1_1/CodegenToolReference.html#example)
3. "In addition to this, the #####Document versions of classes and interfaces are generated for all complex elements in xsd, and not only for those used in wsdl <message> element as expected. "
XXDocument is generated for global elements in the schema, right? Ok I understand now. This is way all my complex types have a XXDocument... but I only need the XXDocument referenced in wsdl<message> element.
Many Thanks
> not able to generate inner classes/interfaces
> ---------------------------------------------
>
> Key: XMLBEANS-318
> URL: https://issues.apache.org/jira/browse/XMLBEANS-318
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2.2
> Environment: Linux Fedora fc5, tomcat 6.0.7, java1.5.0_11, Axis2 1.1.1, xmlbeans 2.2.0
> Reporter: Federica Ciotti
>
> I'm using the wsdl2java axis ant task with xmlbeans.
> For each complex element in my xsd referenced in wsdl, let say save_business, I get
> the two interfaces:
> SaveBusiness.java
> SaveBusinessDocument.java
> and the two classes:
> impl/SaveBusinessDocumentImpl.java
> impl/SaveBusinessImpl.java
> Why don't I get SaveBusiness interface contained in SaveBusinessDocument?
> I thought it depends on the -u options but using this option doesn't make any difference in my case.
> Many Thanks
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Commented: (XMLBEANS-318) not able to generate inner
classes/interfaces
Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481362 ]
Jacob Danner commented on XMLBEANS-318:
---------------------------------------
I thought I had commented on this.
I'm pretty sure the problem you are seeing is a result of schema design.
Take a peek at the URL below:
http://www.xfront.com/GlobalVersusLocal.html
It goes into detail on the different schema designs.
Each design produces a different object model in the java code and my guess is the xsd/wsdl you are trying to use is actually using a different design.
Federica, can you take a peek at the URL above and let us know if this makes sense and/or solves your problem?
> not able to generate inner classes/interfaces
> ---------------------------------------------
>
> Key: XMLBEANS-318
> URL: https://issues.apache.org/jira/browse/XMLBEANS-318
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2.2
> Environment: Linux Fedora fc5, tomcat 6.0.7, java1.5.0_11, Axis2 1.1.1, xmlbeans 2.2.0
> Reporter: Federica Ciotti
> Assigned To: Jacob Danner
> Priority: Minor
>
> I'm using the wsdl2java axis ant task with xmlbeans.
> For each complex element in my xsd referenced in wsdl, let say save_business, I get
> the two interfaces:
> SaveBusiness.java
> SaveBusinessDocument.java
> and the two classes:
> impl/SaveBusinessDocumentImpl.java
> impl/SaveBusinessImpl.java
> Why don't I get SaveBusiness interface contained in SaveBusinessDocument?
> I thought it depends on the -u options but using this option doesn't make any difference in my case.
> Many Thanks
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Commented: (XMLBEANS-318) not able to generate inner
classes/interfaces
Posted by "Federica Ciotti (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480356 ]
Federica Ciotti commented on XMLBEANS-318:
------------------------------------------
In addition to this, the #####Document versions of classes and interfaces are generated for all complex elements in xsd, and not only for those used in wsdl <message> element as expected.
> not able to generate inner classes/interfaces
> ---------------------------------------------
>
> Key: XMLBEANS-318
> URL: https://issues.apache.org/jira/browse/XMLBEANS-318
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2.2
> Environment: Linux Fedora fc5, tomcat 6.0.7, java1.5.0_11, Axis2 1.1.1, xmlbeans 2.2.0
> Reporter: Federica Ciotti
>
> I'm using the wsdl2java axis ant task with xmlbeans.
> For each complex element in my xsd referenced in wsdl, let say save_business, I get
> the two interfaces:
> SaveBusiness.java
> SaveBusinessDocument.java
> and the two classes:
> impl/SaveBusinessDocumentImpl.java
> impl/SaveBusinessImpl.java
> Why don't I get SaveBusiness interface contained in SaveBusinessDocument?
> I thought it depends on the -u options but using this option doesn't make any difference in my case.
> Many Thanks
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Closed: (XMLBEANS-318) not able to generate inner
classes/interfaces
Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacob Danner closed XMLBEANS-318.
---------------------------------
Assignee: (was: Jacob Danner)
Closing per comments earlier
> not able to generate inner classes/interfaces
> ---------------------------------------------
>
> Key: XMLBEANS-318
> URL: https://issues.apache.org/jira/browse/XMLBEANS-318
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2.2
> Environment: Linux Fedora fc5, tomcat 6.0.7, java1.5.0_11, Axis2 1.1.1, xmlbeans 2.2.0
> Reporter: Federica Ciotti
> Priority: Minor
>
> I'm using the wsdl2java axis ant task with xmlbeans.
> For each complex element in my xsd referenced in wsdl, let say save_business, I get
> the two interfaces:
> SaveBusiness.java
> SaveBusinessDocument.java
> and the two classes:
> impl/SaveBusinessDocumentImpl.java
> impl/SaveBusinessImpl.java
> Why don't I get SaveBusiness interface contained in SaveBusinessDocument?
> I thought it depends on the -u options but using this option doesn't make any difference in my case.
> Many Thanks
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Commented: (XMLBEANS-318) not able to generate inner
classes/interfaces
Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12480429 ]
Jacob Danner commented on XMLBEANS-318:
---------------------------------------
"and not only for those used in wsdl <message> element as expected"
XmlBeans works for Document/Literal WSDLs. The types specified in the wsdl<message> element lead me to believe you are trying to use an RPC based (literal || encoded) service. Is this the case? If so, that is expected behavior.
What -u option are your referring to ?
As far as XXDocument types, those are generated when global element are found in the schema. I'm not sure what you mean by
"Why don't I get SaveBusiness interface contained in SaveBusinessDocument?"
Could you explain?
Is xmlbeans doing something different than the scenario explained in:
http://xmlbeans.apache.org/docs/2.0.0/guide/conGettingStartedwithXMLBeans.html
Thanks,
-Jacobd
> not able to generate inner classes/interfaces
> ---------------------------------------------
>
> Key: XMLBEANS-318
> URL: https://issues.apache.org/jira/browse/XMLBEANS-318
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2.2
> Environment: Linux Fedora fc5, tomcat 6.0.7, java1.5.0_11, Axis2 1.1.1, xmlbeans 2.2.0
> Reporter: Federica Ciotti
>
> I'm using the wsdl2java axis ant task with xmlbeans.
> For each complex element in my xsd referenced in wsdl, let say save_business, I get
> the two interfaces:
> SaveBusiness.java
> SaveBusinessDocument.java
> and the two classes:
> impl/SaveBusinessDocumentImpl.java
> impl/SaveBusinessImpl.java
> Why don't I get SaveBusiness interface contained in SaveBusinessDocument?
> I thought it depends on the -u options but using this option doesn't make any difference in my case.
> Many Thanks
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[jira] Resolved: (XMLBEANS-318) not able to generate inner
classes/interfaces
Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XMLBEANS-318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacob Danner resolved XMLBEANS-318.
-----------------------------------
Resolution: Won't Fix
Thanks for the updates Federica
> not able to generate inner classes/interfaces
> ---------------------------------------------
>
> Key: XMLBEANS-318
> URL: https://issues.apache.org/jira/browse/XMLBEANS-318
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2.2
> Environment: Linux Fedora fc5, tomcat 6.0.7, java1.5.0_11, Axis2 1.1.1, xmlbeans 2.2.0
> Reporter: Federica Ciotti
> Assigned To: Jacob Danner
> Priority: Minor
>
> I'm using the wsdl2java axis ant task with xmlbeans.
> For each complex element in my xsd referenced in wsdl, let say save_business, I get
> the two interfaces:
> SaveBusiness.java
> SaveBusinessDocument.java
> and the two classes:
> impl/SaveBusinessDocumentImpl.java
> impl/SaveBusinessImpl.java
> Why don't I get SaveBusiness interface contained in SaveBusinessDocument?
> I thought it depends on the -u options but using this option doesn't make any difference in my case.
> Many Thanks
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org