Hi Andrei, FYI, I guess his requirement is from this discussion[1], obviously he don't like the solution in[1] and wanna get object from input stream directly and bypass all interceptors afterwards.
[1]http://cxf.547215.n5.nabble.com/java-lang-IndexOutOfBoundsException-in-processing-td5716948.html#a5716993 ------------- Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://fusesource.com | http://www.redhat.com/ Twitter: freemanfang Blog: http://freemanfang.blogspot.com http://blog.sina.com.cn/u/1473905042 weibo: http://weibo.com/u/1473905042 On 2012-10-26, at 下午5:01, Andrei Shakirin wrote: > I guess you need following code to obtain MessagePart for client incoming > chain: > > public MessagePartInfo getClientInMessagePartInfo(Message message) { > Exchange exchange = message.getExchange(); > BindingOperationInfo operation = > (BindingOperationInfo)exchange.get(BindingOperationInfo.class > .getName()); > > if (operation == null) { > return null; > } > > BindingMessageInfo bmsg = operation.getOutput(); > if (bmsg == null) { > return null; > } > > List<MessagePartInfo> parts = bmsg.getMessageParts(); > if ((parts != null) && !parts.isEmpty()) { > return parts.iterator().next(); > } else { > return null; > } > } > > May I ask what exactly you update in response from SAP-BI Webservice? > Is it some payload elements and namespaces or you use own unmarshalling? > In first case CXF Transformation Feature may be helpful: > http://cxf.apache.org/docs/transformationfeature.html. > > Andrei. > > -----Original Message----- > From: Crack_David [mailto:[email protected]] > Sent: Donnerstag, 25. Oktober 2012 19:44 > To: [email protected] > Subject: Re: Sending return value from Interceptor back to client > > Mhmmm... > > I've tried > > MessageContentsList.getContentsList(msg).put(0, response); > > but function "put" has to have the parameters (MessagePartInfo, Object)... > > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/Sending-return-value-from-Interceptor-back-to-client-tp5717416p5717452.html > Sent from the cxf-user mailing list archive at Nabble.com.
