Preetham,

Thanks for your reply. Do you see the same problem? Could you tell me
reason? Is it a AXIS2 issue? May be there is some parameter we can configure
in axis2.xml (in OutFaultFlow phase order) to solve this issue.

Chinmoy

On Wed, Jul 29, 2009 at 8:06 PM, Axis PC <[email protected]> wrote:

> Chinmoy,
>
> When an exception occurs on the server end...and if you know the kind of
> exception...try wrapping it as a fault. In most cases it has worked for me
> as expected.
>
> Preetham
>
>
> On Wed, Jul 29, 2009 at 9:14 AM, Chinmoy Chakraborty <[email protected]>wrote:
>
>> Hi All,
>>
>> I am using rampart 1.4 and Axis2 1.4. I have parameterbased ws-security
>> enabled services. In normal cases when there is no error at the time of
>> invocation (invocation of business logic) of the service, it works fine.
>> Following is the SOAP is returned by axis2 (captured in TCPMon):
>>
>> *Good One*
>> --------------
>> HTTP/1.1 200 OK
>> Content-Type: text/xml;charset=UTF-8
>> Transfer-Encoding: chunked
>> Date: Wed, 29 Jul 2009 12:56:25 GMT
>> Server: Apache-Coyote/1.1
>>
>> <?xml version='1.0' encoding='UTF-8'?>
>> <soapenv:Envelope xmlns:soapenv="
>> http://schemas.xmlsoap.org/soap/envelope/";>
>>  <soapenv:Body>
>>   <ns:invokeResponse xmlns:ns="http://www.abc.com/webservice";>
>>   <ns:return>5.5</ns:return>
>>   </ns:invokeResponse>
>>  </soapenv:Body>
>> </soapenv:Envelope>
>>
>>
>> So far so good. Now when some error happens at the time of service
>> invocation it does not return SOAP fault back. I got following things
>> (captured in TCPMon):
>>
>> Bad One
>> ----------
>> HTTP/1.1 500 Internal Server Error
>> Content-Type: text/html;charset=UTF-8
>> Content-Language: en-US
>> Content-Length: 980
>> Date: Wed, 29 Jul 2009 12:58:29 GMT
>> Server: Apache-Coyote/1.1
>> Connection: close
>>
>> <html><head><title>Apache Tomcat/5.0.19 - Error
>> report</title><style><!--H1
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
>> H2
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
>> H3
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
>> BODY
>> {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
>> P
>> {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
>> {color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
>> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade><p><b>type</b>
>> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The
>> server encountered an internal error () that prevented it from fulfilling
>> this request.</u></p><HR size="1" noshade><h3>Apache
>> Tomcat/5.0.19</h3></body></html>
>>
>> I have no clue what went wrong. Am I missing something? Do I need to
>> configure anything in services.xml (inside inflowsecurity)/axis2.xml? or is
>> this a bug?
>>
>> Chinmoy
>>
>>
>
>

Reply via email to