-
Notifications
You must be signed in to change notification settings - Fork 317
Description
Mark LaFond opened SWS-281 and commented
Currently, Spring WS does not seem to have support for serving up xsd's that are imported into static wsdl. There is also no support for xsd's that import other xsd's. Both situations are considered best practices by schema and wsdl designers.
The schemaLocation attribute should be transformed in the same way that the location attribute is transformed for wsdl's today to include the request specific server info depending on where the application is deployed.
Usage Examples:
wsdl (with imported xsd)
request
http://localhost:7001/Services/8.02/Example?wsdl
response (partial)
<wsdl:definitions name="Example" targetNamespace="http://services">
<wsdl:types>
<xs:schema>
<xs:import namespace="http://customer/types" schemaLocation="http://localhost:7001/Services/8.02/Example?Customer.xsd"/>
</xs:schema>
</wsdl:types>
xsd (with imported xsd)
request
http://localhost:7001/Services/8.02/Example?Customer.xsd
response (partial)
<xs:schema targetNamespace="http://customer/types">
<xs:import namespace="http://order/types" schemaLocation="http://localhost:7001/Services/8.02/Example?Order.xsd"/>
Attachments:
- springws.zip (19.42 kB)
Issue Links:
-
Enable MessageDispatcherServlet to serve included xml schemas [SWS-250] #405 Enable MessageDispatcherServlet to serve included xml schemas
("is duplicated by") -
Create and use some wrapper around javax.xml.validation.Schema [SWS-179] #333 Create and use some wrapper around javax.xml.validation.Schema
-
Request to inline included XSD's in auto generated WSDL's [SWS-271] #428 Request to inline included XSD's in auto generated WSDL's
-
HandlerAdapter for XsdSchemas [SWS-346] #498 HandlerAdapter for XsdSchemas
("is superseded by")
Referenced from: commits 917f939
8 votes, 11 watchers