Getting JAX-WS profile to work with Xmlbeans binding
----------------------------------------------------
Key: XFIRE-1020
URL: http://jira.codehaus.org/browse/XFIRE-1020
Project: XFire
Issue Type: Improvement
Components: JAX-WS, XMLBeans
Affects Versions: 1.2.6
Environment: JDK 1.5, XmlBeans, Windows
Reporter: Knut-Erik Johnsen
Assignee: Dan Diephouse
Currently the JAX-WS module does not support xmlbeans type generation, only
jaxb. If you try to use xmlbeans you get an exception when trying to read the
response values. To allow the use of xmlbeans change to the following in
JAXWSTypeCreator.java
{noformat}
@Override
protected Type createTypeForClass(TypeClassInfo info)
{
Class clazz = info.getTypeClass();
if (JaxbTypeCreator.isJaxbType(clazz))
{
JaxbType type = new JaxbType(clazz);
type.getSchemaType();
return type;
} else if (XmlBeansTypeCreator.isXmlBeanType(clazz)) {
XmlBeansType type = new XmlBeansType(clazz);
type.getSchemaType();
return type;
}
return super.createTypeForClass(info);
}
{noformat}
This code uses isXmlBeanType which should be added to the
XmlBeansTypeCreator.java like the code below
{noformat}
public static boolean isXmlBeanType(Class clazz) {
return XmlObject.class.isAssignableFrom(clazz);
}
{noformat}
A similar method allready exists, but its a private method. The signature of
that method could perhaps be changed rather than adding another method that
does exactly the same.
--
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