cancel
Showing results for 
Search instead for 
Did you mean: 

WSDL parsing problem!

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi,
I'm trying to use the php api library in alfresco. I've installed all the php code, configured it to point to my alfresco axis server and so on.
However, if I try to execute one of the sample php script (i.e. SimpleBrowser.php) the server keeps coming out with this SOAP-ERROR

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing Schema: can't import schema from 'http://10.0.0.100:8080/alfresco/wsdl/types.xsd', unexpected 'targetNamespace'='http://www.alfresco.org/model/content/1.0' in C:\www\xampp\phpIntegration-unsupported\Alfresco\Service\WebService\AlfrescoWebService.php:43 Stack trace: #0 C:\www\xampp\phpIntegration-unsupported\Alfresco\Service\WebService\AlfrescoWebService.php(43): SoapClient->SoapClient('http://10.0.0.1…', Array) #1 C:\www\xampp\phpIntegration-unsupported\Alfresco\Service\WebService\WebServiceFactory.php(65): AlfrescoWebService->__construct('http://10.0.0.1…', Array, 'TICKET_50bfef53…') #2 C:\www\xampp\phpIntegration-unsupported\Alfresco\Service\Session.php(60): AlfWebServiceFactory::getDictionaryService('http://10.0.0.1…', 'TICKET_50bfef53…') #3 C:\www\xampp\phpIntegration-unsupported\Alfresco\Service\Repository.php(104): AlfSession->__construct(Object(AlfRepository), 'TICKET_50bfef53…') #4 C:\www\xampp\phpIntegration-unsupported\web\php\Exam in C:\www\xampp\phpIntegration-unsupported\Alfresco\Service\WebService\AlfrescoWebService.php on line 43

It seems that the php-side soap is unable to parse the wsdl file which is sent by the alfresco server to the host client. More specifically, soap is complaining about the 'targetNamespace' tag which can be found in the wsdl file.
I'm using alfresco 3.3, and the latest version of xampp for the client side.

what is going on?
thanks in advance,
2 REPLIES 2

gyro_gearless
Champ in-the-making
Champ in-the-making
Hm, so this bug: http://issues.alfresco.com/jira/browse/ALFCOM-1913 survived in 3.3 😞

(This also contains a workaround, you have to edit one .wsdl file)

Cheers
Gyro

ddanninger
Champ in-the-making
Champ in-the-making
Or you can update to 3.4 its already fixed there.