Bugs item #889078, was opened at 2004-02-02 14:35
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=889078&group_id=22866
Category: JBossSOAP
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Marek Lange (mlange99)
Assigned to: Nobody/Anonymous (nobody)
Summary: WSDL generation broken in >=3.2.2
Initial Comment:
In JBoss 3.2.3 we have problems with the generated
WSDL:
<simpleType name="ObjectNameType">
<simpleContent>
<extension base="xsd:string"/>
</simpleContent>
</simpleType>
According to the schema definition, this is not correct.
<simpleType> must not follow <simpleContent> (only
<complexType>):
Schema error - undefined schema
component 'simpleContent' encountered - expected:
(annotation | list | restriction | union)
The problematic code seems to be in
org.jboss.net.jmx.adaptor.ObjectNameSerializer:
/**
* Return XML schema for the specified type.
* Our type simply inherits from string.
*/
public Element writeSchema(Class clazz, Types types)
throws Exception {
// ComplexType representation of SimpleType bean
class
Element simpleType = types.createElement
("simpleType");
types.writeSchemaElement(xmlType, simpleType);
simpleType.setAttribute("name",
xmlType.getLocalPart());
Element simpleContent = types.createElement
("simpleContent");
simpleType.appendChild(simpleContent);
Element extension = types.createElement
("extension");
simpleContent.appendChild(extension);
extension.setAttribute(
"base",
types.getNamespaces().getCreatePrefix(
XMLType.XSD_STRING.getNamespaceURI())
+ ":"
+ XMLType.XSD_STRING.getLocalPart());
return simpleType;
}
The WSDL from 3.2.1 worked.
Thanks!
-marek
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=889078&group_id=22866
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development