Note that there are some explanatory texts on larger screens.

plurals
  1. POsoapclient request from php to c# web service with authentication
    primarykey
    data
    text
    <p>I want to execute remote function by using php soap.The web service is created by using c# .net.There must be authentication in order to call remote function.I always get unauthorized error whenever i tried to call remote function.However,when i get content of web service by using wget like this</p> <pre><code>wget -c --user=my_username --password=my_password http://path/to/wsdl </code></pre> <p>and i got this output:</p> <pre><code> --2011-02-09 09:55:10-- http://path/to/wsdl Connecting to my_ip:80... connected. HTTP request sent, awaiting response... 401 Unauthorized Reusing existing connection to my_ip:80. HTTP request sent, awaiting response... 401 Unauthorized Reusing existing connection to my_ip:80. HTTP request sent, awaiting response... 200 OK Length: 3300 (3.2K) [text/html] Saving to: `my_webservice.asmx' 100%[====================================================================================================================================================================================================&gt;] 3,300 --.-K/s in 0.001s 2011-02-09 09:55:11 (3.81 MB/s) - `my_webservice.asmx' saved [3300/3300] </code></pre> <p>When i use soap inorder to call remote function like this:</p> <pre><code>$connSoap = new SoapClient($WebServiceUrl, array('login' =&gt; $username, 'password' =&gt; $password)); $requestOutput = $connSoap-&gt;GetVal (1, 1, 1); </code></pre> <p>I got this error:</p> <pre><code>SoapClient::SoapClient(http://path/to/wsdl): failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized </code></pre> <p>Any comments?</p> <p>Thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload