String wsdlUrl = getClass().getResource("hello_world_wrap.wsdl").toString();
WSDLManagerImpl builder = new WSDLManagerImpl();
builder.setXMLStreamReaderWrapper(new XMLStreamReaderWrapper() {
@Override
public XMLStreamReader wrap(XMLStreamReader reader) {
return new PropertiesExpandingStreamReader(reader, map);
}
});
Definition def = builder.getDefinition(wsdlUrl);
java.io.ByteArrayOutputStream bos = new java.io.ByteArrayOutputStream();
builder.getWSDLFactory().newWSDLWriter().writeWSDL(def, bos);