You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Dinesh Premalal (JIRA)" <ji...@apache.org> on 2006/11/01 13:26:19 UTC

[jira] Created: (AXIS2C-381) Simple Axis Server doesn't give proper faults

Simple Axis Server doesn't give proper faults
---------------------------------------------

                 Key: AXIS2C-381
                 URL: http://issues.apache.org/jira/browse/AXIS2C-381
             Project: Axis2-C
          Issue Type: Bug
          Components: transport/http
    Affects Versions: 0.95
            Reporter: Dinesh Premalal


When I try to send improper content to echo service. simple axis server didn't give any fault message...

request
------------
POST /axis/services/echo HTTP/1.1

User-Agent: Axis2/C

Content-Length: 238

Content-Type: application/soap+xml;charset=UTF-8;

Host: 127.0.0.1



<?xml version="1.0" encoding="UTF-8"?>
   <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
      <soapenv:Header></soapenv:Header>
      <soapenv:Body>
         <root>
            <a>a</a>
            <b>b</b>
            <c>
               <d>d</d>
            </c>
         </root>
      </soapenv:Body>
   </soapenv:Envelope>


response
---------------
HTTP/1.1 500 Internal Server Error

Content-Type: application/soap+xml;charset=UTF-8

Content-Length: 194



<?xml version="1.0" encoding="UTF-8"?>
   <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
      <soapenv:Header></soapenv:Header>
      <soapenv:Body></soapenv:Body>
</soapenv:Envelope>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Updated: (AXIS2C-381) Simple Axis Server doesn't give proper faults

Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-381?page=all ]

Samisa Abeysinghe updated AXIS2C-381:
-------------------------------------

    Fix Version/s: 0.96

> Simple Axis Server doesn't give proper faults
> ---------------------------------------------
>
>                 Key: AXIS2C-381
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-381
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>    Affects Versions: 0.95
>            Reporter: Dinesh Premalal
>         Assigned To: Dinesh Premalal
>             Fix For: 0.96
>
>
> When I try to send improper content to echo service. simple axis server didn't give any fault message...
> request
> ------------
> POST /axis/services/echo HTTP/1.1
> User-Agent: Axis2/C
> Content-Length: 238
> Content-Type: application/soap+xml;charset=UTF-8;
> Host: 127.0.0.1
> <?xml version="1.0" encoding="UTF-8"?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>       <soapenv:Header></soapenv:Header>
>       <soapenv:Body>
>          <root>
>             <a>a</a>
>             <b>b</b>
>             <c>
>                <d>d</d>
>             </c>
>          </root>
>       </soapenv:Body>
>    </soapenv:Envelope>
> response
> ---------------
> HTTP/1.1 500 Internal Server Error
> Content-Type: application/soap+xml;charset=UTF-8
> Content-Length: 194
> <?xml version="1.0" encoding="UTF-8"?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>       <soapenv:Header></soapenv:Header>
>       <soapenv:Body></soapenv:Body>
> </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-381) Simple Axis Server doesn't give proper faults

Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2C-381?page=comments#action_12449212 ] 
            
Samisa Abeysinghe commented on AXIS2C-381:
------------------------------------------

If the fault is related to the incomming payload format, the service should be handling this case, meaning the service is responsible for creating up the Fault and setting it in the message context.
If it is something related to the processing in the engine, then the fault should be parepared and sent by the relavant places dealing with the situation.

> Simple Axis Server doesn't give proper faults
> ---------------------------------------------
>
>                 Key: AXIS2C-381
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-381
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>    Affects Versions: 0.95
>            Reporter: Dinesh Premalal
>         Assigned To: Dinesh Premalal
>
> When I try to send improper content to echo service. simple axis server didn't give any fault message...
> request
> ------------
> POST /axis/services/echo HTTP/1.1
> User-Agent: Axis2/C
> Content-Length: 238
> Content-Type: application/soap+xml;charset=UTF-8;
> Host: 127.0.0.1
> <?xml version="1.0" encoding="UTF-8"?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>       <soapenv:Header></soapenv:Header>
>       <soapenv:Body>
>          <root>
>             <a>a</a>
>             <b>b</b>
>             <c>
>                <d>d</d>
>             </c>
>          </root>
>       </soapenv:Body>
>    </soapenv:Envelope>
> response
> ---------------
> HTTP/1.1 500 Internal Server Error
> Content-Type: application/soap+xml;charset=UTF-8
> Content-Length: 194
> <?xml version="1.0" encoding="UTF-8"?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>       <soapenv:Header></soapenv:Header>
>       <soapenv:Body></soapenv:Body>
> </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Assigned: (AXIS2C-381) Simple Axis Server doesn't give proper faults

Posted by "Dinesh Premalal (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-381?page=all ]

Dinesh Premalal reassigned AXIS2C-381:
--------------------------------------

    Assignee: Dinesh Premalal

> Simple Axis Server doesn't give proper faults
> ---------------------------------------------
>
>                 Key: AXIS2C-381
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-381
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>    Affects Versions: 0.95
>            Reporter: Dinesh Premalal
>         Assigned To: Dinesh Premalal
>
> When I try to send improper content to echo service. simple axis server didn't give any fault message...
> request
> ------------
> POST /axis/services/echo HTTP/1.1
> User-Agent: Axis2/C
> Content-Length: 238
> Content-Type: application/soap+xml;charset=UTF-8;
> Host: 127.0.0.1
> <?xml version="1.0" encoding="UTF-8"?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>       <soapenv:Header></soapenv:Header>
>       <soapenv:Body>
>          <root>
>             <a>a</a>
>             <b>b</b>
>             <c>
>                <d>d</d>
>             </c>
>          </root>
>       </soapenv:Body>
>    </soapenv:Envelope>
> response
> ---------------
> HTTP/1.1 500 Internal Server Error
> Content-Type: application/soap+xml;charset=UTF-8
> Content-Length: 194
> <?xml version="1.0" encoding="UTF-8"?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>       <soapenv:Header></soapenv:Header>
>       <soapenv:Body></soapenv:Body>
> </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-381) Simple Axis Server doesn't give proper faults

Posted by "Chris Darroch (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2C-381?page=comments#action_12446347 ] 
            
Chris Darroch commented on AXIS2C-381:
--------------------------------------

I think this is partially related to AXIS2C-328.  There's a patch in that bug report that helps me a bit to return custom SOAP faults, and I'm working on a set of patches that do the same thing for mod_axis2.  As of 0.95, it seems that there's a new factor  in the code that handles operation and service not found situations and I'm looking now to see what's changed; it seems to be somewhere around disp_checker.c.

> Simple Axis Server doesn't give proper faults
> ---------------------------------------------
>
>                 Key: AXIS2C-381
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-381
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>    Affects Versions: 0.95
>            Reporter: Dinesh Premalal
>
> When I try to send improper content to echo service. simple axis server didn't give any fault message...
> request
> ------------
> POST /axis/services/echo HTTP/1.1
> User-Agent: Axis2/C
> Content-Length: 238
> Content-Type: application/soap+xml;charset=UTF-8;
> Host: 127.0.0.1
> <?xml version="1.0" encoding="UTF-8"?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>       <soapenv:Header></soapenv:Header>
>       <soapenv:Body>
>          <root>
>             <a>a</a>
>             <b>b</b>
>             <c>
>                <d>d</d>
>             </c>
>          </root>
>       </soapenv:Body>
>    </soapenv:Envelope>
> response
> ---------------
> HTTP/1.1 500 Internal Server Error
> Content-Type: application/soap+xml;charset=UTF-8
> Content-Length: 194
> <?xml version="1.0" encoding="UTF-8"?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>       <soapenv:Header></soapenv:Header>
>       <soapenv:Body></soapenv:Body>
> </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Resolved: (AXIS2C-381) Simple Axis Server doesn't give proper faults

Posted by "Dinesh Premalal (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-381?page=all ]

Dinesh Premalal resolved AXIS2C-381.
------------------------------------

    Resolution: Fixed

after fix it gives a following soap fault


HTTP/1.1 500 Internal Server Error

Content-Type: application/soap+xml;charset=UTF-8

Content-Length: 388



<?xml version="1.0" encoding="UTF-8"?>
   <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
      <soapenv:Header></soapenv:Header>
      <soapenv:Body>
         <soapenv:Fault>
            <soapenv:Code>
               <soapenv:Value>Receiver</soapenv:Value>
            </soapenv:Code>
            <soapenv:Reason>
               <soapenv:Text xml:lang="en">Operation Not Found</soapenv:Text>
            </soapenv:Reason>
         </soapenv:Fault>
      </soapenv:Body>
   </soapenv:Envelope>

> Simple Axis Server doesn't give proper faults
> ---------------------------------------------
>
>                 Key: AXIS2C-381
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-381
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: transport/http
>    Affects Versions: 0.95
>            Reporter: Dinesh Premalal
>         Assigned To: Dinesh Premalal
>             Fix For: 0.96
>
>
> When I try to send improper content to echo service. simple axis server didn't give any fault message...
> request
> ------------
> POST /axis/services/echo HTTP/1.1
> User-Agent: Axis2/C
> Content-Length: 238
> Content-Type: application/soap+xml;charset=UTF-8;
> Host: 127.0.0.1
> <?xml version="1.0" encoding="UTF-8"?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>       <soapenv:Header></soapenv:Header>
>       <soapenv:Body>
>          <root>
>             <a>a</a>
>             <b>b</b>
>             <c>
>                <d>d</d>
>             </c>
>          </root>
>       </soapenv:Body>
>    </soapenv:Envelope>
> response
> ---------------
> HTTP/1.1 500 Internal Server Error
> Content-Type: application/soap+xml;charset=UTF-8
> Content-Length: 194
> <?xml version="1.0" encoding="UTF-8"?>
>    <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
>       <soapenv:Header></soapenv:Header>
>       <soapenv:Body></soapenv:Body>
> </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org