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

Thread: Doubt about spring-integration-xml with Spring-XML

  1. #1
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Question 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
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  2. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

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

  3. #3
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Default

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

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  4. #4
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

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

  5. #5
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Default

    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?
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  6. #6
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Exclamation 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
    - Manuel Jordan

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  7. #7
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    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

  8. #8
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Default

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

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  9. #9
    Join Date
    Aug 2006
    Location
    Arequipa-Peru / South America
    Posts
    2,796

    Default

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

    Kill Your Pride, Share Your Knowledge With All
    The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7

    Blog


    Technical Reviewer of Apress

    • Pro SpringSource dm Server
    • Spring Enterprise Recipes: A Problem-Solution Approach
    • Spring Recipes: A Problem-Solution Approach, 2nd Edition
    • Pro Spring Integration
    • Pro Spring Batch
    • Pro Spring 3
    • Pro Spring MVC: With Web Flow
    • Pro Spring Security

  10. #10
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

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

Posting Permissions

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