$authoriz = 'Basic '.encode_base64('user:passwd'); $soap->transport->http_request->headers->push_header('Authorization'=>$authoriz);