Author: jeff.yuchang
Date: 2011-01-20 00:34:43 -0500 (Thu, 20 Jan 2011)
New Revision: 1249
Modified:
branches/RiftSaw-2.2.x/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/ws/WSDLHelper.java
Log:
*RIFTSAW-331, fixed the 'couldn't find the port' issue.
Modified:
branches/RiftSaw-2.2.x/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/ws/WSDLHelper.java
===================================================================
---
branches/RiftSaw-2.2.x/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/ws/WSDLHelper.java 2011-01-19
00:23:43 UTC (rev 1248)
+++
branches/RiftSaw-2.2.x/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/ws/WSDLHelper.java 2011-01-20
05:34:43 UTC (rev 1249)
@@ -39,9 +39,9 @@
try
{
WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader();
- Definition def = wsdlReader.readWSDL(f.toURL().toExternalForm());
+ Definition def = wsdlReader.readWSDL(f.toURL().toExternalForm());
URL url = new WSDLParser(def).getServiceLocationURL(serviceName, portName);
- if(url!=null)
+ if(url!=null &&
(def.getTargetNamespace().equals(serviceName.getNamespaceURI())))
{
targetWsdlFile = f;
log.debug("Matching "+processId + " to WSDL file
"+targetWsdlFile);