You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by in...@apache.org on 2009/02/20 19:09:12 UTC
svn commit: r746317 -
/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/utils/WSDL11EndpointBuilder.java
Author: indika
Date: Fri Feb 20 18:09:11 2009
New Revision: 746317
URL: http://svn.apache.org/viewvc?rev=746317&view=rev
Log:
log the error
Modified:
synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/utils/WSDL11EndpointBuilder.java
Modified: synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/utils/WSDL11EndpointBuilder.java
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/utils/WSDL11EndpointBuilder.java?rev=746317&r1=746316&r2=746317&view=diff
==============================================================================
--- synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/utils/WSDL11EndpointBuilder.java (original)
+++ synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/utils/WSDL11EndpointBuilder.java Fri Feb 20 18:09:11 2009
@@ -60,21 +60,20 @@
* endpoint configuration.
*
* @param baseUri base uri of the wsdl
- * @param wsdl OMElement representing the inline WSDL
+ * @param wsdl OMElement representing the inline WSDL
* @param service Service of the endpoint
- * @param port Port of the endpoint
- *
+ * @param port Port of the endpoint
* @return EndpointDefinition containing the information retrieved from the WSDL
*/
public EndpointDefinition createEndpointDefinitionFromWSDL(String baseUri, OMElement wsdl,
- String service, String port) {
+ String service, String port) {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
wsdl.serialize(baos);
InputStream in = new ByteArrayInputStream(baos.toByteArray());
InputSource inputSource = new InputSource(in);
- WSDLLocator wsdlLocator = new CustomWSDLLocator(inputSource,baseUri);
+ WSDLLocator wsdlLocator = new CustomWSDLLocator(inputSource, baseUri);
Document doc = null;
try {
doc = XMLUtils.newDocument(inputSource);
@@ -83,7 +82,7 @@
} catch (SAXException e) {
handleException("Parser SAX Error", e);
} catch (IOException e) {
- handleException(WSDLException.INVALID_WSDL+ "IO Error",e);
+ handleException(WSDLException.INVALID_WSDL + "IO Error", e);
}
if (doc != null) {
WSDLFactory fac = WSDLFactory.newInstance();
@@ -92,16 +91,16 @@
return createEndpointDefinitionFromWSDL(definition, service, port);
}
} catch (XMLStreamException e) {
- handleException("Error retrieving the WSDL definition from the inline WSDL.");
+ handleException("Error retrieving the WSDL definition from the inline WSDL.", e);
} catch (WSDLException e) {
- handleException("Error retrieving the WSDL definition from the inline WSDL.");
+ handleException("Error retrieving the WSDL definition from the inline WSDL.", e);
}
return null;
}
private EndpointDefinition createEndpointDefinitionFromWSDL(Definition definition,
- String serviceName, String portName) {
+ String serviceName, String portName) {
if (definition == null) {
handleException("WSDL document is not specified.");