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.