Hello Guys
I am working with
Now I am working withCode:<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>
<int-xml:marshalling-transformer marshaller/>
and
<int-xml:unmarshalling-transformer />
Therefore I need add a new Maven dependency to use int-xml namespace
I am usingCode:<dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-xml</artifactId> <version>${spring.integration.framework.version}</version> </dependency>
This class belong in the package org.springframework.xml.transform where belong to:Code:<int-xml:marshalling-transformer marshaller="castorMarshaller" result-type="StringResult" input-channel="input" output-channel="xml" />
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
Where the Maven Dependency isCode:Classes matching: 'StringResult'
- org.springframework.xml.transform.StringResult
Belong to Spring Web Services (BTW compare the two red part above, Spring XML and Spring Web Services)Code:<dependency> <groupId>org.springframework.ws</groupId> <artifactId>org.springframework.xml</artifactId> <version>2.0.0.RELEASE</version> </dependency>
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)
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 exceptionCode:Enumerated Values : - DOMResult - StringResult
Therefore the package and the class is referrenced or used by Spring IntegrationCode: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 ...
Some guidance and explanation about this situation, I will appreciate
Thanks in advanced


Reply With Quote