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


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.

Reply via email to