Hi, You can use enrich mediator to add a custom header to the message. Please have a look at [1].
[1] http://wso2.org/project/esb/java/4.0.3/docs/samples/message_mediation_samples.html#Sample15 On Fri, May 25, 2012 at 9:52 AM, Sameera Jayasoma <[email protected]> wrote: > Hi Devs, > > How do you do subject? I heard that only simple valued headers can be > added using using the header mediator. But my requirement is to add a > header like following to the outgoing request. > > <soapenv:Header> > <urn:AuthenticationInfo> > <urn:userName>temp</urn:userName> > <urn:password>temp123</urn:password> > </urn:AuthenticationInfo> > </soapenv:Header> > > AFAIK, only way to achieve this is to write a custom mediatory. Please let > me know, if there is a better way to do this. > > Thanks, > Sameera. > > -- > Sameera Jayasoma > Technical Lead > > WSO2, Inc. (http://wso2.com) > email: [email protected] > blog: http://tech.jayasoma.org > > Lean . Enterprise . Middleware > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Kasun Indrasiri Associate Technical Lead WSO2, Inc.; http://wso2.com lean.enterprise.middleware cell: +94 71 536 4128 Blog : http://kasunpanorama.blogspot.com/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
