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 "Andrew Perry (JIRA)" <ax...@ws.apache.org> on 2004/11/12 11:23:26 UTC

[jira] Created: (AXISCPP-259) WSDL faults not being deserialised

WSDL faults not being deserialised
----------------------------------

         Key: AXISCPP-259
         URL: http://nagoya.apache.org/jira/browse/AXISCPP-259
     Project: Axis-C++
        Type: Bug
  Components: Serialization/Deserialization  
    Reporter: Andrew Perry


The FaultMappingDoc test is not getting the expected output. The WSDL has 3 faults defined, DivByZeroStruct, OutOfBoundsStruct and SpecialDetailStruct. The test calls the MathOps service 4 times, 1 with valid values and the other 3 times to get the faults thrown. The services are hosted on WebSphere rather than the Axis Server, but from the response message you can see that the correct faults are being thrown. The first call works, the second to get a DivByZeroStruct fault sort of works in that a MathOpsService Exception is thrown but none of the fault detail is shown, but the final 2 requests which should also have MathOpsService exceptions get an unspecified exception in that 'catch(...)' catches it rather than either MathOpsService_AxisClientException or AxisException.

Client output
loop 0
trying to div 10 and 5
Result is 2
loop 1
trying to div 10 and 0
MathOpsService Exception: AxisTransportException:HTTP transport error Internal Server Error
loop 2
trying to div 1000 and 5
Unspecified Exception:
loop 3
trying to div 10 and -5
Unspecified Exception:

on-the-wire response
--------------------
HTTP/1.1 200 OK^M
Server: WebSphere Application Server/5.1^M
Content-Type: text/xml; charset=utf-8^M
Content-Language: en-GB^M
Transfer-Encoding: chunked^M
^M
197^M
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><divResponse xmlns="http://soapinterop.org/wsdl"><divReturn>2</divReturn></divResponse></soapenv:Body></soapenv:Envelope>^M
0^M
^M
HTTP/1.1 500 Internal Server Error^M
Server: WebSphere Application Server/5.1^M
Content-Type: text/xml; charset=utf-8^M
Content-Language: en-GB^M
Transfer-Encoding: chunked^M
^M
2fb^M
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:DivByZeroStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.DivByZeroStruct]]></faultstring><detail xmlns=""><DivByZeroStruct xmlns="http://soapinterop.org/wsdl"><varString>Division by zero exception</varString><varInt>1</varInt><varFloat>10.52</varFloat></DivByZeroStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
0^M
^M
HTTP/1.1 500 Internal Server Error^M
Server: WebSphere Application Server/5.1^M
Content-Type: text/xml; charset=utf-8^M
Content-Language: en-GB^M
Transfer-Encoding: chunked^M
^M
31a^M
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:SpecialDetailStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.SpecialDetailStruct]]></faultstring><detail xmlns=""><SpecialDetailStruct xmlns="http://soapinterop.org/wsdl"><varString>You have entered 1000 for the first parameter. 1000 is reserved. Please do not use it</varString></SpecialDetailStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
0^M
^M
-----------------------------

Is it possible to get the soap fault detail?
Why do the last 2 faults not get caught by the Axis Exceptions?


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Reopened: (AXISCPP-259) WSDL faults not being deserialised

Posted by "Andrew Perry (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXISCPP-259?page=history ]
     
Andrew Perry reopened AXISCPP-259:
----------------------------------


This issue has returned, but it apppears to be an intermittent problem. Sometimes it works and sometimes it doesn't. Seems to consistantly fail on windows.

> WSDL faults not being deserialised
> ----------------------------------
>
>          Key: AXISCPP-259
>          URL: http://nagoya.apache.org/jira/browse/AXISCPP-259
>      Project: Axis-C++
>         Type: Bug
>   Components: Serialization/Deserialization
>     Reporter: Andrew Perry

>
> The FaultMappingDoc test is not getting the expected output. The WSDL has 3 faults defined, DivByZeroStruct, OutOfBoundsStruct and SpecialDetailStruct. The test calls the MathOps service 4 times, 1 with valid values and the other 3 times to get the faults thrown. The services are hosted on WebSphere rather than the Axis Server, but from the response message you can see that the correct faults are being thrown. The first call works, the second to get a DivByZeroStruct fault sort of works in that a MathOpsService Exception is thrown but none of the fault detail is shown, but the final 2 requests which should also have MathOpsService exceptions get an unspecified exception in that 'catch(...)' catches it rather than either MathOpsService_AxisClientException or AxisException.
> Client output
> loop 0
> trying to div 10 and 5
> Result is 2
> loop 1
> trying to div 10 and 0
> MathOpsService Exception: AxisTransportException:HTTP transport error Internal Server Error
> loop 2
> trying to div 1000 and 5
> Unspecified Exception:
> loop 3
> trying to div 10 and -5
> Unspecified Exception:
> on-the-wire response
> --------------------
> HTTP/1.1 200 OK^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 197^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><divResponse xmlns="http://soapinterop.org/wsdl"><divReturn>2</divReturn></divResponse></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> HTTP/1.1 500 Internal Server Error^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 2fb^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:DivByZeroStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.DivByZeroStruct]]></faultstring><detail xmlns=""><DivByZeroStruct xmlns="http://soapinterop.org/wsdl"><varString>Division by zero exception</varString><varInt>1</varInt><varFloat>10.52</varFloat></DivByZeroStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> HTTP/1.1 500 Internal Server Error^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 31a^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:SpecialDetailStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.SpecialDetailStruct]]></faultstring><detail xmlns=""><SpecialDetailStruct xmlns="http://soapinterop.org/wsdl"><varString>You have entered 1000 for the first parameter. 1000 is reserved. Please do not use it</varString></SpecialDetailStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> -----------------------------
> Is it possible to get the soap fault detail?
> Why do the last 2 faults not get caught by the Axis Exceptions?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXISCPP-259) WSDL faults not being deserialised

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-259?page=comments#action_12316193 ] 

Dushshantha Chandradasa commented on AXISCPP-259:
-------------------------------------------------

I found the problem here. the problem is with SoapDeSerializer::getCmplxFaultObjectName () method. It sets the CmplxFaultObjectName of the Fault object incorrectly.
Following is the part of the soap message for the which the deserializer picks the CmplxFaultObjectName.

<detail><appSpecific><DivByZeroStruct><ns1:varString>Division by zero exception</ns1:varString>
<ns1:varInt>1</ns1:varInt>
<ns1:varFloat>10.520000</ns1:varFloat>
</DivByZeroStruct>
</appSpecific></detail>

Instead of DivByZeroStruct, the method SoapDeSerializer::getCmplxFaultObjectName ()  picks appSpecific. Fixing this problem will solve the problem.

> WSDL faults not being deserialised
> ----------------------------------
>
>          Key: AXISCPP-259
>          URL: http://issues.apache.org/jira/browse/AXISCPP-259
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Deserialization
>     Reporter: Andrew Perry

>
> The FaultMappingDoc test is not getting the expected output. The WSDL has 3 faults defined, DivByZeroStruct, OutOfBoundsStruct and SpecialDetailStruct. The test calls the MathOps service 4 times, 1 with valid values and the other 3 times to get the faults thrown. The services are hosted on WebSphere rather than the Axis Server, but from the response message you can see that the correct faults are being thrown. The first call works, the second to get a DivByZeroStruct fault sort of works in that a MathOpsService Exception is thrown but none of the fault detail is shown, but the final 2 requests which should also have MathOpsService exceptions get an unspecified exception in that 'catch(...)' catches it rather than either MathOpsService_AxisClientException or AxisException.
> Client output
> loop 0
> trying to div 10 and 5
> Result is 2
> loop 1
> trying to div 10 and 0
> MathOpsService Exception: AxisTransportException:HTTP transport error Internal Server Error
> loop 2
> trying to div 1000 and 5
> Unspecified Exception:
> loop 3
> trying to div 10 and -5
> Unspecified Exception:
> on-the-wire response
> --------------------
> HTTP/1.1 200 OK^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 197^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><divResponse xmlns="http://soapinterop.org/wsdl"><divReturn>2</divReturn></divResponse></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> HTTP/1.1 500 Internal Server Error^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 2fb^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:DivByZeroStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.DivByZeroStruct]]></faultstring><detail xmlns=""><DivByZeroStruct xmlns="http://soapinterop.org/wsdl"><varString>Division by zero exception</varString><varInt>1</varInt><varFloat>10.52</varFloat></DivByZeroStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> HTTP/1.1 500 Internal Server Error^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 31a^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:SpecialDetailStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.SpecialDetailStruct]]></faultstring><detail xmlns=""><SpecialDetailStruct xmlns="http://soapinterop.org/wsdl"><varString>You have entered 1000 for the first parameter. 1000 is reserved. Please do not use it</varString></SpecialDetailStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> -----------------------------
> Is it possible to get the soap fault detail?
> Why do the last 2 faults not get caught by the Axis Exceptions?

-- 
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


[jira] Updated: (AXISCPP-259) WSDL faults not being deserialised

Posted by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-259?page=history ]

Samisa Abeysinghe updated AXISCPP-259:
--------------------------------------

    Component: Deserialization
                   (was: Serialization)

> WSDL faults not being deserialised
> ----------------------------------
>
>          Key: AXISCPP-259
>          URL: http://issues.apache.org/jira/browse/AXISCPP-259
>      Project: Axis-C++
>         Type: Bug
>   Components: Deserialization
>     Reporter: Andrew Perry

>
> The FaultMappingDoc test is not getting the expected output. The WSDL has 3 faults defined, DivByZeroStruct, OutOfBoundsStruct and SpecialDetailStruct. The test calls the MathOps service 4 times, 1 with valid values and the other 3 times to get the faults thrown. The services are hosted on WebSphere rather than the Axis Server, but from the response message you can see that the correct faults are being thrown. The first call works, the second to get a DivByZeroStruct fault sort of works in that a MathOpsService Exception is thrown but none of the fault detail is shown, but the final 2 requests which should also have MathOpsService exceptions get an unspecified exception in that 'catch(...)' catches it rather than either MathOpsService_AxisClientException or AxisException.
> Client output
> loop 0
> trying to div 10 and 5
> Result is 2
> loop 1
> trying to div 10 and 0
> MathOpsService Exception: AxisTransportException:HTTP transport error Internal Server Error
> loop 2
> trying to div 1000 and 5
> Unspecified Exception:
> loop 3
> trying to div 10 and -5
> Unspecified Exception:
> on-the-wire response
> --------------------
> HTTP/1.1 200 OK^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 197^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><divResponse xmlns="http://soapinterop.org/wsdl"><divReturn>2</divReturn></divResponse></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> HTTP/1.1 500 Internal Server Error^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 2fb^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:DivByZeroStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.DivByZeroStruct]]></faultstring><detail xmlns=""><DivByZeroStruct xmlns="http://soapinterop.org/wsdl"><varString>Division by zero exception</varString><varInt>1</varInt><varFloat>10.52</varFloat></DivByZeroStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> HTTP/1.1 500 Internal Server Error^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 31a^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:SpecialDetailStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.SpecialDetailStruct]]></faultstring><detail xmlns=""><SpecialDetailStruct xmlns="http://soapinterop.org/wsdl"><varString>You have entered 1000 for the first parameter. 1000 is reserved. Please do not use it</varString></SpecialDetailStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> -----------------------------
> Is it possible to get the soap fault detail?
> Why do the last 2 faults not get caught by the Axis Exceptions?

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXISCPP-259) WSDL faults not being deserialised

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-259?page=all ]
     
Dushshantha Chandradasa resolved AXISCPP-259:
---------------------------------------------

    Resolution: Fixed

The problem was in SoapDeSerializer::getCmplxFaultObjectName(). fixed the the problem. 

> WSDL faults not being deserialised
> ----------------------------------
>
>          Key: AXISCPP-259
>          URL: http://issues.apache.org/jira/browse/AXISCPP-259
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Deserialization
>     Reporter: Andrew Perry
>     Assignee: Dushshantha Chandradasa

>
> The FaultMappingDoc test is not getting the expected output. The WSDL has 3 faults defined, DivByZeroStruct, OutOfBoundsStruct and SpecialDetailStruct. The test calls the MathOps service 4 times, 1 with valid values and the other 3 times to get the faults thrown. The services are hosted on WebSphere rather than the Axis Server, but from the response message you can see that the correct faults are being thrown. The first call works, the second to get a DivByZeroStruct fault sort of works in that a MathOpsService Exception is thrown but none of the fault detail is shown, but the final 2 requests which should also have MathOpsService exceptions get an unspecified exception in that 'catch(...)' catches it rather than either MathOpsService_AxisClientException or AxisException.
> Client output
> loop 0
> trying to div 10 and 5
> Result is 2
> loop 1
> trying to div 10 and 0
> MathOpsService Exception: AxisTransportException:HTTP transport error Internal Server Error
> loop 2
> trying to div 1000 and 5
> Unspecified Exception:
> loop 3
> trying to div 10 and -5
> Unspecified Exception:
> on-the-wire response
> --------------------
> HTTP/1.1 200 OK^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 197^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><divResponse xmlns="http://soapinterop.org/wsdl"><divReturn>2</divReturn></divResponse></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> HTTP/1.1 500 Internal Server Error^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 2fb^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:DivByZeroStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.DivByZeroStruct]]></faultstring><detail xmlns=""><DivByZeroStruct xmlns="http://soapinterop.org/wsdl"><varString>Division by zero exception</varString><varInt>1</varInt><varFloat>10.52</varFloat></DivByZeroStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> HTTP/1.1 500 Internal Server Error^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 31a^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:SpecialDetailStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.SpecialDetailStruct]]></faultstring><detail xmlns=""><SpecialDetailStruct xmlns="http://soapinterop.org/wsdl"><varString>You have entered 1000 for the first parameter. 1000 is reserved. Please do not use it</varString></SpecialDetailStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> -----------------------------
> Is it possible to get the soap fault detail?
> Why do the last 2 faults not get caught by the Axis Exceptions?

-- 
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


[jira] Closed: (AXISCPP-259) WSDL faults not being deserialised

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-259?page=all ]
     
Dushshantha Chandradasa closed AXISCPP-259:
-------------------------------------------


> WSDL faults not being deserialised
> ----------------------------------
>
>          Key: AXISCPP-259
>          URL: http://issues.apache.org/jira/browse/AXISCPP-259
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Deserialization
>     Reporter: Andrew Perry
>     Assignee: Dushshantha Chandradasa

>
> The FaultMappingDoc test is not getting the expected output. The WSDL has 3 faults defined, DivByZeroStruct, OutOfBoundsStruct and SpecialDetailStruct. The test calls the MathOps service 4 times, 1 with valid values and the other 3 times to get the faults thrown. The services are hosted on WebSphere rather than the Axis Server, but from the response message you can see that the correct faults are being thrown. The first call works, the second to get a DivByZeroStruct fault sort of works in that a MathOpsService Exception is thrown but none of the fault detail is shown, but the final 2 requests which should also have MathOpsService exceptions get an unspecified exception in that 'catch(...)' catches it rather than either MathOpsService_AxisClientException or AxisException.
> Client output
> loop 0
> trying to div 10 and 5
> Result is 2
> loop 1
> trying to div 10 and 0
> MathOpsService Exception: AxisTransportException:HTTP transport error Internal Server Error
> loop 2
> trying to div 1000 and 5
> Unspecified Exception:
> loop 3
> trying to div 10 and -5
> Unspecified Exception:
> on-the-wire response
> --------------------
> HTTP/1.1 200 OK^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 197^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><divResponse xmlns="http://soapinterop.org/wsdl"><divReturn>2</divReturn></divResponse></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> HTTP/1.1 500 Internal Server Error^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 2fb^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:DivByZeroStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.DivByZeroStruct]]></faultstring><detail xmlns=""><DivByZeroStruct xmlns="http://soapinterop.org/wsdl"><varString>Division by zero exception</varString><varInt>1</varInt><varFloat>10.52</varFloat></DivByZeroStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> HTTP/1.1 500 Internal Server Error^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 31a^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:SpecialDetailStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.SpecialDetailStruct]]></faultstring><detail xmlns=""><SpecialDetailStruct xmlns="http://soapinterop.org/wsdl"><varString>You have entered 1000 for the first parameter. 1000 is reserved. Please do not use it</varString></SpecialDetailStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> -----------------------------
> Is it possible to get the soap fault detail?
> Why do the last 2 faults not get caught by the Axis Exceptions?

-- 
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


[jira] Assigned: (AXISCPP-259) WSDL faults not being deserialised

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-259?page=all ]

Dushshantha Chandradasa reassigned AXISCPP-259:
-----------------------------------------------

    Assign To: Dushshantha Chandradasa

> WSDL faults not being deserialised
> ----------------------------------
>
>          Key: AXISCPP-259
>          URL: http://issues.apache.org/jira/browse/AXISCPP-259
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Deserialization
>     Reporter: Andrew Perry
>     Assignee: Dushshantha Chandradasa

>
> The FaultMappingDoc test is not getting the expected output. The WSDL has 3 faults defined, DivByZeroStruct, OutOfBoundsStruct and SpecialDetailStruct. The test calls the MathOps service 4 times, 1 with valid values and the other 3 times to get the faults thrown. The services are hosted on WebSphere rather than the Axis Server, but from the response message you can see that the correct faults are being thrown. The first call works, the second to get a DivByZeroStruct fault sort of works in that a MathOpsService Exception is thrown but none of the fault detail is shown, but the final 2 requests which should also have MathOpsService exceptions get an unspecified exception in that 'catch(...)' catches it rather than either MathOpsService_AxisClientException or AxisException.
> Client output
> loop 0
> trying to div 10 and 5
> Result is 2
> loop 1
> trying to div 10 and 0
> MathOpsService Exception: AxisTransportException:HTTP transport error Internal Server Error
> loop 2
> trying to div 1000 and 5
> Unspecified Exception:
> loop 3
> trying to div 10 and -5
> Unspecified Exception:
> on-the-wire response
> --------------------
> HTTP/1.1 200 OK^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 197^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><divResponse xmlns="http://soapinterop.org/wsdl"><divReturn>2</divReturn></divResponse></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> HTTP/1.1 500 Internal Server Error^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 2fb^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:DivByZeroStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.DivByZeroStruct]]></faultstring><detail xmlns=""><DivByZeroStruct xmlns="http://soapinterop.org/wsdl"><varString>Division by zero exception</varString><varInt>1</varInt><varFloat>10.52</varFloat></DivByZeroStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> HTTP/1.1 500 Internal Server Error^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 31a^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:SpecialDetailStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.SpecialDetailStruct]]></faultstring><detail xmlns=""><SpecialDetailStruct xmlns="http://soapinterop.org/wsdl"><varString>You have entered 1000 for the first parameter. 1000 is reserved. Please do not use it</varString></SpecialDetailStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> -----------------------------
> Is it possible to get the soap fault detail?
> Why do the last 2 faults not get caught by the Axis Exceptions?

-- 
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


[jira] Closed: (AXISCPP-259) WSDL faults not being deserialised

Posted by "Andrew Perry (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXISCPP-259?page=history ]
     
Andrew Perry closed AXISCPP-259:
--------------------------------

    Resolution: Fixed

The change made by Adrian now passes the soap fault through the system.

> WSDL faults not being deserialised
> ----------------------------------
>
>          Key: AXISCPP-259
>          URL: http://nagoya.apache.org/jira/browse/AXISCPP-259
>      Project: Axis-C++
>         Type: Bug
>   Components: Serialization/Deserialization
>     Reporter: Andrew Perry

>
> The FaultMappingDoc test is not getting the expected output. The WSDL has 3 faults defined, DivByZeroStruct, OutOfBoundsStruct and SpecialDetailStruct. The test calls the MathOps service 4 times, 1 with valid values and the other 3 times to get the faults thrown. The services are hosted on WebSphere rather than the Axis Server, but from the response message you can see that the correct faults are being thrown. The first call works, the second to get a DivByZeroStruct fault sort of works in that a MathOpsService Exception is thrown but none of the fault detail is shown, but the final 2 requests which should also have MathOpsService exceptions get an unspecified exception in that 'catch(...)' catches it rather than either MathOpsService_AxisClientException or AxisException.
> Client output
> loop 0
> trying to div 10 and 5
> Result is 2
> loop 1
> trying to div 10 and 0
> MathOpsService Exception: AxisTransportException:HTTP transport error Internal Server Error
> loop 2
> trying to div 1000 and 5
> Unspecified Exception:
> loop 3
> trying to div 10 and -5
> Unspecified Exception:
> on-the-wire response
> --------------------
> HTTP/1.1 200 OK^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 197^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><divResponse xmlns="http://soapinterop.org/wsdl"><divReturn>2</divReturn></divResponse></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> HTTP/1.1 500 Internal Server Error^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 2fb^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:DivByZeroStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.DivByZeroStruct]]></faultstring><detail xmlns=""><DivByZeroStruct xmlns="http://soapinterop.org/wsdl"><varString>Division by zero exception</varString><varInt>1</varInt><varFloat>10.52</varFloat></DivByZeroStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> HTTP/1.1 500 Internal Server Error^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 31a^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:SpecialDetailStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.SpecialDetailStruct]]></faultstring><detail xmlns=""><SpecialDetailStruct xmlns="http://soapinterop.org/wsdl"><varString>You have entered 1000 for the first parameter. 1000 is reserved. Please do not use it</varString></SpecialDetailStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> -----------------------------
> Is it possible to get the soap fault detail?
> Why do the last 2 faults not get caught by the Axis Exceptions?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Re: [jira] Commented: (AXISCPP-259) WSDL faults not being deserialised

Posted by Samisa Abeysinghe <sa...@virtusa.com>.
The problem is "ns1" appearing from nowhere without a value for "ns1"
namespace :-(

This is a bug that we need to fix.


Samisa...

On Wed, 2005-07-20 at 10:55, Dushshantha Chandradasa (JIRA) wrote:
>     [ http://issues.apache.org/jira/browse/AXISCPP-259?page=comments#action_12316218 ] 
> 
> Dushshantha Chandradasa commented on AXISCPP-259:
> -------------------------------------------------
> 
> I fixed the promlem of picking the wrong tag. But still i have problems. The server sends wrong xml for the fault.
> 
> <?xml version='1.0' encoding='utf-8' ?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <SOAP-ENV:Body>
> <SOAP-ENV:Fault>
> <faultcode>AxisC++ Faultcode</faultcode>
> <faultstring>Custom Out of bound exception</faultstring>
> <faultactor>server name:listen port</faultactor>
> <detail><appSpecific><DivByZeroStruct><ns1:varString>Division by zero exception</ns1:varString>
> <ns1:varInt>1</ns1:varInt>
> <ns1:varFloat>10.520000</ns1:varFloat>
> </DivByZeroStruct>
> </appSpecific></detail>
> </SOAP-ENV:Fault>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> 
> Above is the SOAP message. In that, The namespace ns1 is not defined.
> 
> > WSDL faults not being deserialised
> > ----------------------------------
> >
> >          Key: AXISCPP-259
> >          URL: http://issues.apache.org/jira/browse/AXISCPP-259
> >      Project: Axis-C++
> >         Type: Bug
> >   Components: Client - Deserialization
> >     Reporter: Andrew Perry
> >     Assignee: Dushshantha Chandradasa
> 
> >
> > The FaultMappingDoc test is not getting the expected output. The WSDL has 3 faults defined, DivByZeroStruct, OutOfBoundsStruct and SpecialDetailStruct. The test calls the MathOps service 4 times, 1 with valid values and the other 3 times to get the faults thrown. The services are hosted on WebSphere rather than the Axis Server, but from the response message you can see that the correct faults are being thrown. The first call works, the second to get a DivByZeroStruct fault sort of works in that a MathOpsService Exception is thrown but none of the fault detail is shown, but the final 2 requests which should also have MathOpsService exceptions get an unspecified exception in that 'catch(...)' catches it rather than either MathOpsService_AxisClientException or AxisException.
> > Client output
> > loop 0
> > trying to div 10 and 5
> > Result is 2
> > loop 1
> > trying to div 10 and 0
> > MathOpsService Exception: AxisTransportException:HTTP transport error Internal Server Error
> > loop 2
> > trying to div 1000 and 5
> > Unspecified Exception:
> > loop 3
> > trying to div 10 and -5
> > Unspecified Exception:
> > on-the-wire response
> > --------------------
> > HTTP/1.1 200 OK^M
> > Server: WebSphere Application Server/5.1^M
> > Content-Type: text/xml; charset=utf-8^M
> > Content-Language: en-GB^M
> > Transfer-Encoding: chunked^M
> > ^M
> > 197^M
> > <?xml version="1.0" encoding="UTF-8"?>
> > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><divResponse xmlns="http://soapinterop.org/wsdl"><divReturn>2</divReturn></divResponse></soapenv:Body></soapenv:Envelope>^M
> > 0^M
> > ^M
> > HTTP/1.1 500 Internal Server Error^M
> > Server: WebSphere Application Server/5.1^M
> > Content-Type: text/xml; charset=utf-8^M
> > Content-Language: en-GB^M
> > Transfer-Encoding: chunked^M
> > ^M
> > 2fb^M
> > <?xml version="1.0" encoding="UTF-8"?>
> > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:DivByZeroStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.DivByZeroStruct]]></faultstring><detail xmlns=""><DivByZeroStruct xmlns="http://soapinterop.org/wsdl"><varString>Division by zero exception</varString><varInt>1</varInt><varFloat>10.52</varFloat></DivByZeroStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
> > 0^M
> > ^M
> > HTTP/1.1 500 Internal Server Error^M
> > Server: WebSphere Application Server/5.1^M
> > Content-Type: text/xml; charset=utf-8^M
> > Content-Language: en-GB^M
> > Transfer-Encoding: chunked^M
> > ^M
> > 31a^M
> > <?xml version="1.0" encoding="UTF-8"?>
> > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:SpecialDetailStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.SpecialDetailStruct]]></faultstring><detail xmlns=""><SpecialDetailStruct xmlns="http://soapinterop.org/wsdl"><varString>You have entered 1000 for the first parameter. 1000 is reserved. Please do not use it</varString></SpecialDetailStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
> > 0^M
> > ^M
> > -----------------------------
> > Is it possible to get the soap fault detail?
> > Why do the last 2 faults not get caught by the Axis Exceptions?
-- 
Samisa Abeysinghe <sa...@virtusa.com>
Virtusa Corporation

[jira] Commented: (AXISCPP-259) WSDL faults not being deserialised

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXISCPP-259?page=comments#action_12316218 ] 

Dushshantha Chandradasa commented on AXISCPP-259:
-------------------------------------------------

I fixed the promlem of picking the wrong tag. But still i have problems. The server sends wrong xml for the fault.

<?xml version='1.0' encoding='utf-8' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>AxisC++ Faultcode</faultcode>
<faultstring>Custom Out of bound exception</faultstring>
<faultactor>server name:listen port</faultactor>
<detail><appSpecific><DivByZeroStruct><ns1:varString>Division by zero exception</ns1:varString>
<ns1:varInt>1</ns1:varInt>
<ns1:varFloat>10.520000</ns1:varFloat>
</DivByZeroStruct>
</appSpecific></detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Above is the SOAP message. In that, The namespace ns1 is not defined.

> WSDL faults not being deserialised
> ----------------------------------
>
>          Key: AXISCPP-259
>          URL: http://issues.apache.org/jira/browse/AXISCPP-259
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Deserialization
>     Reporter: Andrew Perry
>     Assignee: Dushshantha Chandradasa

>
> The FaultMappingDoc test is not getting the expected output. The WSDL has 3 faults defined, DivByZeroStruct, OutOfBoundsStruct and SpecialDetailStruct. The test calls the MathOps service 4 times, 1 with valid values and the other 3 times to get the faults thrown. The services are hosted on WebSphere rather than the Axis Server, but from the response message you can see that the correct faults are being thrown. The first call works, the second to get a DivByZeroStruct fault sort of works in that a MathOpsService Exception is thrown but none of the fault detail is shown, but the final 2 requests which should also have MathOpsService exceptions get an unspecified exception in that 'catch(...)' catches it rather than either MathOpsService_AxisClientException or AxisException.
> Client output
> loop 0
> trying to div 10 and 5
> Result is 2
> loop 1
> trying to div 10 and 0
> MathOpsService Exception: AxisTransportException:HTTP transport error Internal Server Error
> loop 2
> trying to div 1000 and 5
> Unspecified Exception:
> loop 3
> trying to div 10 and -5
> Unspecified Exception:
> on-the-wire response
> --------------------
> HTTP/1.1 200 OK^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 197^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><divResponse xmlns="http://soapinterop.org/wsdl"><divReturn>2</divReturn></divResponse></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> HTTP/1.1 500 Internal Server Error^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 2fb^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:DivByZeroStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.DivByZeroStruct]]></faultstring><detail xmlns=""><DivByZeroStruct xmlns="http://soapinterop.org/wsdl"><varString>Division by zero exception</varString><varInt>1</varInt><varFloat>10.52</varFloat><From axis-c-dev-return-7327-apmail-ws-axis-c-dev-archive=ws.apache.org@ws.apache.org Wed Jul 20 10:56:04 2005
Return-Path: <ax...@ws.apache.org>
Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org
Received: (qmail 43634 invoked from network); 20 Jul 2005 10:56:04 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199)
  by minotaur.apache.org with SMTP; 20 Jul 2005 10:56:04 -0000
Received: (qmail 80089 invoked by uid 500); 20 Jul 2005 10:56:03 -0000
Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org
Received: (qmail 80024 invoked by uid 500); 20 Jul 2005 10:56:02 -0000
Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm
Precedence: bulk
list-help: <ma...@ws.apache.org>
list-unsubscribe: <ma...@ws.apache.org>
List-Post: <ma...@ws.apache.org>
List-Id: "Apache AXIS C Developers List" <axis-c-dev.ws.apache.org>
Reply-To: "Apache AXIS C Developers List" /DivByZeroStruct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> HTTP/1.1 500 Internal Server Error^M
> Server: WebSphere Application Server/5.1^M
> Content-Type: text/xml; charset=utf-8^M
> Content-Language: en-GB^M
> Transfer-Encoding: chunked^M
> ^M
> 31a^M
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><Fault xmlns="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:ns2008922717="http://soapinterop.org/wsdl" xmlns="">ns2008922717:SpecialDetailStruct</faultcode><faultstring xmlns=""><![CDATA[org.soapinterop.SpecialDetailStruct]]></faultstring><detail xmlns=""><SpecialDetailStruct xmlns="http://soapinterop.org/wsdl"><varString>You have entered 1000 for the first parameter. 1000 is reserved. Please do not use it</v...@ws.apache.org>
Delivered-To: mailing list axis-c-dev@ws.apache.org
Received: (qmail 80007 invoked by uid 99); 20 Jul 2005 10:56:02 -0000
X-ASF-Spam-Status: No, hits=0.0 required=10.0
	tests=SPF_FAIL
X-Spam-Check-By: apache.org
Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226)
    by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2005 03:55:50 -0700
Received: from ajax.apache.org (ajax.apache.org [127.0.0.1])
	by ajax.apache.org (Postfix) with ESMTP id C363BD6
	for <ax...@ws.apache.org>; Wed, 20 Jul 2005 12:55:47 +0200 (CEST)
Message-ID: <26...@ajax.apache.org>
Date: Wed, 20 Jul 2005 12:55:47 +0200 (CEST)
From: "John Hawkins (JIRA)" <ax...@ws.apache.org>
To: axis-c-dev@ws.apache.org
Subject: [jira] Commented: (AXISCPP-245) Pull Parser
In-Reply-To: <18...@nagoya>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Virus-Checked: Checked by ClamAV on apache.org
Xct></detail></Fault></soapenv:Body></soapenv:Envelope>^M
> 0^M
> ^M
> -----------------------------
> Is it possible to get the soap fault detail?
> Why do the last 2 faults not get caught by the Axis Exceptions?

-- 
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


-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N

    [ http://issues.apache.org/jira/browse/AXISCPP-245?page=comments#action_12316219 ] 

John Hawkins commented on AXISCPP-245:
--------------------------------------

buildWithTraceAndDebug you can get trace out too if you add a traceFile line to the axiscpp conf file.



> Pull Parser
> -----------
>
>          Key: AXISCPP-245
>          URL: http://issues.apache.org/jira/browse/AXISCPP-245
>      Project: Axis-C++
>         Type: New Feature
>   Components: XML parser abstraction layer
>     Versions: 1.4 Alpha
>  Environment: Windows and linux
>     Reporter: Farhaan Mohideen
>     Priority: Minor
>  Attachments: Guththila-1.0.1.tar.gz, guththila.zip
>
> Develop a pull parser that will support atleast UTF-8 and UTF-16 encoding with a clear seperation at the parser abstraction level so as to introduce a third parser available for Axis

-- 
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