[
http://jira.codehaus.org/browse/XFIRE-967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103340
]
Michael Mattox commented on XFIRE-967:
--------------------------------------
The fix suggested above works for me. Here is the fix. It's only a partial
fix, because I don't use attributes so I can't fix that part (if it's broken).
Thank you Emilio for finding the fix. And for Matthew, there is no workaround
to this problem, XFire 1.2-RC - 1.2.6 all have the same behavior.
public JType getType(GenerationContext context, QName concreteType, QName
schemaType)
throws GenerationException
{
SchemaType xst = loader.findDocumentType(concreteType);
if (xst == null)
{
xst = loader.findType(schemaType);
}
// BEGIN BUGFIX XFIRE-967
if (xst == null)
{
xst = loader.findDocumentType(schemaType);
}
// END BUGFIX XFIRE-967
> wsgen with xmlbeans binding does not create concrete objects
> ------------------------------------------------------------
>
> Key: XFIRE-967
> URL: http://jira.codehaus.org/browse/XFIRE-967
> Project: XFire
> Issue Type: Bug
> Components: Generator, XMLBeans
> Affects Versions: 1.2.5
> Environment: Mac OS X 10.4.9 with Java 1.5.0_07-164
> Reporter: Matthew J. Graham
> Assignee: Dan Diephouse
> Attachments: testcase.tar, wsdl.zip
>
>
> Using XFire 1.2.5 with XmlBeans 2.2.0 and wsgen (Maven2) to generate stub
> code produces methods such as:
> public XmlObject setNode(XmlObject node) throws InternalFaultMessage,
> InvalidArgumentFaultMessage, InvalidUriFaul tMessage,
> NodeNotFoundFaultMessage,
> PermissionDeniedFaultMessage
> {
> throw new UnsupportedOperationException();
> }
> whereas the same beans and XFire1.2RC produced:
> public SetNodeResponseDocument setNode(SetNodeDocument SetNode) throws
> InternalFault_Exception, InvalidArgumentFault_Exception,
> InvalidUriFault_Exception, NodeNotFoundFault_Exception,
> PermissionDeniedFault_Exception
> {
> throw new UnsupportedOperationException();
> }
> XFire 1.2.5 seems to have lost the ability to bind to the specific beans and
> just produces XmlObject.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email