Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5393

org.apache.axis2.databinding.ADBException: Unexpected subelement SendAndCommitResult > error on good response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Incomplete
    • 1.5.1, 1.6.1, 1.6.2
    • None
    • codegen, databinding
    • None
    • OS: Linux
      JDK: jdk1.6.0_21
      Apache: apache-tomcat-5.5.23
      Axis2 versions: 1.5.1, 1.6.2, 1.6.1

    Description

      I've been getting the following error for all three versions of Axis2 listed above:
      ============================================================================================

      org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement SendAndCommitResult
      at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
      at com.e_xact.secure2.vplug_in.transaction.rpc_enc_test.ServiceStub.fromOM(ServiceStub.java:9478)
      at com.e_xact.secure2.vplug_in.transaction.rpc_enc_test.ServiceStub.sendAndCommit(ServiceStub.java:469)
      at com.printra.ccproc.FirstDataWSDLChargerTestNew.charge(FirstDataWSDLChargerTestNew.java:368)
      at com.printra.ccproc.MultiCharger.charge(MultiCharger.java:31)
      at com.printra.ccproc.test_charger.test_charge(test_charger.java:61)
      at com.printra.ccproc.test_charger.main(test_charger.java:31)
      Caused by: java.lang.Exception: org.apache.axis2.databinding.ADBException: Unexpected subelement SendAndCommitResult
      at com.e_xact.secure2.vplug_in.transaction.rpc_enc_test.ServiceStub$TransactionResult$Factory.parse(ServiceStub.java:4533)
      at com.e_xact.secure2.vplug_in.transaction.rpc_enc_test.ServiceStub$SendAndCommitResponse$Factory.parse(ServiceStub.java:4938)
      at com.e_xact.secure2.vplug_in.transaction.rpc_enc_test.ServiceStub.fromOM(ServiceStub.java:9472)
      ... 5 more
      Caused by: org.apache.axis2.databinding.ADBException: Unexpected subelement SendAndCommitResult
      at com.e_xact.secure2.vplug_in.transaction.rpc_enc_test.ServiceStub$TransactionResult$Factory.parse(ServiceStub.java:3398)
      ... 7 more
      ============================================================================================

      I believe this is a problem with the way the code (that Axis2 generated via Java2WSDL) parses the response. The XML of the response looks as expected, i.e. the subelement SendAndCommitResponse is supposed to be there, where it is. The WSDL is from First Data ( https://api.globalgatewaye4.firstdata.com/transaction/wsdl) and is presumed to be solid.

      Attachments

        1. firstdata-wsdl-webservice-stubs-new.jar
          82 kB
          pdna
        2. Service.aar
          60 kB
          Kishanthan Thangarajah
        3. ServiceStub.java
          488 kB
          pdna

        Activity

          People

            kishanthan Kishanthan Thangarajah
            pdna pdna
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: