Hi Sameera,

Can you please also mention the use case where you need to send user
credentials in a custom header?
Just wondering whether you could send them in security header as user name
token? If not, I hope this communication happens over TLS since the custom
header contains credentials.

Thanks,
Hasini.

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
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to