Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-684

Wrapped document/literal do not work for empty message parts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.0-M4
    • 1.0-M4, 1.0-M5
    • webservices
    • None

    Description

      If WSDL contains message parts with empty XML type, NullPointerException is thrown during the deployment.

      Here is the relevant pieces from the WSDL:

      Piece from the schema embedded in the WSDL:
      <complexType name="methodResponseType">
      <sequence/>
      </complexType>
      <element name=methodResponse" type="tns:methodResponseType"/>

      Snippet from the WSDL:
      <message name="SomeEndpoint_someResponse">
      <part name="result" element="ns2:someResponse"/>
      </message>

      The attached patch shows the possible solution:

      Note that problem is that operationType.getContentModel() in the line HeavyweightOperationDescBuilder.java:231 returns null if it consists of one empty sequence. If check is added, everything works fine.

      Attachments

        1. patch2
          3 kB
          Ivan Dubrov

        Issue Links

          Activity

            People

              djencks David Jencks
              wfrag Ivan Dubrov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: