验证wsdl中针对模式的jaxws soap请求:类型

问题描述:

我想验证此wsdl中针对模式的soap请求。验证wsdl中针对模式的jaxws soap请求:类型

<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> 

加载的架构验证反对< thecomp:submitFormRequest>元素不工作javax.xml.validation.Validator,同样没有尝试加载WSDL作为模式。

想法请? (使用JAX-WS,was7)

干杯

我提取的请求/响应到它自己的模式文件:

<wsdl:types > 
    <xsd:schema> 
     <xsd:import namespace="http://ws.acc.co.nz/ACCFormSubmissionService20100824" 
       schemaLocation="../schema/ws/ACCFormSubmissionService20100824.xsd" /> 
    </xsd:schema>    
</wsdl:types> 

验证对新架构命名空间/ XSD的要求工作。