You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Xilai Dai (JIRA)" <ji...@apache.org> on 2013/07/31 09:03:50 UTC
[jira] [Updated] (CXF-5169) the schema-validation-enabled property
doesn't work for OUT message validation
[ https://issues.apache.org/jira/browse/CXF-5169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xilai Dai updated CXF-5169:
---------------------------
Description:
With this configuration:
{code}
<jaxws:endpoint ...>
......
<jaxws:properties>
<entry key="schema-validation-enabled" value="true" />
</jaxws:properties>
</jaxws:endpoint>
{code}
then, the schema validation for Request(IN) message works well, but it doesn't take any effect for Response(OUT) message.
the schema (from WSDL) piece example which I used is:
{code}
<xsd:element name="DemoServiceOperationResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="out">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="20"></xsd:minLength>
<xsd:maxLength value="30"></xsd:maxLength>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
{code}
was:
With this configuration:
<jaxws:endpoint ...>
......
<jaxws:properties>
<entry key="schema-validation-enabled" value="true" />
</jaxws:properties>
</jaxws:endpoint>
then, the schema validation for Request(IN) message works well, but it doesn't take any effect for Response(OUT) message.
the schema (from WSDL) piece example which I used is:
<xsd:element name="DemoServiceOperationResponse">
<xsd:complexType>
<xsd:sequence>
<!--xsd:element name="out" type="xsd:string"></xsd:element-->
<xsd:element name="out">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="20"></xsd:minLength>
<xsd:maxLength value="30"></xsd:maxLength>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
> the schema-validation-enabled property doesn't work for OUT message validation
> ------------------------------------------------------------------------------
>
> Key: CXF-5169
> URL: https://issues.apache.org/jira/browse/CXF-5169
> Project: CXF
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.7.6
> Reporter: Xilai Dai
>
> With this configuration:
> {code}
> <jaxws:endpoint ...>
> ......
> <jaxws:properties>
> <entry key="schema-validation-enabled" value="true" />
> </jaxws:properties>
> </jaxws:endpoint>
> {code}
> then, the schema validation for Request(IN) message works well, but it doesn't take any effect for Response(OUT) message.
> the schema (from WSDL) piece example which I used is:
> {code}
> <xsd:element name="DemoServiceOperationResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="out">
> <xsd:simpleType>
> <xsd:restriction base="xsd:string">
> <xsd:minLength value="20"></xsd:minLength>
> <xsd:maxLength value="30"></xsd:maxLength>
> </xsd:restriction>
> </xsd:simpleType>
> </xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira