serviceURL = msgContext.getTo().getAddress();
} else {
throw new DataRetrievalException("MessageContext was not set!");
}
AxisService2OM axisService2WOM;
OMElement wsdlElement;
try {
String[] exposedEPRs = theService.getEPRs();
if (exposedEPRs == null) {
exposedEPRs = new String[]{theService.getEndpointName()};
}
axisService2WOM = new AxisService2OM(theService,
exposedEPRs, "document", "literal",
"");
wsdlElement = axisService2WOM.generateOM();
}
catch (Exception e) {
log.debug(e);
throw new DataRetrievalException(e);
}