[
https://issues.apache.org/jira/browse/SYNAPSE-705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927328#action_12927328
]
Heshan Suriyaarachchi commented on SYNAPSE-705:
-----------------------------------------------
Recreating the issue:
=================
You can use the Synapse configuration given in [1] to recreate the issue. After
starting Synapse, with the above mentioned configuration send a stockquote
request.
ant stockquote -Daddurl=http://localhost:9000/services/SimpleStockQuoteService
-Dtrpurl=http://localhost:8280/ -Dsymbol=MSFT
Capture the response message with TcpMon.
Expected response message:
=======================
HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Host: 127.0.0.1:8281
SOAPAction: "urn:getQuote"
Date: Tue, 02 Nov 2010 06:11:55 GMT
Transfer-Encoding: chunked
34d
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:MessageID>urn:uuid:96617199D43AF7762811061528457722739393852</wsa:MessageID>
<wsa:Action>urn:getQuote</wsa:Action>
<wsa:RelatesTo>urn:uuid:683D23ADE4892AD61A1288678308322</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode
xmlns:tns="http://www.w3.org/2003/05/soap-envelope">tns:Receiver</faultcode>
<faultstring>Currently , Address endpoint : [ Name :
endpoint_urn_uuid_F3FC39CF93F681A11649593938524451942754528 ] [ State :
SUSPENDED ]</faultstring>
<detail>
<AppErrorCode>
<TimeStamp>11/2/10 11:41 AM</TimeStamp>
<ErrorCode>8719</ErrorCode>
<ErrorText>Issue has</ErrorText>
</AppErrorCode>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>0
Actual response message:
====================
HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Host: 127.0.0.1:8281
SOAPAction: "urn:getQuote"
Date: Tue, 02 Nov 2010 06:11:55 GMT
Transfer-Encoding: chunked
34d
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:MessageID>urn:uuid:96617199D43AF7762811061528457722739393852</wsa:MessageID>
<wsa:Action>urn:getQuote</wsa:Action>
<wsa:RelatesTo>urn:uuid:683D23ADE4892AD61A1288678308322</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode
xmlns:tns="http://www.w3.org/2003/05/soap-envelope">tns:Receiver</faultcode>
<faultstring>Currently , Address endpoint : [ Name :
endpoint_urn_uuid_F3FC39CF93F681A11649593938524451942754528 ] [ State :
SUSPENDED ]</faultstring>
<detail><AppErrorCode><TimeStamp>10/26/10 12:49
PM</TimeStamp><ErrorCode>8719</ErrorCode><ErrorText>Issue has
</ErrorText></AppErrorCode></detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>0
[1] -
http://heshans.blogspot.com/2010/10/generate-custom-error-messages-with.html
> Fixing an issue in the script mediator
> --------------------------------------
>
> Key: SYNAPSE-705
> URL: https://issues.apache.org/jira/browse/SYNAPSE-705
> Project: Synapse
> Issue Type: Bug
> Components: Script mediator
> Affects Versions: NIGHTLY
> Environment: Ubuntu 10.10,
> JDK 1.6
> Reporter: Heshan Suriyaarachchi
> Fix For: FUTURE
>
>
> When using makefault mediator to generate custom error messages, we can
> populate the <details/> element with an xpath expression. When we set a
> property String in the script and retrieve later in the configuration, this
> works perfectly. But if you set an XML object to the property and later
> retrieve it and populate the <details/> element, the XML within the
> <details/> element would not display properly.
> I would add a sample configuration to prove my point. I am currently working
> on a fix for this. Once I am done with the fix will attach it to the jira.
> Regards,
> Heshan.
--
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: [email protected]
For additional commands, e-mail: [email protected]