Проверьте запрос мыла jaxws на схему внутри wsdl:types
Я хочу проверить запрос мыла по схеме внутри этого wsdl.
<wsdl:types >
<xsd:schema targetNamespace="http://ws.thecompany.com/FormSubmissionService20100824"
xmlns:request="http://xmlschema.thecompany.com/generic/FormHeader20100824" xmlns:response="http://xmlschema.thecompany.com/generic/FormResponse20100824">
<xsd:import namespace="http://xmlschema.thecompany.com/generic/FormHeader20100824" schemaLocation="../schema/generic/FormHeader20100824.xsd"/>
<xsd:import namespace="http://xmlschema.thecompany.com/generic/FormResponse20100824" schemaLocation="../schema/generic/FormResponse20100824.xsd"/>
<xsd:element name="submitFormRequest" type="request:FormHeader"/>
<xsd:element name="submitFormResponse" type="response:FormResponse"/>
</xsd:schema>
</wsdl:types>
<!-- Message Definition -->
<wsdl:message name="submitFormRequest">
<wsdl:part element="thecomp:submitFormRequest" name="request" />
</wsdl:message>
Загрузка javax.xml.validation.Validator
для схемы проверки по < thecomp:submitFormRequest>
элемент не работает, также как и попытка загрузить wsdl в качестве схемы.
Идеи пожалуйста? (используя jax-ws, was7)
ура
1 ответ
Решение
Я извлек запрос / ответ в свой собственный файл схемы:
<wsdl:types >
<xsd:schema>
<xsd:import namespace="http://ws.acc.co.nz/ACCFormSubmissionService20100824"
schemaLocation="../schema/ws/ACCFormSubmissionService20100824.xsd" />
</xsd:schema>
</wsdl:types>
Проверка в соответствии с новой схемой пространства имен /xsd работает как требуется.