Author: chris.laprun(a)jboss.com
Date: 2011-09-27 11:36:45 -0400 (Tue, 27 Sep 2011)
New Revision: 7532
Modified:
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/services/SOAPServiceFactory.java
Log:
- Added WSDL url to exception logging.
Modified:
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/services/SOAPServiceFactory.java
===================================================================
---
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/services/SOAPServiceFactory.java 2011-09-27
15:17:24 UTC (rev 7531)
+++
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/services/SOAPServiceFactory.java 2011-09-27
15:36:45 UTC (rev 7532)
@@ -1,6 +1,6 @@
/*
* JBoss, a division of Red Hat
- * Copyright 2010, Red Hat Middleware, LLC, and individual
+ * Copyright 2011, Red Hat Middleware, LLC, and individual
* contributors as indicated by the @authors tag. See the
* copyright.txt in the distribution for a full listing of
* individual contributors.
@@ -58,7 +58,6 @@
import javax.xml.ws.handler.Handler;
import javax.xml.ws.handler.soap.SOAPHandler;
import javax.xml.ws.handler.soap.SOAPMessageContext;
-
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
@@ -100,7 +99,7 @@
private boolean failed;
private boolean available;
private int msBeforeTimeOut = DEFAULT_TIMEOUT_MS;
-
+
private boolean wssEnabled;
private void setTimeout(Map<String, Object> requestContext)
@@ -138,7 +137,7 @@
{
handlerChain.add(REQUEST_HEADER_CLIENT_HANDLER);
}
-
+
addWSSHandlers(handlerChain);
}
else
@@ -146,7 +145,7 @@
// otherwise, create a handler chain and add our handler to it
handlerChain = new ArrayList<Handler>(1);
handlerChain.add(REQUEST_HEADER_CLIENT_HANDLER);
-
+
addWSSHandlers(handlerChain);
}
binding.setHandlerChain(handlerChain);
@@ -414,7 +413,7 @@
}
catch (Exception e)
{
- log.info("Couldn't access WSDL information. Service won't be
available", e);
+ log.info("Couldn't access WSDL information at" + wsdlDefinitionURL
+ ". Service won't be available", e);
setAvailable(false);
setFailed(true);
throw e;
@@ -518,7 +517,7 @@
{
return this.wssEnabled;
}
-
+
public boolean isWSSAvailable()
{
WebServiceSecurityFactory wssFactory = WebServiceSecurityFactory.getInstance();
@@ -531,7 +530,7 @@
return false;
}
}
-
+
protected void addWSSHandlers(List<Handler> handlerChain)
{
if (wssEnabled)
Show replies by date