views:

10

answers:

1

I'm wanting to validate a soap request against the schema inside this 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"&gt;

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

Loading a javax.xml.validation.Validator for the schema validating against a < thecomp:submitFormRequest> element doesn't work, neither does attempting to load the wsdl as the schema.

Ideas please? (using jax-ws, was7)

Cheers