Jump to content

SoapClient with HTTPS


enesi

Recommended Posts

Hello,

 

I'm trying to use SoapClient library to connect to wsdl source on https soap server. SOAP server use also http authentication.

 

I try with:

 

<?php

        $wsdl_uri = "https://collaudo.geniogroup.it/bbi-api/services/sisterRead?wsdl";

        $client = new SoapClient($wsdl_uri, array('login' => "xx", 'password' => "yyy"));

?>

 

but I reveice the following error:

 

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't find <definitions> in 'https://collaudo.geniogroup.it/bbi-api/services/sisterRead?wsdl' in /home/enesi8i/public_html/soap.php:7 Stack trace: #0 /home/enesi8i/public_html/soap.php(7): SoapClient->SoapClient('https://collaud...', Array) #1 {main} thrown in /home/enesi8i/public_html/soap.php on line 7

 

 

Perhaps I should use this syntax?

 

$client = new SoapClient("some.wsdl", array('login' => "xx", 'password' => "yyy", 'local_cert'    => "cert_key.pem"));

 

In this case, how can I create a valide cert?

 

Thanks for support

Walter

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.