WSDLInterface wsdl = (WSDLInterface)wsdlIC.getInterface();
WSDLDefinition d = wsdl.getWsdlDefinition();
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
try {
WSDLWriter writer = javax.wsdl.factory.WSDLFactory.newInstance().newWSDLWriter();
writer.writeWSDL(d.getDefinition(), outStream);
} catch (Exception e){
throw new RuntimeException(e);
}
return outStream.toString();
}