PHP Client & WS Security, can it be done?

Apologies if this is posted in the wrong forum. I also asked the same question in “XML and Web Services.” Yes, it’s that important. :slight_smile:

I’m trying to connect a PHP client to a .NET SOAP web service secured with WS security. If it matters, the endpoint is a proxy for the service.

I’ve tried WSF/PHP with no success, and the project seems to be dead in the water. The sample scripts all fail with no errors, and using the wsdl2php tool gives me code that when run, makes my browser think I’m trying to download the script. (If I do download it, it comes up blank.)

Are there any alternatives to WSF/PHP? Have you ever successfully made a PHP client connect to a WS-secured service?

Help me, Sitepoint Community, You’re my only hope!

It’s using WS security, does that answer the question? As in, UserNameToken type stuff. Also, there’s a WSDL, and the endpoint is a proxy, on https.

Here is the endpoint: https://mdotnetpublic.state.mi.us/tcrsweb/UD10ImageBusinessService.svc/Proxy
The screen is blank when I go to it.
The WSDL: http://mdotnetpublic.state.mi.us/tcrsweb/UD10ImageBusinessService.svc?wsdl

I’ve tried curl, with no success, do you have a working example?

What kind of authentication is being used, what error do you get if you try and access it directly in a browser? If wsf-php isn’t workimg for you chances are you should be able to work via curl directly to get access.