You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Nath, Niraj" <Ni...@cns-inc.com> on 2008/10/19 04:19:42 UTC

How to add custome header to a WSDL

Hi,

   We have a scenario where in a custom header is added in the soap request by the client. This header contains some details which helps the server side for client authentication.



Do we have a way to define this custom header in the WSDL .

Our custom header looks like

 <uns:UserInfo xmlns:uns="http://xxx.com/xsd" accessId="xxx" accessKey="vvv" domain="XXX" />



Any help is appreciated.


Regards
Niraj

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: How to add custome header to a WSDL

Posted by Dimuthu Gamage <di...@gmail.com>.
Hi Nath,

Here[1]  is an example of custom headers in a wsdl. Sometime back I wrote a
blog[2] on how to use custom headers in Axis2/C. It is very similar how you
use it with Axis2/Java.


[1]
https://wso2.org/repos/wso2/trunk/wsf/php/src/tests/samples/services/wsdl_mode/headers.wsdl
[2]
http://www.dimuthu.org/blog/2008/08/21/how-to-build-custom-soap-headers-in-wsdl-using-axis2c-and-wsfphp/

Thanks
Dimuthu

On Sun, Oct 19, 2008 at 7:49 AM, Nath, Niraj <Ni...@cns-inc.com> wrote:

> Hi,
>
>   We have a scenario where in a custom header is added in the soap request
> by the client. This header contains some details which helps the server side
> for client authentication.
>
>
>
> Do we have a way to define this custom header in the WSDL .
>
> Our custom header looks like
>
>  <uns:UserInfo xmlns:uns="http://xxx.com/xsd" accessId="xxx"
> accessKey="vvv" domain="XXX" />
>
>
>
> Any help is appreciated.
>
>
> Regards
> Niraj
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Thanks,
Dimuthu Gamage

http://www.dimuthu.org
http://www.wso2.org