javaee / metro-jax-ws

https://javaee.github.io/metro-jax-ws/
Other
132 stars 68 forks source link

Fix for the bug 26497272 #1236

Closed vavishal closed 6 years ago

vavishal commented 6 years ago

Here the issue is that the JAX-WS is creating a master pseudo schema and the & present in schemaLocation is not transformed to amp&; due to which we are getting SchemaValidationError So I have modified the masterPseudoSchema method in AbstractSchemaValidationTube.java as follows

  1. First creating a document schema and adding the elements needed for masterPseudoSchema
  2. then creating DOMSource from the above created document
  3. then transforming DOMSource to xml string which will expand the required characters
  4. finally creating and returning StreamSource from the above transformed xml string
bravehorsie commented 6 years ago

This is correct repository to merge now.