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

Control what wsdl bindings returned via services.xml

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • kernel, wsdl
    • None

    Description

      I believe that it would be a very useful feature if we controlled the generation of what WSDL bindings is returned in a WSDL document by AXIS 2 (when one does not exist) from within the services.xml file. One can indicate through a parameter whether SOAP11, SOAP12, HTTP, ALL, etc. binding are to be returned.

      Keith Chapman responded with the following that may be help in showing how this could be done:

      I guess the better solution might be to use the AxisBinding hierarchy introduced while integrating WSDL 2.0 changes. Currently the services.xml does not populate the Binding hierarchy but keeps all the details in the AxisService. It might be a better solution to populate 3 bindings by default (namely SOAP 1.1, SOAP 1.2 and HTTP) and customize it based on properties in the services.xml.

      When ?wsdl or ?wsdl2 is called we look for binding hierarchy, and if its present we serialize them. If its not present we generate 3 default bindings. So if the above is incorporated we would automatically get a WSDL that the user desires.

      Using the binding hierarchy has other benefits, such as been able to customize a particular binding without affecting the others. I certainly think that we should be using the Binding hierarchy when building services from the services.xml.

      Attachments

        Issue Links

          Activity

            People

              deepal Deepal Jayasinghe
              nadiramra Nadir K. Amra
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: