soap:Envelope SOAP-ENV:Envelope PHP

后端 未结 1 843
名媛妹妹
名媛妹妹 2020-12-17 18:59

I\'m trying to login to an API using built-in soap functions of PHP. I got a result like this.

[LoginResult]=> false,
[ErrorMsg] => Login failed with t         


        
1条回答
  •  甜味超标
    2020-12-17 19:41

    Here is the solution. :)

     SOAP_1_1,"trace" => 1));
    
    $user_param = array (
      'WebProviderLoginId' => "test",
      'WebProviderPassword' => "test",
      'IsAgent' => false
    );
    
    $service_param = array (
      'objSecurity' => $user_param,
      "OutPut" => NULL,
      "ErrorMsg" => NULL
    );
    
    print_r(
       $client->__soapCall(
           "Login",
           array($service_param)
       )
    );
    
    echo $client->__getLastRequest();
    
    ?>
    

    & the request was:

    
    
    
       
           
               test
               test
               false
           
       
    
    
    

    Thanks to this link. PHP SOAP Request not right

    0 讨论(0)
提交回复
热议问题