StreamUtils.copy(is, baos);
String schemaContent = baos.toString();
Schema schema = schemaFactory.newSchema(new StreamSource(new StringReader(schemaContent)));
String uriVersionStripped = stripMinorVersionFromUri(soapServiceDesc.getServiceContextPath() + soapServiceDesc.getServiceVersion());
for (OperationBindingDescriptor desc : soapServiceDesc.getOperationBindings()) {
SoapOperationBindingDescriptor soapOpDesc = (SoapOperationBindingDescriptor) desc;
OperationDefinition opDef = getOperationDefinition(soapOpDesc.getOperationKey());
String operationName = uriVersionStripped + "/" + soapOpDesc.getRequestName().toLowerCase();
bindings.put(operationName,
new SoapOperationBinding(opDef, soapOpDesc,
soapServiceDesc, schema));
}
}