ERROR: WSDL - SOAP-ERROR: Parsing WSDL: Couldn't load from

16,345

See in the documentation:

$client = new SoapClient("some.wsdl", array('login'          => "some_name",
                                            'password'       => "some_password"));

change username to login and try the above method

Share:
16,345
Admin
Author by

Admin

Updated on June 04, 2022

Comments

  • Admin
    Admin almost 2 years

    I have a php code that uses soap

    I get the error

    ERROR: WSDL - SOAP-ERROR: Parsing WSDL: Couldn't load from

    It's a security wsdl so I need to send also username and password. what is wrong in my code? I see it at web and does'nt work from soap in php code. here is my code:

    <?php
    ini_set("soap.wsdl_cache_enabled", "0"); 
    $soap_url = 'http://some-ip/prod/app/soap/user/storeitemws?WSDL';
    $sh_param = array(
                    'username' => 'aya',
                    'password' => 'aya');
    
    $soap_client = new SoapClient($soap_url);
    $test = $soap_client->Authenticate($sh_param);
    
    echo $test . "\nDone";
    ?>
    

    thanks

  • Admin
    Admin almost 12 years
    if I go to it from the browser it askes for username and password.
  • oneofakind
    oneofakind almost 11 years
    Hi, how do I know the methods of the Webservice provided? Viewing the xml via browser, how will I know which are the methods? Thanks.
  • CodeCaster
    CodeCaster almost 11 years
    @oneofakind take a look at the WSDL wiki. You'll be looking for <operation name="..." /> elements.