Skip to content

add support for imported xsd in static wsdl as well as xsd's that import other xsd's [SWS-281] #438

@gregturn

Description

@gregturn

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:

Issue Links:

Referenced from: commits 917f939

8 votes, 11 watchers

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions