Published on WSO2 Oxygen Tank (http://wso2.org)

is there a way to add some http headers on wsdl2php generated scripts?

By gag_72
Created 2008-05-05 06:06

Hi,

I'm using wsdl2php.php generated scripts to make web service calls. Since the wsdl specified transport is http, is there a way through which I can add certain Http headers in the Http requests that are created by wsclient?

Something like

wsclientProxy->addHttpHeader(name,value)

What I want to add is a BASIC AUTH header. I'm perfactly willing to change wsdl2php.php generated client code.


Source URL:
http://wso2.org/forum/thread/3540