Click here to Skip to main content
15,942,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,


I m trying to consume a remote WCF web service using PHP SOAP Client.
Given the URL for the service, and username and password.

VB
$options = array(
                exceptions=true,
                trace=1,
                cache_wsdl=WSDL_CACHE_NONE,
                login='UName',
                password='ABCD';
            );

    $soapClient = new SoapClient('http://example.com/TestSrvice.svc?wsdl', $options);

This fails giving the warning 'failed to open stream: HTTP request failed!'

Can someone help me to solve this?

'http://example.com/TestSrvice.svc?wsdl' cant be accessed thru my web browser also
Posted
Updated 16-Apr-12 22:50pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900