Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6201109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:29:39+00:00 2026-05-24T04:29:39+00:00

I am successfully connecting, using Microsoft C#, to a Microsoft web service. I have

  • 0

I am successfully connecting, using Microsoft C#, to a Microsoft web service. I have to supply a username, password (in the C# code); and install a certificate (in .cer format) into the “Root Certificate Authorities” section of the system’s certificates.

How can I connect to such a web service in PHP? The reason I ask is that all methods I have seen (such as wsdl2php, which creates a SoapClient subclass), seem to assume various things, such as SSL certificate, SSL key file and SSL key passphrase.

So it all confuses me. I’m not sure what should go where. I’m not sure where my “root certificate authority” (the .cer file) should go, and where the username and password should go. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T04:29:41+00:00Added an answer on May 24, 2026 at 4:29 am

    all can be done whith soapclient and stream_context_create using ssl options

    <?php
    $context = stream_context_create(array(
      'https' => array(
         'cafile' => '/path to file',
         'verify_peer' => true
      )));
    
    new soapclient("https://localhost/index.php?wsdl",array(
      'login'=>'admin',
      'password'=>'passss',
      'stream_context'=> $context
    ));
    

    it is not uncommon in soap to not use http auth but just an soap-call, the documnetation is essential

    it can be rewarding to use soapclient whith classes using classmap to map soaptypes to php clases

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am connecting to a Java Axis2 web service using a .NET web service
I've successfully created Ruby-C++ bindings in the past using SWIG where the C++ code
I have successfully built a thin client/server using Qt's Tcp Sockets API. I know
I am using Microsoft Visual Basic 2010 Express. I have a WPF-based project. I
I have PHPMyAdmin connecting to a remote MySQL server, using those parameters: $cfg['blowfish_secret'] =
[EDITED] I am connecting to SQL Server 2005. i have configured the certificate on
I am successfully connecting to the internet using an application called tether for a
I am connecting to Active-Directory and getting the thumbnailPhoto attribute successfully. I have stored
I have been quite successfully using CMake to perform builds using the ExternalProject_Add function,
I have connecting to my database in a JSF web application that I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.