Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-715

SOAP faults not always detected by Axis2/C client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0, 1.1.0
    • 1.2.0
    • None
    • SOAP client based on Axis2/C 1.0.0 (couldn't test 1.1.0 client yet) and different SOAP servers

    Description

      The first SOAP fault is detected by axis2_svc_client_get_last_response_has_fault. The second is not.

      1) Here is an HTTP conversation between a SOAP client based on Axis2/C 1.0.0 and a SOAP server based on J2EE JAX-WS default SOAP implementation over Tomcat over Apache. SOAP fault IS detected:

      Sent:

      POST /WebServiceTest/MMMC_Service HTTP/1.1
      User-Agent: Axis2/C
      SOAPAction: ""
      Content-Length: 166
      Content-Type: text/xml;charset=UTF-8
      Host: 10.3.4.169:8084

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header></soapenv:Header>
      <soapenv:Body>
      <hi></hi>
      </soapenv:Body>
      </soapenv:Envelope>

      Received:

      HTTP/1.1 500 Internal Server Error
      Server: Apache-Coyote/1.1
      Content-Type: text/xml;charset=utf-8
      Transfer-Encoding: chunked
      Date: Thu, 04 Oct 2007 09:05:36 GMT
      Connection: close

      18a
      <?xml version="1.0" ?>
      <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
      <S:Body>
      <ns2:Fault xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope">
      <faultcode>ns2:Client</faultcode>
      <faultstring>Cannot find dispatch method for

      {null}

      hi using "Payload QName-based Dispatcher"</faultstring>
      </ns2:Fault>
      </S:Body>
      </S:Envelope>
      0

      2) Here is an HTTP conversation between a SOAP client based on Axis2/C 1.0.0 and a SOAP server based on Axis2/C 1.1.0 over Apache. SOAP fault IS NOT detected:

      Sent:

      POST /ws/services/mmmc HTTP/1.1
      User-Agent: Axis2/C
      SOAPAction: ""
      Content-Length: 166
      Content-Type: text/xml;charset=UTF-8
      Host: 10.3.1.198:80

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header></soapenv:Header>
      <soapenv:Body><hi></hi></soapenv:Body>
      </soapenv:Envelope>

      Received:

      HTTP/1.1 500 Internal Server Error
      Date: Tue, 27 Mar 2007 17:30:35 GMT
      Server: Apache/2.0.52 (Red Hat)
      Content-Length: 255
      Connection: close
      Content-Type: text/xml

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header/>
      <soapenv:Body>
      <soapenv:Fault>
      <faultcode>soapenv:Server</faultcode>
      <faultstring>Operation Not Found</faultstring>
      </soapenv:Fault>
      </soapenv:Body>
      </soapenv:Envelope>

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--echo.c
          8 kB
          Dinesh Weerapurage

        Activity

          People

            xydinesh Dinesh Weerapurage
            spettini Stefano Pettini
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: