Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-1074

WSDL2Java referring to nonexistent method OMNamespace.getNamespaceURI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • None
    • databinding, kernel, om
    • None

    Description

      I just downloaded the latest nightly build and rebuilt my project. I got compile errors when trying to compile the WSDL2Java-generated files. The errors are complaining about calls to a nonexistent method, OMNamespace.getNamespaceURI(), in the generated code.

      One such call is like this, from a generated ...Stub class:
      /**

      • A utility method that copies the namepaces from the SOAPEnvelope
        */
        private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env)
        Unknown macro: { 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; }

        Another , from a generated ...MessageReceiverInOut class:
        /**

      • A utility method that copies the namepaces from the SOAPEnvelope
        */
        private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env)
        Unknown macro: { 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; }

      This bug makes WSDL2Java all but unusable for me (I have to go in and manually patch up the results to get it to run, which breaks my ANT build script). Please fix ASAP. I would like this bug to be considered a blocker for the release of Axis2 1.1.

      Attachments

        Activity

          People

            Unassigned Unassigned
            derekfoster Derek Foster
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: