You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Kasun Samarasinghe (JIRA)" <ji...@apache.org> on 2007/03/23 13:41:32 UTC

[jira] Updated: (SYNAPSE-81) The options set inside the makefault mediator not set properly when a fault occurs

     [ https://issues.apache.org/jira/browse/SYNAPSE-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kasun Samarasinghe updated SYNAPSE-81:
--------------------------------------

    Attachment: makefault.patch

Bug fixed and patch file is attached here. Please review the patch and apply it 

> The options set inside the makefault mediator not set properly when a fault occurs
> ----------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-81
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-81
>             Project: Synapse
>          Issue Type: Bug
>    Affects Versions: 1.0-RC1-B2
>         Environment: Windows XP, j2sdk1.4.2_13
>            Reporter: Evanthika Amarasiri
>         Attachments: makefault.patch
>
>
> Created the following sequence and tried to validate against an invalid xsd. Since the validation fails, a saop fault should be returned.
> <definitions xmlns="http://ws.apache.org/ns/synapse">
> <localEntry key="filter_validate_schema"  src="file:repository/conf/sample/resources/validate/div_schema.xsd"/>
> <in>
> 	<validate>
> 		<schema key="filter_validate_schema"/>
>                 <on-fail>
>                     <makefault trace="enable">
>                         <code value="tns:Receiver" xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
>                         <reason value="Invalid custom quote request" />
> 			<detail value="Detailed description of the soap fault" />
>                     </makefault>
>                     <send/>
>                 </on-fail>
> 	</validate>
> 	<send>
> 		<endpoint>
> 			<address  uri="http://localhost:9001/axis2/services/Division"/>
> 		</endpoint>
> 	</send>
> </in>
> <out>
> 	<log level="full" separator=",">
> 		<property name="after_filt_prop" value="Incoming Message getting filtered -  After"/>
> 	</log>
> 	<send/>
> </out>
> </definitions>
> When checked the synapse console, I realized that the soap fault which is created is blank.
> <?xml version='1.0' encoding='utf-8'?>
> 	<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> 		<soapenv:Body>	
> 			<soapenv:Fault>
> 				<faultcode>
> 				</faultcode>
> 				<faultstring>
> 				</faultstring>
> 				<detail>
> 				</detail>
> 			</soapenv:Fault>
> 	</soapenv:Body>
> </soapenv:Envelope>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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