(Please note this a temporary workaround and this will be addressed properly in future releases)
If you need to send a SOAP message payload ever and if it resulted something like this.
<task:customerSchema><ext:value>&lt;maxStops>2&lt;/maxStops></ext:value></task:customerSchema>
Because by default, a StAX parser must be in non coalescing mode (It overrides the default settings mandated by the StAX specification) and as a side effect of that parser coaelsce CDATA sections. [1]
You need to add the XMLInputFactory.properties file with the following entry to CARBON_HOME/ (root) folder.
If you need to send a SOAP message payload ever and if it resulted something like this.
<task:customerSchema><ext:value>&lt;maxStops>2&lt;/maxStops></ext:value></task:customerSchema>
Because by default, a StAX parser must be in non coalescing mode (It overrides the default settings mandated by the StAX specification) and as a side effect of that parser coaelsce CDATA sections. [1]
You need to add the XMLInputFactory.properties file with the following entry to CARBON_HOME/ (root) folder.
javax.xml.stream.isCoalescing=false
For more information
[1] http://people.apache.org/~veithen/axiom/userguide/ch04.html#factory.properties
[2] http://wso2.org/forum/thread/10891
[2] http://wso2.org/forum/thread/10891
Great
ReplyDeleteJava Web Services Online Training | Web Services Course | Web Services Training Courses | Java Web Services Training in Chennai | Java Training in Chennai | Java Training Institutes in Chennai | Java Web Services Interview Questions | Java Web Services Interview Questions
This comment has been removed by the author.
ReplyDeleteDoes this actually work?
ReplyDeleteYour blog provided us with valuable information to work with. I found so many interesting stuff in your blog especially it's discussion, Each & every tips of your post are awesome. I Really like this post, thanks for sharing. Tom
ReplyDelete