Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5334

WSDL Resolution Problem with SOAP 1.2

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.7.7
    • Fix Version/s: 2.7.8
    • Component/s: JAX-WS Runtime
    • Labels:
      None
    • Environment:

      Windows, Linux

    • Estimated Complexity:
      Unknown

      Description

      Using Apache CXF 2.7.7 if I publish a simple "HelloWorld" JAX-WS service and attempt to resolve the WSDL URL in a web browser using: "localhost:8080/service/HelloWorld?wsdl" the WSDL loads in the browser and everything looks great.

      If I add the below annotation which changes the SOAP Binding to 1.2 the WSDL resolution still works but the WSDL doesn't load in the browser, instead a download dialog is shown and the file name extension of the WSDL (i.e. ".wsdl") is missing in the download dialog (which is probably why the WSDL isn't loading in the browser).

      @javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING

      The same behavior appears with the SOAP12HTTP_MTOM_BINDING

      @javax.xml.ws.BindingType (value=javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_MTOM_BINDING)

      Functionally everything works fine even with the BindingType annotation defined so this is just a minor annoyance but I'm wondering how I can get the correct WSDL resolution behavior when the SOAP 1.2 binding is in use. Note that this behavior happens regardless of whether or not I specify the WSDL location.

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              kabronkline Kabron Kline
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: