Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Error in metadata element definition in spring-jax-ws-core.xsd #12

Open
glassfishrobot opened this issue Sep 10, 2007 · 3 comments
Open

Comments

@glassfishrobot
Copy link
Contributor

It should be possible to specify multiple values for the ws:metadata element.
This is actually supported by the code in the SpringService class which has the
appropriate setter method:

void setMetadata(Collection metadata)

However, the element definition in spring-jax-ws-core.xsd only allows for a
single value:

<xs:element name='metadata' minOccurs='0' maxOccurs='1'>
xs:complexType
<xs:sequence minOccurs='0' maxOccurs='1'><xs:any
namespace='##other'/></xs:sequence>
</xs:complexType>
</xs:element>

Changing the value of the maxOccurs attribute on the xs:sequence element to
"unbounded" solves the issue and the following declaration is accepted:

<ws:service bean="#myPort">
ws:metadata
/WEB-INF/wsdl/schema1.xsd
/WEB-INF/wsdl/schema2.xsd
/WEB-INF/wsdl/schema3.xsd
</ws:metadata>
ws:primaryWsdl/WEB-INF/wsdl/myservice.wsdl</ws:primaryWsdl>
</ws:service>

Environment

Operating System: All
Platform: All

Affected Versions

[current]

@glassfishrobot
Copy link
Contributor Author

Reported by [email protected]

@glassfishrobot
Copy link
Contributor Author

Was assigned to [email protected]

@glassfishrobot
Copy link
Contributor Author

This issue was imported from java.net JIRA JAX_WS_COMMONS-12

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant