Announcement Announcement Module
Collapse
No announcement yet.
Doubt about spring-integration-xml with Spring-XML Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Doubt about spring-integration-xml with Spring-XML

    Hello Guys

    I am working with

    Code:
    <spring.integration.framework.version>2.0.4.RELEASE</spring.integration.framework.version>		
    ....
    <dependency>
    	<groupId>org.springframework.integration</groupId>
    	<artifactId>spring-integration-core</artifactId>
    	<version>${spring.integration.framework.version}</version>
    </dependency>
    Now I am working with

    <int-xml:marshalling-transformer marshaller/>
    and
    <int-xml:unmarshalling-transformer />

    Therefore I need add a new Maven dependency to use int-xml namespace

    Code:
    <dependency>
      	<groupId>org.springframework.integration</groupId>
          	<artifactId>spring-integration-xml</artifactId>
          	<version>${spring.integration.framework.version}</version>
    </dependency>
    I am using

    Code:
    <int-xml:marshalling-transformer 
                         marshaller="castorMarshaller"
     		     result-type="StringResult"
                         input-channel="input"
    		     output-channel="xml"	/>
    This class belong in the package org.springframework.xml.transform where belong to:

    Spring Web Services 2.0.2.RELEASE

    Within the Spring-XML section, see the API here

    Even if I go to SpringSource Enterprise Bundle Repository and search the term StringResult, the best result of the list generated is


    where I can see

    Code:
    Classes matching: 'StringResult'
    • org.springframework.xml.transform.StringResult
    Where the Maven Dependency is
    Code:
    <dependency>
        <groupId>org.springframework.ws</groupId>
        <artifactId>org.springframework.xml</artifactId>
        <version>2.0.0.RELEASE</version>
    </dependency>
    Belong to Spring Web Services (BTW compare the two red part above, Spring XML and Spring Web Services)

    I am confused about the follow

    Why my code work without problems if I never added some Spring Web Service dependency within my application and I only added

    <artifactId>spring-integration-xml</artifactId>

    I know that result-type="StringResult" work with (The follow data appear like a description because I work with STS 2.6.1)

    Code:
    Enumerated Values : 
    	- DOMResult
    	- StringResult
    Where Enumerated Values are not a class, of course for each value. But If I dont use <int:object-to-string-transformer> I got this exception

    Code:
    Exception in thread "main" org.springframework.integration.transformer.MessageTransformationException: 
    failed to transform message
     at .....
    
    Caused by: org.springframework.integration.MessagingException: 
    failed to create Source for payload type 
    [org.springframework.xml.transform.StringResult]
    	at ...
    Therefore the package and the class is referrenced or used by Spring Integration

    Some guidance and explanation about this situation, I will appreciate

    Thanks in advanced

  • #2
    StringResult is part of spring-xml-2.0.2 which is a transient dependency of spring-integration-xml 2.0.4.

    Comment


    • #3
      Hello Oleg

      StringResult is part of spring-xml-2.0.2 which is a transient dependency of spring-integration-xml 2.0.4.
      Thanks for the explanation

      Comment


      • #4
        Btw, just talked to Bruce Snyder and Castor 1.3.2 is available here https://repository.sonatype.org/inde...h;quick~castor

        Comment


        • #5
          Hello Oleg

          Btw, just talked to Bruce Snyder and Castor 1.3.2 is available here https://repository.sonatype.org/inde...h;quick~castor
          Good to know that, thanks for share it

          I just updagrated to 1.3.2 ( I got a reply from Castor) and now the code not work, I going to share detailed info soon

          Perhaps Bruce could give me a hand?

          Comment


          • #6
            Error about transitive version dependency

            StringResult is part of spring-xml-2.0.2 which is a transient dependency of spring-integration-xml 2.0.4.
            In Maven Central I check it spring-integration-xml 2.0.4

            appear the spring-xml dependency but with other version

            Code:
            <dependency>
                  <groupId>org.springframework.ws</groupId>
                  <artifactId>spring-xml</artifactId>
                  <version>1.5.9</version>
                  <scope>compile</scope>
            </dependency>
            1.5.9 instead of 2.0.2

            Comment


            • #7
              My mistake. We've upgraded to 2.0.2 in this current SNAPSHOT https://jira.springsource.org/browse/INT-1911
              In other words SI 2.0.4 does depend on 1.5.9 while 2.0.5 will be compatible with 1.5.9 and/or 2.0.2

              Comment


              • #8
                Thanks a lot Oleg

                In other words SI 2.0.4 does depend on 1.5.9 while 2.0.5 will be compatible with 1.5.9 and/or 2.0.2
                I have a question
                1. SWS about 1.5.x series is over?, because exists SWS 2.0.x series
                2. SI 2.0.5 would be focused only to work with SWS 2.0.x for forward?

                I did realize SWS 1.5.10 are available too in
                http://www.springsource.com/download/community

                Thank you

                Comment


                • #9
                  Hello Oleg

                  When would be available SI 2.0.5?

                  Mark told me here that SI 2.1 milestone would be available in August

                  Thank you

                  Comment


                  • #10
                    We should be releasing 2.0.5 by the end of this week.

                    Comment


                    • #11
                      We should be releasing 2.0.5 by the end of this week.
                      Sounds great, I going to test all my training labs again with this new version.

                      Thanks for your effort in making this powerful project!

                      Comment

                      Working...
                      X