Bugs item #889078, was opened at 2004-02-02 14:35
Message generated for change (Comment added) made by cgjung
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=889078&group_id=22866
Category: JBossSOAP
Group: v3.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Marek Lange (mlange99)
Assigned to: Dr. Christoph Georg Jung (cgjung)
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
----------------------------------------------------------------------
>Comment By: Dr. Christoph Georg Jung (cgjung)
Date: 2004-02-19 17:08
Message:
Logged In: YES
user_id=175199
should be resolved now in head and 3.2 branch.
----------------------------------------------------------------------
Comment By: Marek Lange (mlange99)
Date: 2004-02-02 14:37
Message:
Logged In: YES
user_id=759286
Problematic WSDL part:
<simpleType name="ObjectNameType">
<simpleContent>
<extension base="xsd:string"/>
</simpleContent>
</simpleType>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=889078&group_id=22866
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development