dmvrtx / php-signed-soap-client

PHP SOAP Client with SOAP Message Security support
http://dev.good-guy.me/archives/356
17 stars 14 forks source link

consumption error with https and ssl signature #7

Open DaruinHerrera opened 3 years ago

DaruinHerrera commented 3 years ago

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://demo-servicesesb.datacredito.com.co/wss/dhws3/services/DHServicePlus?wsdl' : failed to load external entity "https://demo-servicesesb.datacredito.com.co/wss/dhws3/services/DHServicePlus?wsdl" in C:\xampp\htdocs\WsDemo\4.php:54 Stack trace: #0 C:\xampp\htdocs\WsDemo\4.php(54): SoapClient->SoapClient('https://demo-se...', Array) #1 C:\xampp\htdocs\WsDemo\4.php(281): SignedSoapClient->__construct('https://demo-se...', Array) #2 {main} thrown in C:\xampp\htdocs\WsDemo\4.php on line 54

$url= 'https://demo-servicesesb.datacredito.com.co/wss/dhws3/services/DHServicePlus?wsdl'; $client = new SignedSoapClient($url, array('ssl' => array('cert' => 'llave.p12','certpasswd' => 'seve2020')));

How should I use it, it throws me this error to try to use the class. Can you give me an example of using the class to sign the header

`POST https://demo-servicesesb.datacredito.com.co:443/wss/dhws3/services/DHServicePlus HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: text/xml;charset=UTF-8 SOAPAction: "" Content-Length: 6120 Host: demo-servicesesb.datacredito.com.co:443 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.5.5 (Java/12.0.1)

dfdfdfdfdfdfdsffdfdfdfdsf 4+gVCZChKtFBeWygQ/44JQ== 2020-11-28T14:09:09.960Z 2020-11-28T14:09:09.545Z 2020-11-28T14:10:09.545Z MIIFujCCBbYwggSeoAMCAQICEAdWOJ5kdYOJj4XpunYZRewwDQYJKoZIhvcNAQELBQAwgY8xCzAJBgNVBAYTAkdCMRswGQYDVQQIExJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAOBgNVBAcTB1NhbGZvcmQxGDAWBgNVBAoTD1NlY3RpZ28gTGltaXRlZDE3MD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QSB8gDwAHYAfT7y+I//iFVoJMLAyp5SiXkrxQ54CX8uapdomX4i8NcAAAF1b9XpiQAABAMARzBFAiB3wTE0CV0KMsrR9u+K1yPIyfAZa9IHLHL3VSnCgwelKQIhAO/1ouZkUdfpWLGhuX5rBScOvsHaS/fSLYTwt9FLXy1dAHYAlCC8Ho7VjWyIcx+CiyIsDdHaTV5sT5Q9YdtOL1hNosIAAAF1fddfdsfdfMj9qjkK/sqRuWWseXJFeT8pcEdqSWA2QWK6I=1+HdkjQ/S94blovaYLr1Ttgy12V/rkJMDbotOWMxHoIcySUoHwD8I1brl/bilJ/fhvicnsfP42zI cbrjFc6W67/9BDXg8xoVmTAVXyjD3whlOVpizkqWUr+HO5t7hiiKXoz2f3KPVWixCPzw1YBANMni nxABw/sH++xOl659q+Tu+vSpl3VIfdfdsffsdwHpoQ87lFBKXS7etRwgqp +Py0dZn6nHh/3M9wTQsHHcS9JpGwTWCVaFGNeZPoSUPAo2Ph/xrfTgZaacsszkiWQNClpV1Rm1NL Vb4xKbSdnL2fdfd4l7+asLFqg8Dx0UDwY7mFRaBqLg== 034JAY 1057184125 ACUÑA 64 1 93ddddda4389 ? ? ? `
vivianaZuluaga commented 3 years ago

Hola @DaruinHerrera pudiste solucionar el error?, yo también estoy intentando conectarme a datacrédito sin exito obtengo el error "Hash values do not match." y me he quedado enfrascada en este punto. Saludos :)

DaruinHerrera commented 3 years ago

También lo estás haciendo por php, usa cursos o migralo a python

jotsuar commented 3 years ago

@vivianaZuluaga Lograste con php resolver esto? Te agradecería tu ayuda me sale el mismo error.