Peter--

I think this brings up the subject of how does one iterate thru a collection of 
interfaces?

Being mindful that this is not a class and this is not instantiating a class 
which may implement one or more interface(s) but an attempt to iterate thru a 
collection of just plain Interfaces

take a gander at 
\samples\quickstartadb\build\service\src\samples\quickstart\service\adb\StockQuoteMessageReceiveInOnly.java
where the parameter env we are (supposedly) iterating on is SOAPEnvelope which 
IS an interface
How is any iteration on an (non static) interface possible???

 /**
        *  A utility method that copies the namepaces from the SOAPEnvelope
        */
        private java.util.Map 
getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){
        java.util.Map returnMap = new java.util.HashMap();
        java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();
        while (namespaceIterator.hasNext()) {
        org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) 
namespaceIterator.next();
        returnMap.put(ns.getPrefix(),ns.getNamespaceURI());
        }
        return returnMap;
        }
the workaround is to pass in SOAPPart on the stack and then in the body of the 
code
SOAPEnvelope env = sp.getEnvelope();

Comments/Advice/Suggestions?
Martin--

This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

  ----- Original Message ----- 
  From: Great Man 
  To: [email protected] 
  Sent: Tuesday, April 10, 2007 12:53 PM
  Subject: Can not build sample projects of Axis2


  I am trying to build Axis2 samples project (quickstartadb) and I have jdk1.5 
in my system and I am getting following exception. Any idea why it is 
complaining ???

  E:\axis2-1.1.1\samples\quickstartadb>ant generate.service
  Buildfile: build.xml

  init:
  generate.service:
  BUILD FAILED
  E:\axis2-1.1.1\samples\quickstartadb\build.xml:56: 
java.util.zip.ZipException: The system cannot find the file specified

  Total time: 1 second


  Any help would be really appreciated.

  Petr



------------------------------------------------------------------------------
  We won't tell. Get more on shows you hate to love
  (and love to hate): Yahoo! TV's Guilty Pleasures list.

Reply via email to