You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Zhiying Yan (Jira)" <ji...@apache.org> on 2021/09/23 07:49:00 UTC

[jira] [Created] (CAMEL-16997) Can't convert the document message from a CXF request to type String

Zhiying Yan created CAMEL-16997:
-----------------------------------

             Summary: Can't convert the document message from a CXF request to type String
                 Key: CAMEL-16997
                 URL: https://issues.apache.org/jira/browse/CAMEL-16997
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 3.11.1
            Reporter: Zhiying Yan


I have a service which consumer application/json, if I have following route:
{code:java}
				from("cxfrs://" + "http://127.0.0.1:8058??resourceClasses=local_project.testcrest_0_1.testcRest$Service_cREST_1").process(new Processor() {
					
					public void process(Exchange exchange) throws Exception {
//						System.out.println(exchange.getIn().getBody(String.class)); // the returns a null
						System.out.println(exchange.getIn().getBody());            // this returns a [#document: null], and in debug mode, could see the input as child in document.
					}
				}){code}





--
This message was sent by Atlassian Jira
(v8.3.4#803005)