I have two schemas and two endpoints, and currently i have only one servlet. Is there a way I can add both schemas to the one servlet? or do I have to add a second servlet.
Other possibilities ive seen involve combining two two scemas into one schema, my problemn here is I would not want people to be able to see the content of the second schema. What would be the best way to go about this.
Any suggestions on this would be useful I have found suggesions but nothing to say what would be the best way to go about doing this.
Currently I have a single servlet that uses simpleXsdSchema
<bean id="schema" class="org.springframework.xml.xsd.SimpleXsdSchema"
p:xsd = "classpath:au/test/Search/ws/schemas/Search.xsd"/>
i wanted to do something like this:
<bean id="schema" class="org.springframework.xml.xsd.SimpleXsdSchema">
<property name="schema">
<list>
<value>
classpath:au/test/Search/ws/schemas/Search.xsd
</value>
<value>
classpath:au/test/Search/ws/schemas/admin/SearchAdmin.xsd
</value>
</list>
</property>
</bean>
*i am aware this does not work
but im not really sure if this is the right way to be going about this.
after more research multiple schema’s can be declared using the schema collection class, need to import xmlschema framework.
for my case this was not the best method i found to do so instead declaring two servlets was the best course of action.