hash() expects parameter 2 to be string, object given

162 views
Skip to first unread message

Alexandre Collienne

unread,
May 3, 2016, 6:41:58 AM5/3/16
to wse-php
Hi,

I start to use your solution to make a SOAP call and I get this error. It's on line 764. Can you help me please?

Thanks.

Alexandre Collienne

Alexandre Collienne

unread,
May 3, 2016, 6:41:58 AM5/3/16
to wse-php
Hi,

I try to set up your SOAP solution in laravel and i get this error "hash() expects parameter 2 to be string, object given". I don't understand what I can do. Have you a solution?

Thanks,

Alexandre Collienne

Rob

unread,
May 3, 2016, 6:42:27 AM5/3/16
to wse-php
What's your sample code look like?
 

Alexandre Collienne

unread,
May 3, 2016, 8:20:09 AM5/3/16
to wse-php








$url = 'https://example.com/service?wsdl';


$xml = '<wst:RequestSecurityToken Context="abc" xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512">


                <wst:TokenType>http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1</wst:TokenType>


                <wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue</wst:RequestType>


                        <wst:Claims Dialect="http://schemas.xmlsoap.org/ws/2006/12/authorization/authclaims">


                        <auth:ClaimType Uri="urn:be:smals:expeditor:number" xmlns:auth="http://schemas.xmlsoap.org/ws/2006/12/authorization">


                                <auth:Value>######</auth:Value>


                        </auth:ClaimType>


                                </wst:Claims>


                        </wst:RequestSecurityToken>';


       


        $sc = new MySoap($url);


       


        try {


                $out = $sc->RequestSecurityToken($xml);


                var_dump($out);


        } catch (SoapFault $fault) {


                var_dump($fault);


        }


Here is my code.

Alexandre Collienne

unread,
May 17, 2016, 5:39:11 AM5/17/16
to wse-php
Have you an idea what happens?


Le mardi 3 mai 2016 12:42:27 UTC+2, Rob a écrit :

Cristian Tala Sánchez

unread,
Jun 7, 2016, 7:57:06 AM6/7/16
to wse-php
I am having the same issue with lumen, but is weird because I don't have it if I call it from somewhere else.

Cristian Tala Sánchez

unread,
Jun 7, 2016, 7:57:06 AM6/7/16
to wse-php
I am having the same issue. Did you fix it ?

Rob

unread,
Jul 8, 2016, 9:38:55 AM7/8/16
to wse-php
What versions are you using for wse-php and the underlying xmlseclibs?
Reply all
Reply to author
Forward
0 new messages