From 2053c07b1d8de5a7aba3155402cd7d0e42e6ab70 Mon Sep 17 00:00:00 2001 From: slaws Date: Tue, 22 Jun 2010 12:55:20 +0000 Subject: Small improvement to message reported to include exception text when interface is not valid git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@956867 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tuscany/sca/binding/ws/xml/WebServiceBindingProcessor.java | 2 +- .../src/main/resources/binding-wsxml-validation-messages.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sca-java-2.x/trunk/modules') diff --git a/sca-java-2.x/trunk/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/xml/WebServiceBindingProcessor.java b/sca-java-2.x/trunk/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/xml/WebServiceBindingProcessor.java index 67bd206115..7231925787 100644 --- a/sca-java-2.x/trunk/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/xml/WebServiceBindingProcessor.java +++ b/sca-java-2.x/trunk/modules/binding-ws/src/main/java/org/apache/tuscany/sca/binding/ws/xml/WebServiceBindingProcessor.java @@ -389,7 +389,7 @@ public class WebServiceBindingProcessor extends BaseStAXArtifactProcessor implem try { wsdlInterface = wsdlFactory.createWSDLInterface(portType, wsdlDefinition, resolver, context.getMonitor()); } catch (InvalidInterfaceException e) { - warning(monitor, "InvalidInterfaceException", wsdlFactory, model.getName()); + warning(monitor, "InvalidInterfaceException", wsdlFactory, model.getName(), e.getMessage()); } interfaceContract.setInterface(wsdlInterface); model.setBindingInterfaceContract(interfaceContract); diff --git a/sca-java-2.x/trunk/modules/binding-ws/src/main/resources/binding-wsxml-validation-messages.properties b/sca-java-2.x/trunk/modules/binding-ws/src/main/resources/binding-wsxml-validation-messages.properties index a355d1b5ae..215220a72d 100644 --- a/sca-java-2.x/trunk/modules/binding-ws/src/main/resources/binding-wsxml-validation-messages.properties +++ b/sca-java-2.x/trunk/modules/binding-ws/src/main/resources/binding-wsxml-validation-messages.properties @@ -20,7 +20,7 @@ # InvalidWsdlElementAttr = Invalid WebService binding wsdlElement attribute: {0} MustUseWsdlBinding = {0} must use wsdl.binding when using wsa:EndpointReference -InvalidInterfaceException = Exception creating interface from WSDL for binding: {0} +InvalidInterfaceException = Exception creating interface from WSDL for binding {0} exception {1} WsdlBindingDoesNotMatch = The #wsdl.binding({0}) not found in the available WSDL Definitions WsdlServiceDoesNotMatch = [BWS20005] The #wsdl.service({0}) not found in the available WSDL Definitions WsdlPortTypeDoesNotMatch = The #wsdl.port({0}) does not match with the WSDL Definitions -- cgit v1.2.3