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

DOMSource is returned rather than StAXSource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.2
    • 2.5.7, 2.6.4, 2.7.1
    • Services
    • None
    • Unknown

    Description

      A Service created from a WSDL that has doc literal wrapped operations will always return DOMSource regardless of the source type requested by the Dispatch.invoke method.

      For example using a WSDL such as: http://www.xignite.com/xQuotes.asmx?WSDL, the following code highlights the issue with a class cast exception on the last line:

      Service service = Service.create(wsdl, new QName("http://www.xignite.com/services/", "XigniteQuotes"));
      Dispatch<T> dispatch = wsdlService.createDispatch(new QName("http://www.xignite.com/services/", "XigniteQuotesSoap"), StAXSource.class, Service.Mode.PAYLOAD);
      QName opQName = new QName("http://www.xignite.com/services/", "GetFundQuote");
      dispatch.getRequestContext().put(MessageContext.WSDL_OPERATION, opQName); 
      StAXSource result = dispatch.invoke(someDoc);
      

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            shawkins Steven Hawkins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: