]
Jason T. Greene updated JBWS-1370:
----------------------------------
Summary: CTS: Cannot obtain xmlType for bare request/response object (was: Cannot
obtain xmlType for bare request/response object)
CTS: Cannot obtain xmlType for bare request/response object
-----------------------------------------------------------
Key: JBWS-1370
URL:
http://jira.jboss.com/jira/browse/JBWS-1370
Project: JBoss Web Services
Issue Type: Bug
Components: jaxws
Environment:
jaxws/api/javax_xml_ws/AsyncHandler/Client.java#HandleResponseJAXBTest_from_wsappclient
Reporter: Thomas Diesler
Assigned To: Jason T. Greene
Fix For: jbossws-2.0.0.CR2
19:02:04,844 WARN [JSR181MetaDataBuilder] Cannot obtain xml type for:
[
xmlName={http://helloservice.org/types}HelloRequest,javaName=com.sun.ts.t...]
19:02:04,845 WARN [JSR181MetaDataBuilder] Cannot obtain xml type for:
[
xmlName={http://helloservice.org/types}HelloResponse,javaName=com.sun.ts....]
19:02:04,845 WARN [JSR181MetaDataBuilder] Cannot obtain xml type for:
[
xmlName={http://helloservice.org/types}HelloOneWayRequest,javaName=com.su...]
private void populateXmlType(ParameterMetaData paramMetaData)
{
EndpointMetaData epMetaData =
paramMetaData.getOperationMetaData().getEndpointMetaData();
TypesMetaData types = epMetaData.getServiceMetaData().getTypesMetaData();
JAXBRIContext jaxbCtx = getJAXBContext(epMetaData);
QName xmlName = paramMetaData.getXmlName();
QName xmlType = paramMetaData.getXmlType();
Class javaType = paramMetaData.getJavaType();
String javaName = paramMetaData.getJavaTypeName();
if (xmlType == null)
{
xmlType = jaxbCtx.getTypeName(new TypeReference(xmlName, javaType));
if (xmlType == null)
log.warn("Cannot obtain xml type for: [xmlName=" + xmlName +
",javaName=" + javaName + "]");
if (xmlType != null)
{
paramMetaData.setXmlType(xmlType);
types.addTypeMapping(new TypeMappingMetaData(types, xmlType, javaName));
}
}
}
The stack relies on xmlType beeing available. Here I warn, but really an exception should
be thrown when the xmlType cannot be derrived.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: