Apache Camel AMQP - ActiveMQ AMQP header mismatch value 1, expecting 0
By : meghana gurram
Date : March 29 2020, 07:55 AM
|
AMQP 1.0 Qpid BytesMessage large payload
By : David
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further So you have basically landed on every deprecated bit of AMQP software I know of so I would guess that your issue comes from one of the old and unmaintained pieces of software. ActiveMQ Apollo has been deprecated an unmaintained for several years now, instead you should use ActiveMQ Artemis which is the most active broker in the ActiveMQ project.
|
ruby rest-client content in the header / payload
By : Bruno Meirelles
Date : March 29 2020, 07:55 AM
|
Spring WS - Looking for Request header/payload and Response header/payload Example
By : Apophenion
Date : March 29 2020, 07:55 AM
With these it helps I have solved the issue. I can send the SOAP header to a service and extract the response header from response also. No need for interceptors. Main help was from blog post from Andreas Veithen. . code :
public class ClientSamaAccountInformation extends WebServiceGatewaySupport {
public ClientSamaAccountInformation() {
}
public FIGetAcctsInfoCallBackRs sendRequest(FIGetAcctsInfoCallBackRq request, MsgHdrRq msgHdrRq) {
WebServiceTemplate webServiceTemplate = getWebServiceTemplate();
try {
ResponseAndHeader responseAndHeader = webServiceTemplate.sendAndReceive(Constants.WEBSERVICE_URL,
new WebServiceMessageCallback() {
public void doWithMessage(WebServiceMessage message) throws IOException {
try {
Jaxb2Marshaller marshallerRq = new Jaxb2Marshaller();
marshallerRq.setContextPath("com.abc.domain..getacctinfo");
marshallerRq.afterPropertiesSet();
MarshallingUtils.marshal(marshallerRq, request, message);
SoapHeader soapHeader = ((SoapMessage)message).getSoapHeader();
JAXBContext context = JAXBContext.newInstance(MsgHdrRq.class);
Marshaller marshaller = context.createMarshaller();
marshaller.marshal(msgHdrRq, soapHeader.getResult());
} catch (Exception e) {
e.printStackTrace();
}
}
},
new WebServiceMessageExtractor<ResponseAndHeader>() {
public ResponseAndHeader extractData(WebServiceMessage message) throws IOException {
//Extract response payload
FIGetAcctsInfoCallBackRs response = null;
try {
Jaxb2Marshaller marshallerRs = new Jaxb2Marshaller();
marshallerRs.setContextPath("com.abc.domain..getacctinfo");
marshallerRs.afterPropertiesSet();
response = (FIGetAcctsInfoCallBackRs) MarshallingUtils.unmarshal(marshallerRs, message);
} catch (Exception e) {
e.printStackTrace();
}
//Extract response header
MsgHdrRs msgHdrRs = null;
try {
JAXBContext context = JAXBContext.newInstance(MsgHdrRs.class);
Unmarshaller unmarshaller = context.createUnmarshaller();
SoapHeader header = ((SoapMessage)message).getSoapHeader();
Iterator<SoapHeaderElement> it = header.examineHeaderElements(new QName("http://www.abc.def.com/common/Header", "MsgHdrRs"));
while(it.hasNext()) {
msgHdrRs = (MsgHdrRs) unmarshaller.unmarshal(it.next().getSource());
System.out.println(msgHdrRs);
}
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
});
return null;
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
}
|
How to use SpEL to read payload and header content in a Spring Integration Router
By : user2566994
Date : March 29 2020, 07:55 AM
To fix this issue Looks like the paylaod is MIComposite not Composite. In any case, SpEL uses the JavaBean conventions; so isError() is a getter for a boolean property error. So payload.error should work (as long as MIComposite exposes it). Or you can use payload.isError().
|