Contributions
Re: SOAP UI - Basic Authentication - where do I find it in Server Code?
jaforrest - Thank so much - Yes now have it in the http header, encoded as you said, when I set the 'Authenticate Pre Emtively to true'. (Don't need the Domain. Thought I had checked this). Thanks for this Phil2.9KViews0likes0CommentsRe: SOAP UI - Basic Authentication - where do I find it in Server Code?
Sorry for late reply, I've been away over Xmas. Thanks for responses and help - I'll try to clarify my problem. What I have is a SOAP server, written in PHP. Before using SOAPUI I wrote a small test client of my own, and included a username and password in the definition of the client object; $uname = "ABCDE"; $pword = "12345"; $client = new SoapClient('http://xyz/abcWSDL.wsdl',array('trace'=>1,'exceptions'=>1, 'login'=>$uname,'password'=>$pword)); then.... $res = $client->function($params); Within the Server I was able to validate these values using; $uname = "ABCDE"; $pword = "12345"; if(($_SERVER['PHP_AUTH_PW']!= $pword || $_SERVER['PHP_AUTH_USER'] != $uname) || !$_SERVER['PHP_AUTH_USER']) { header('WWW-Authenticate: Basic realm="Test auth"'); header('HTTP/1.0 401 Unauthorized'); echo 'Auth Failed'; exit; } Using SOAPUI I have set the Authorization to BASIC - together with a Username and Password, tried 'Pre-emptive auth' at both settings - but don't see the values in the SERVER object that is received, nor in the http Header. Is there another setting somewhere in SOAP UI that will let me do what my own client code does? Thanks in Advance9.9KViews0likes0CommentsSOAP UI - Basic Authentication - where do I find it in Server Code?
I have a SOAP Server written in PHP - and am Testing using SOAP UI. Everything works fine and returns results as expected. I am now trying to add in Basic Authentication - have set up in SOAP UI with Username and Password - BUT can't find how to check it in the Server code? I was expecting the credentials to be in the [SERVER] object passed to the server - but they are not. Can anyone help and advise how I check these items? Thanks PhilSolved11KViews0likes11Comments