Jarrod
Jarrod

Reputation: 9465

SOAP Authentication

So I'm wanting to authenticate my SOAP web service with basic HTTP Authentication. I've searched the internet and all I find is...

$soapAuthArray = Array('login' => 'user', 
                       'password' => 'test) ;

$client = new SoapClient("http://localhost/test/ws/cow.wsdl", $soapAuthArray);

Great... so I know how to pass a user and password, but how do I do something with it?

I've created my own wsdl file, server, and client. Everything is currently working without authentication.

Thanks. j.

Upvotes: 1

Views: 2323

Answers (1)

adnanced
adnanced

Reputation: 48

PHP SOAP extension is a little confusing. I'm using NuSoap instead for years now (but you have to disable PHP soap extension). You can find many examples coming with their library or check out this article

Upvotes: 2

Related Questions