SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict bkennedy's Avatar
    Join Date
    Aug 2004
    Location
    michigan
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

    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!
    ----------------
    bob.kennedy
    ----------------

  2. #2
    Community Advisor silver trophy

    Join Date
    Nov 2006
    Location
    UK
    Posts
    2,547
    Mentioned
    40 Post(s)
    Tagged
    1 Thread(s)
    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.

  3. #3
    SitePoint Addict bkennedy's Avatar
    Join Date
    Aug 2004
    Location
    michigan
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by EastCoast View Post
    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.

    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/tc...vice.svc/Proxy
    The screen is blank when I go to it.
    The WSDL: http://mdotnetpublic.state.mi.us/tcr...rvice.svc?wsdl

    I've tried curl, with no success, do you have a working example?
    ----------------
    bob.kennedy
    ----------------


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •