Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: more than one schema in PayloadValidatingInterceptor

  1. #1
    Join Date
    Mar 2006
    Location
    Germany, Karlsruhe
    Posts
    157

    Default more than one schema in PayloadValidatingInterceptor

    Hi,

    i have more than one schema which PayloadValidatingInterceptor should use.
    The JAXB marshaller have an schemas element, something similar would be nice for the PayloadValidatingInterceptor.

    Cheers,

    Ingo

  2. #2
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    You're right. Could you create an issue? Thanks!
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  3. #3
    Join Date
    Jan 2007
    Posts
    7

    Default

    Arjen,

    I'm using the schemas property on the PayloadValidationInterceptor but it only validates payload request correctly for the first XSD schema location defined in the list.

    <property name="interceptors">
    <list>
    <bean
    class="org.springframework.ws.soap.server.endpoint .interceptor.PayloadValidatingInterceptor">
    <property name="schemas">
    <list>
    <value>
    /WEB-INF/xsd/PaymentSubmission.xsd
    </value>
    <value>
    /WEB-INF/xsd/Notifications.xsd
    </value>
    </list>
    </property>
    <property name="validateRequest" value="true" />
    <property name="validateResponse" value="true" />
    </bean>
    </list>
    </property>

    If I switch the order than the FileSubmission Web Services works well and visa versa. Could it be that it's because the two XSD schemas share the same target namespace?

    I looked a bit in the source code but I could not locate why I'm having this strange behavior. A solution could be to just put them together in one XSD shema. Sadly I didn't make the WSDL definitions where I extracted these XSD schemas from.

    Kind regards,

    Mark

  4. #4
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Which version of the JDK are you using?
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  5. #5
    Join Date
    Jan 2007
    Posts
    7

    Default

    I'm using JDK 1.5

    For now, I put both schema definition elements that share the same namespace together in one XSD file. I used the schema property instead of the schemas property and that works ofcourse.

    Mark

  6. #6

    Default

    Quote Originally Posted by Arjen Poutsma View Post
    You're right. Could you create an issue? Thanks!
    has there been a ticket opened for this? what's the status?

  7. #7

    Default

    really, please tell what is the status of this problem?

  8. #8
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    There is no JIRA issue yet, as far as I know.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  9. #9

    Default

    should we create one (or two)?

  10. #10
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Please create an issue here: http://opensource.atlassian.com/proj...ing/browse/SWS. Make sure to attach the multiple schema files which show the problem, if possible.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •