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

POJO, Axis2, element for Exception defined multiple times in WSDL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2
    • None
    • wsdl
    • None

    Description

      POJO service with Axis2: All was working fine, until more than one method was throwing an Exception (the same Exception). Now that multiple methods throw an Exception, the element gets put in the WSDL multiple times, causing my PHP SOAP client to die. I'm new around here so let me know if this isn't enough information. The simplest version of a class to replicate this is as follows:

      package mypackage;

      public class MyFunService
      {
      public boolean action1() throws Exception

      { return true; }

      public boolean action2() throws Exception
      { return true; }

      }

      The WSDL axis provides at the ?wsdl url contains multiple instances of ExceptionFault, which causes my PHP SOAP client to die:

      <xs:element name="ExceptionFault">
      <xs:element name="action1">
      <xs:element name="action1Response">
      <xs:element name="ExceptionFault">
      <xs:element name="action2">
      <xs:element name="action2Response">

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fat.suze Fat Suze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: