Cannot reach the WSDL
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2011 04:33 PM
Hi,
I am trying to get my PHP SOAP to work
I have followed the follwing instrunctions
http://wiki.alfresco.com/wiki/Alfresco_PHP_Library_Installation_Instructions
Every time when i try to connect to my Alfresco Installation i get the following message.
I use the following script for this
The is the result i get every time:
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http:///localhost:8080/alfresco/api/AuthenticationService?wsdl'
I have a fresh install of Alfresco. Do i need to activate this Service anywhere?
Thanks
I am trying to get my PHP SOAP to work
I have followed the follwing instrunctions
http://wiki.alfresco.com/wiki/Alfresco_PHP_Library_Installation_Instructions
Every time when i try to connect to my Alfresco Installation i get the following message.
I use the following script for this
// Use the ALF_AVAILABLE value to make this script work remotely and locally if (isset($_SERVER["ALF_AVAILABLE"]) == false) { // Include the required Alfresco PHP API objects require_once "Alfresco/Service/Repository.php"; require_once "Alfresco/Service/Session.php"; } // The web service end point URL for the Alfresco repository $repositoryUrl = "http:///localhost:8080/alfresco/api"; // The user credentials we are going to use $userName = "admin"; $password = "admin"; // Create the repository object baseed on the repository URL. The repository represents the Alfresco repository we are connecting to. // It can be used to authenticate users and as a session factory. $repository = new Repository($repositoryUrl); // Authenticate the user details for the repository we want to connect to. Assuming authentication is succesful we will be returned // a ticket. The ticket is a string which can be used to create Session's $ticket = $repository->authenticate($userName, $password); // Using the ticket we can now create a session. In general it is better to create a new session for a new page or page sequence rather // than creating one and using across many pages as this helps to prevent resource usage from creaping up. $session = $repository->createSession($ticket);
The is the result i get every time:
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http:///localhost:8080/alfresco/api/AuthenticationService?wsdl'
I have a fresh install of Alfresco. Do i need to activate this Service anywhere?
Thanks
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2011 07:24 AM
Hi,
I think, that first this URL should be corected … eliminate the third shlash .
Change this:
to that:
cu, Ralf
I think, that first this URL should be corected … eliminate the third shlash .
Change this:
$repositoryUrl = "http:///localhost:8080/alfresco/api";
to that:
$repositoryUrl = "http://localhost:8080/alfresco/api";
cu, Ralf
