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

java2wsdl -tp option does not work!

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Tools
    • None
    • Using AXIS2_HOME: C:\Tools\axis2-1.5
      Using JAVA_HOME: C:\Tools\Java\jdk1.5.0_19

    Description

      Use tn and tp options to set special targetnamespace and targetnamespaceprefix. tn option works but tp option does not. The targetnamespaceprefix is still "axis2".
      The targetnamespaceprefix is stored at variable targetNamespacePrefix of object axisService, but generateOM method of class AxisService2WSDL11 want to check variable namespaceMap of of object axisService.

      Java2WSDLBuilder.generateWSDL()
      axisService.setTargetNamespacePrefix(getTargetNamespacePrefix());

      AxisService2WSDL11.generateOM()
      Map namespaceMap = axisService.getNamespaceMap();
      if (namespaceMap == null)
      namespaceMap = new HashMap();

      String prefix = WSDLSerializationUtil.getPrefix(axisService.getTargetNamespace(),
      namespaceMap);
      if (prefix == null || "".equals(prefix))

      { prefix = DEFAULT_TARGET_NAMESPACE_PREFIX; }

      Attachments

        Activity

          People

            isurues Isuru Suriarachchi
            yqu Andrew Qu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 72h
                72h
                Remaining:
                Remaining Estimate - 72h
                72h
                Logged:
                Time Spent - Not Specified
                Not Specified