Uploaded image for project: 'Lucee Development'
  1. LDEV-1251

SOAP Web Service - Nest array of complex object

    Details

    • Type: Bug
    • Status: New
    • Priority: New
    • Resolution: Unresolved
    • Affects Version/s: 5.1.2.24
    • Fix Version/s: None
    • Labels:
      None

      Description

      Hi,

      I am trying to find an open source platform to host one of legacy coldfusion application and Lucee came to my attention. I have completed POC and most of application's functionalities are working expect web service integration.

      I cannot provide the full WDSL as the web service is an internal web service but sharing schema in order to get support from you.

      Below is response object

      <element name="validateAddressDetailsResponse">
      <complexType>
      <sequence>
      <element name="result" nillable="true" type="xsd:string"/>
      <element name="plAddressOK" nillable="true" type="xsd:boolean"/>
      <element name="pcAddressError" nillable="true" type="xsd:string"/>
      <element name="ttAddressMaster" nillable="true" type="S2:validateAddressDetails_ttAddressMasterParam"/>
      <element name="piAddrMatch" nillable="true" type="xsd:int"/>
      <element name="plMoreAddress" nillable="true" type="xsd:boolean"/>
      </sequence>
      </complexType>
      </element>
      

      The validate address master param object contains array as below.

      <complexType name="validateAddressDetails_ttAddressMasterParam">
      <sequence>
      <element maxOccurs="unbounded" minOccurs="0" name="ttAddressMasterRow" type="S2:validateAddressDetails_ttAddressMasterRow"/>**
      </sequence>
      </complexType>
      

      as you can see the web service is designed to return an object that contain array of another complex object.

      when consuming this web service. I see validateAddressDetails_ttAddressMasterRow object created under cfclasses/RPC/ lucee folder. However I don't seem to find parent object and also getting below error.

      org.apache.axis.AxisFault:
      ; nested exception is:
      org.xml.sax.SAXException:
      Unable to create JavaBean of type [La1jutmohj4zmcj.validateAddressDetails_ttAddressMasterRow ;. Missing default constructor?
      Error was: java.lang.InstantiationException: [La1jutmohj4zmcj.validateAddressDetails_ttAddressMasterRow

      Have anyone experienced a similar issue? if so, have you resolved this issue? It seems like Axis issue. I believe Lucee uses version 1.4 of Axis. It this issue because of Axis or how lucee works with XML?

      any help would be appreciated.

      Related Lucee Dev portal link: https://dev.lucee.org/t/consuming-web-service-array-of-complex-object-issue/2083

      above article is written by me, trying to get some help.

      thank you.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              erickim007 Eric Kim
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: