diff options
Diffstat (limited to '')
-rw-r--r-- | sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLInterfaceProcessor.java | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLInterfaceProcessor.java b/sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLInterfaceProcessor.java index 46a2475fe7..94d7799402 100644 --- a/sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLInterfaceProcessor.java +++ b/sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLInterfaceProcessor.java @@ -411,16 +411,26 @@ public class WSDLInterfaceProcessor extends BaseStAXArtifactProcessor implements } } + if (wsdlDefinition == null){ + Monitor.error(context.getMonitor(), + WSDLInterfaceProcessor.class.getName(), + "interface-wsdlxml-validation-messages", + "wsdliLocationException", + "WSDL not found inside contribution at relative URI " + wsdlFileURI ); + return; + } + } catch (Exception ex) { - ex.printStackTrace(); - // TODO - raise error + Monitor.error(context.getMonitor(), + WSDLInterfaceProcessor.class.getName(), + "interface-wsdlxml-validation-messages", + "wsdliLocationException", + ex.getMessage() ); + return; + } } - if (wsdlDefinition == null){ - // TODO raise an error - } - wsdlInterface.setWsdlDefinition(wsdlDefinition); PortType portType = (PortType)wsdlDefinition.getDefinition().getAllPortTypes().values().iterator().next(); if(portType != null){ |