Hi Michael
Thanks for letting us know. I remember Indika finding out some issue
related to validate mediator and/or caching.. Thus I will let him reply
to this as it may already be fixed. But if this is a defect that still
exists, we will surely fix it ASAP before 1.0.1
asankha
Michael Buchholz wrote:
Hi,
there seems to be a problem with the validate mediator. Seems to me
like a caching issue.
I changed the schema used in sample 7 so that synapse accepts messages
with symbol values that match the following restriction:
<xs:simpleType name="CharsOnly">
<xs:restriction base="xs:string">
<xs:pattern value="[A-Z]{3}"/>
</xs:restriction>
</xs:simpleType>
(see attached file for the modified sample 7)
After starting synapse the following test sequence fails at test #3:
-----Test #1-----
ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080 -Dsymbol=IBM
stockquote:
[java] Standard :: Stock price = $184.12973898992993
... worked. The schema seems to be valid. "IBM" is a valid symbol. :)
-----Test #2-----
Then I tried this:
ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080 -Dsymbol=IBM2
stockquote:
[java] org.apache.axis2.AxisFault: Invalid custom quote request
... correct. The symbol "IBM2" doesn´t match the given restriction
pattern.
-----Test #3-----
ant stockquote
-Daddurl=http://localhost:9000/soap/SimpleStockQuoteService
-Dtrpurl=http://localhost:8080 -Dsymbol=IBM
stockquote:
[java] org.apache.axis2.AxisFault: Invalid custom quote request
... this is the same as test #1 but it fails now. I think that the
validate mediator somehow caches the error of test #2.
Can you confirm this or am I doing something wrong?
Michael
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]