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 05:09:32 UTC

[jira] Commented: (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:comment-tabpanel#action_12483390 ] 

Kasun Samarasinghe commented on SYNAPSE-81:
-------------------------------------------

When we set the version property to soap11 this bug occurs.
but when we set  it to soap12 it creates the SOAPFault with specified values as follows.
Still it does not set the detail element value of SOAPFault.
<soapenv:Fault>
    <soapenv:Code>
       <soapenv:Value xmlns:tns="http://www.w3.org/2003/05/soap-envelope">tns:Receiver
       </soapenv:Value>
    </soapenv:Code>
    <soapenv:Reason>
        <soapenv:Text>Invalid custom quote request</soapenv:Text>
     </soapenv:Reason>
     <soapenv:Detail>
     </soapenv:Detail>
</soapenv:Fault>

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