axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject cvs commit: xml-axis-wsif/java/src/org/apache/wsif/providers/jms JMSFormatter.java
Date Fri, 13 Sep 2002 15:41:09 GMT
antelder    2002/09/13 08:41:09

  Modified:    java/src/org/apache/wsif/providers/jms JMSFormatter.java
  Log:
  Fix another couple of places where the native JMS provider wasn't correctly getting all
the services when the WSDL had services in imported WSDL documents.
  
  Revision  Changes    Path
  1.7       +6 -20     xml-axis-wsif/java/src/org/apache/wsif/providers/jms/JMSFormatter.java
  
  Index: JMSFormatter.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/jms/JMSFormatter.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- JMSFormatter.java	7 Aug 2002 15:10:25 -0000	1.6
  +++ JMSFormatter.java	13 Sep 2002 15:41:09 -0000	1.7
  @@ -61,31 +61,17 @@
   import java.io.OutputStream;
   import java.io.Serializable;
   import java.util.Iterator;
  -import java.util.List;
  +import java.util.Map;
   
  -import javax.jms.JMSException;
  -import javax.jms.Message;
  -import javax.wsdl.Binding;
   import javax.wsdl.BindingOperation;
  -import javax.wsdl.BindingOutput;
  -import javax.wsdl.Definition;
  -import javax.wsdl.Operation;
  -import javax.wsdl.Port;
  -import javax.wsdl.PortType;
  -import javax.wsdl.Service;
  -import javax.wsdl.extensions.ExtensibilityElement;
  -import javax.xml.namespace.QName;
   
   import org.apache.wsif.WSIFConstants;
   import org.apache.wsif.WSIFException;
  -import org.apache.wsif.WSIFMessage;
   import org.apache.wsif.WSIFRequest;
   import org.apache.wsif.WSIFResponse;
   import org.apache.wsif.format.WSIFFormatter;
   import org.apache.wsif.logging.Trc;
  -import org.apache.wsif.wsdl.extensions.jms.JMSConstants;
  -import org.apache.wsif.wsdl.extensions.jms.JMSInput;
  -import org.apache.wsif.wsdl.extensions.jms.JMSOutput;
  +import org.apache.wsif.util.WSIFUtils;
   
   /**
    * JMSFormatter
  @@ -219,8 +205,8 @@
   			throw new WSIFException("Unable to locate Binding");		
   
   		//Locate Service
  -		java.util.Iterator services = fieldDefinition.getServices().values().iterator();
  -				
  +        Map sm = WSIFUtils.getAllItems( fieldDefinition, "Service" );
  +		Iterator services = sm.values().iterator();        				
   		while (services.hasNext() && serviceName ==null) {
   			javax.wsdl.Service s = (javax.wsdl.Service)services.next();
   					
  @@ -291,8 +277,8 @@
   			throw new WSIFException("Unable to locate Binding");		
   
   		//Locate Service
  -		java.util.Iterator services = fieldDefinition.getServices().values().iterator();
  -				
  +        Map sm = WSIFUtils.getAllItems( fieldDefinition, "Service" );
  +		Iterator services = sm.values().iterator();        				
   		while (services.hasNext() && serviceName ==null) {
   			javax.wsdl.Service s = (javax.wsdl.Service)services.next();
   					
  
  
  

Mime
View raw message