[
https://issues.apache.org/activemq/browse/SM-867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Nodet updated SM-867:
-------------------------------
Fix Version/s: 3.2
3.1.1
Assignee: Guillaume Nodet
> Cannot add soap header in JSR181 component
> ------------------------------------------
>
> Key: SM-867
> URL: https://issues.apache.org/activemq/browse/SM-867
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-jsr181
> Environment: ServiceMix 3.2 under Windows XP
> Reporter: Phu Quyen Le
> Assigned To: Guillaume Nodet
> Fix For: 3.1.1, 3.2
>
>
> I would like to add some properties in the soap header of the message in a
> jsr181 component. But I can't do because of the following problem:
> Started from the example wsdl-first of ServiceMix, I've modified the file
> PersonImpl.java as follow:
> ...
> InOut exchange = (InOut) JBIContext.getMessageExchange();
> Normalizedmessage outMsg = exchange.createMessage();
> outMsg.setProperty(JbiConstants.SOAP_HEADERS, headers);
> exchange.setOutMessage(outMsg);
> GetPersonResponse response = new GetPersonResponse();
> return response;
> ...
> I received then the follwing exception message:
> java.lang.Exception: javax.jbi.messaging.MessagingException: Out message is
> already set.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.