Author: chris.laprun(a)jboss.com
Date: 2010-09-06 14:28:40 -0400 (Mon, 06 Sep 2010)
New Revision: 4054
Modified:
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/services/SOAPServiceFactory.java
Log:
- GTNWSRP-68: Only check for NS inconsistency if the NS is either WSRP 1 or WSRP 2. Ignore
ports with unknown namespaces.
- Fixed typo.
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 2010-09-06
15:22:37 UTC (rev 4053)
+++
components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/services/SOAPServiceFactory.java 2010-09-06
18:28:40 UTC (rev 4054)
@@ -394,12 +394,20 @@
String bindingNSURI = null;
for (Port port : ports.values())
{
- String newBindingNS = port.getBinding().getQName().getNamespaceURI();
- if (bindingNSURI != null &&
!bindingNSURI.equals(newBindingNS))
+ QName bindingName = port.getBinding().getQName();
+ String newBindingNS = bindingName.getNamespaceURI();
+ if (WSRP_V1_BINDING.equals(newBindingNS) ||
WSRP_V2_BINDING.equals(newBindingNS))
{
- throw new WSDLException(WSDLException.OTHER_ERROR,
"Inconsistend NS in port bindings. Aborting.");
+ if (bindingNSURI != null &&
!bindingNSURI.equals(newBindingNS))
+ {
+ throw new WSDLException(WSDLException.OTHER_ERROR,
"Inconsistent NS in port bindings. Aborting.");
+ }
+ bindingNSURI = newBindingNS;
}
- bindingNSURI = newBindingNS;
+ else
+ {
+ log.debug("Unknown binding namespace: " + newBindingNS +
". Ignoring binding: " + bindingName);
+ }
}
if (WSRP_V1_BINDING.equals(bindingNSURI))
{
Show replies by date