LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-17-2011, 12:13 PM   #1
clau_bolson
Member
 
Registered: Nov 2003
Location: Argentina
Distribution: Debian Sarge
Posts: 52

Rep: Reputation: 15
PHP - SOAP failed to load external entity


I have an apache web server with php 5.3 and I need to connect to a webservice I set up in sqlserver 2008
Both servers are in the intranet.
If from my browser I write http://192.168.2.2/internet?wsdl I am prompted for a user and a password, which are those of a windows user with permissions to connect to the ws. After writing them I can see the XML file in my browser.

the php file is

<?php
$client=new SoapClient('http://192.168.2.2/internet?wsdl'
,array('login'=>"[user]",'password'=>"[password]")
); //replace user and password with the real ones
?>

and I get (in the log):
PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://192.168.2.2/internet?wsdl' : failed to load external entity "http://192.168.2.2/internet?wsdl"\n in /var/www/html/ws/index.php on line 15
PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://192.168.2.2/internet?wsdl' : failed to load external entity "http://192.168.2.2/internet?wsdl"\n in /var/www/html/ws/index.php:15\nStack trace:\n#0 /var/www/html/ws/index.php(15): SoapClient->SoapClient('http://192.168....', Array)\n#1 {main}\n thrown in /var/www/html/ws/index.php on line 15


I've tried variations in the url, the user, with and without password, with no luck
I've googled a lot, with no luck

Any ideas?
Thanks.
 
Old 03-18-2011, 11:04 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
The webservices we are working with have urls like that:
http://192.168.2.2/internet/wsdl
The "?" usually adds some params to the resource...
Have you tried like that, too?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Begin using PHP SOAP pgte3 Linux - Newbie 1 01-20-2011 10:07 AM
[SOLVED] Soap problem in PHP rahmad Linux - Server 5 06-07-2010 01:48 AM
Getting Error: Missing Dependency: php-common, when trying to install php-soap amish123 Linux - Software 3 02-18-2010 07:26 PM
Please help.... PHP and SOAP!! masenko703 Linux - Software 1 04-26-2009 09:28 AM
advx php soap support? schallig Mandriva 1 07-15-2005 01:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration