Results 1 to 4 of 4

Thread: Missing ws schema include

  1. #1
    Join Date
    Mar 2008
    Posts
    8

    Default Missing ws schema include

    I'm facing some problems when I try to do some tests with the ws target adapter. I'm affraid that that my problem is caused by the
    http://www.springframework.org/schem...ration-1.0.xsd schema file.
    The include of the spring-integration-ws-1.0.xsd schema is actually missing in this file.

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,844

    Default

    It's questionable whether that file should be included. In fact, it's possible that the adapters XSD and core XSD will be separated again for cleaner separation of the modules.

    All you need to do is include the "ws" namespace in your xml header and then prefix that target with "ws".

    Hope that helps.
    -Mark

  3. #3
    Join Date
    Mar 2008
    Posts
    8

    Default

    What do you mean by "ws" namespace? As far as I understand there is no targetNamespace defined in de spring-integration-ws-1.0.xsd schema. Which namespace should I use ?

  4. #4
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,844

    Default

    I see. The current namespace configuration mechanism uses imports to include other namespaces from dependent modules. We are very likely going to modify this so that multiple target namespaces will be used (e.g. integration, integration-adapters, and integration-ws). The motivation was to keep things simpler, but now that the source and source-endpoint definitions are separated, the use of 3 distinct namespaces seems to make the most sense.

    In the meantime, this is the way to handle the "ws" namespace. Please note that this is taken directly from the spring-integration-ws test cases:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:si="http://www.springframework.org/schema/integration"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
         http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
         http://www.springframework.org/schema/integration
        http://www.springframework.org/schema/integration/spring-integration-ws-1.0.xsd">
    
       <si:message-bus/>
    
       <si:channel id="testChannel"/>
    
       <si:ws-target id="adapterWithDefaultSourceExtractor" uri="http://example.org" channel="testChannel"/>
    
       <si:ws-target id="adapterWithCustomSourceExtractor" uri="http://example.org" channel="testChannel"
    			source-extractor="sourceExtractor"/>
    
       <bean id="sourceExtractor" class="org.springframework.integration.ws.config.StubSourceExtractor"/>
    
    </beans>

Posting Permissions

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