Uploaded image for project: 'Axis'
  1. Axis
  2. AXIS-2758

faultString: org.xml.sax.SAXException: Invalid element foo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4
    • None
    • None

    Description

      Axis generated stub does not handle correctly changes in wsdl if fields are added in a "method" result. I think it could handle it transparently.
      Maybe you could add an option in wsdl2java letting us to choose if we want to be strict or not.
      In my example, typeIban was added in wsdl after stub generation.

      AxisFault
      faultCode:

      {http://schemas.xmlsoap.org/soap/envelope/}

      Server.userException
      faultSubcode:
      faultString: org.xml.sax.SAXException: Invalid element in com.dexia.sofaxis.test.RibWSDTO - typeIban
      faultActor:
      faultNode:
      faultDetail:

      {http://xml.apache.org/axis/}

      stackTrace:org.xml.sax.SAXException: Invalid element in com.dexia.sofaxis.test.RibWSDTO - typeIban
      at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
      at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
      at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
      at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
      at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
      at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
      at org.apache.axis.client.Call.invoke(Call.java:2467)
      at org.apache.axis.client.Call.invoke(Call.java:2366)
      at org.apache.axis.client.Call.invoke(Call.java:1812)
      at com.dexia.sofaxis.test.ReferentielIbanBindingStub.rechercheRibsByIdsTiers(ReferentielIbanBindingStub.java:224)
      at com.dexia.sofaxis.clientws.TestReferentielIban.main(TestReferentielIban.java:32)

      {http://xml.apache.org/axis/}

      hostname:PODJP

      Attachments

        Activity

          People

            Unassigned Unassigned
            djeanprost Dominique Jean-Prost
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: