You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2007/03/06 20:35:21 UTC

[jira] Commented: (SM-867) Cannot add soap header in JSR181 component

    [ https://issues.apache.org/activemq/browse/SM-867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_38673 ] 

Guillaume Nodet commented on SM-867:
------------------------------------

Author: gnodet
Date: Tue Mar  6 11:32:20 2007
New Revision: 515265

URL: http://svn.apache.org/viewvc?view=rev&rev=515265
Log:
SM-867: Cannot add soap headers in JSR181 component

Modified:
   incubator/servicemix/trunk/deployables/serviceengines/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/Jsr181ExchangeProcessor.java


Author: gnodet
Date: Tue Mar  6 11:34:34 2007
New Revision: 515266

URL: http://svn.apache.org/viewvc?view=rev&rev=515266
Log:
SM-867: Cannot add soap headers in JSR181 component

Modified:
   incubator/servicemix/branches/servicemix-3.1/deployables/serviceengines/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/Jsr181ExchangeProcessor.java



> 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.