Details
-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
jbossws-native-3.0.4
-
None
Description
jboss-ws-security_1_0.xsd is broken: The example file found at http://jbossws.jboss.org/mediawiki/index.php?title=WS-Security_options#Username_Token_Authentication would be incorrect because <xs:complexType name="requiresType"> : doesn't have the element "username" (see line 158ff).
These lines should be added:
<xs:element name="username" type="usernameType" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Indicates that a username element must be present in the message.</xs:documentation>
</xs:annotation>
</xs:element>
Without this declaration schema validation fails regarding <username/> e.g. when editing jboss-wsse-server.xml and jboss-wsse-client.xml by using JBossTools.
For completeness: here is the example file of the Wiki page (see above):
<jboss-ws-security xmlns="http://www.jboss.com/ws-security/config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/ws-security/config
http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
<config>
<username/>
<timestamp ttl="300"/>
</config>
</jboss-ws-security>