Spring Integration HTTP: inconsistent attribute "path" for element "inbound-gateway" -
i noticed spring integration use attribute "path" in element "inbound-gateway", reported in documentation:
http://docs.spring.io/spring-integration/reference/html/http.html#_request_mapping_support
but in xsd of http integration "path" attribute doesn't exist:
http://www.springframework.org/schema/integration/http/spring-integration-http.xsd <xsd:element name="inbound-gateway"> <xsd:complextype> <xsd:annotation> <xsd:documentation>defines inbound http-based messaging gateway.</xsd:documentation> </xsd:annotation> <xsd:complexcontent> <xsd:extension base="gatewaytype"> <xsd:attribute name="name" type="xsd:string"/> <xsd:attribute name="extract-reply-payload" type="xsd:string" default="true"/> <xsd:attribute name="supported-methods" type="xsd:string"/> <xsd:attribute name="view" type="xsd:string"> <xsd:annotation> <xsd:appinfo> <tool:annotation kind="ref"> <tool:expected-type type="org.springframework.web.servlet.view"/> </tool:annotation> </xsd:appinfo> </xsd:annotation> </xsd:attribute> <xsd:attribute name="request-mapper" type="xsd:string"> <xsd:annotation> <xsd:appinfo> <tool:annotation kind="ref"> <tool:expected-type type="org.springframework.integration.http.inboundrequestmapper"/> </tool:annotation> </xsd:appinfo> </xsd:annotation> </xsd:attribute> <xsd:attribute name="request-key" type="xsd:string"/> <xsd:attribute name="reply-key" type="xsd:string"/> <xsd:attribute name="reply-timeout" type="xsd:string"/> </xsd:extension> </xsd:complexcontent> </xsd:complextype> </xsd:element>
this seems list of "accepted" attributes:
name extract-reply-payload supported-methods view request-mapper request-key reply-key reply-timeout
the "path" attribute doesn't exist in definition.
the effect have error @ start of application:
org.xml.sax.saxparseexception; linenumber: 71; columnnumber: 53; cvc-complex-type.3.2.2: attribute "path" not allowed appear in element "int-http:inbound-gateway".
this "incriminated" portion of configuration:
<int-http:inbound-gateway request-channel="receivechannel" path="/receivegateway" supported-methods="post"/>
this inconsistent! maybe missing?
i don't want search through internet spring integration version showing xsd, enough old , there present path
attribute in current , many previous versions:
<xsd:attributegroup name="inboundcommonattributes"> <xsd:attribute name="path" type="xsd:string"> <xsd:annotation> <xsd:documentation> comma-separated uri paths (e.g., /orderid/{order}). ant-style path patterns supported (e.g. /mypath/*.do). </xsd:documentation> </xsd:annotation> </xsd:attribute>
please, consider, switch on spring nature in eclipse let read xsds jar in project rather internet.
Comments
Post a Comment