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

wsdl2java validator incorrectly requiring doc/lit soap:body messages to have namespaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2
    • 2.0.3
    • None
    • None
    • Novice

    Description

      R2717[1] is incorrectly activating for doc/lit bindings, requiring a namespace attribute:
      WSDLToJava Error : Violate WSI-BP-1.0 R2717 soapBody in the input/output of the binding operation 'getCityInfo' MUST have namespace attribute

      Only rpc/lit must have a namespace. Doc/lit (wrapped) bindings should not (must not?[2]) have namespace attributes.

      [1] http://www.ws-i.org/Profiles/BasicProfile-1.0-2004-04-16.html#R2717

      [2] http://atmanes.blogspot.com/2005/03/wrapped-documentliteral-convention.html; Quote: "In the binding definition, the soap:binding should specify style="document" (although this is the default value, so the attribute may be omitted), and the soap:body definitions must specify use="literal" and nothing else. You must not specify the namespace or encodingStyle attributes in the soap:body definition." (I cannot find anything more authoritative than this blog entry on this point, however.)

      Attachments

        1. SampleWebService.wsdl
          2 kB
          Glen Mazza

        Activity

          People

            dkulp Daniel Kulp
            mazzag Glen Mazza
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: