Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

DTD are not supported by SOAP
 
jfberroyer
Jr. Member
 
Total Posts:  11
Joined:  2008-10-15
 

Hello,

I get this error when I try to login with my SOAP client :

Fatal error: Uncaught SoapFault exception: [Client] DTD are not supported by SOAP

When I go to the wsdl url with a browser, I get it well.

Can someone help me ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
JanW
Jr. Member
 
Total Posts:  6
Joined:  2009-03-10
 

I have the same problem.

In update 3.0.0 the soap connection was completly bugged.
In update 3.0.1 the soap appears when surfing to it but now i’m not able to send the login command.

are there any solutions to this problem?

i’m using php version 5.2.0-8+etch13

greetings

Jan

 
Magento Community Magento Community
Magento Community
Magento Community
 
jfberroyer
Jr. Member
 
Total Posts:  11
Joined:  2008-10-15
 

I haven’t found a solution yet. I hope someone will be able to help us…

 
Magento Community Magento Community
Magento Community
Magento Community
 
ckosny
Guru
 
Total Posts:  349
Joined:  2009-02-28
Luxembourg
 

Hmm, SOAP works fine for me. The error message that you get indicates that you do not get a SOAP response at all, but rather some error page from your server.

Could you
a) have a look at your apache access and error logs to see what happens when you try to log in via SOAP
b) post your code that instantiates the new SoapClient and then the login call?

Claudia

 
Magento Community Magento Community
Magento Community
Magento Community
 
JanW
Jr. Member
 
Total Posts:  6
Joined:  2009-03-10
 

The code.

//Connect To SOAP
     $client = new SoapClient('http://url.be/systemen/api/?wsdl');
     
$session $client->login('*********', *********);

The error:

Fatal errorUncaught SoapFault exception[Client] DTD are not supported by SOAP in /*****/test.php:6
Stack trace
:
#0 [internal function]: SoapClient->__call('login', Array)
#1 /*******/test.php(6): SoapClient->login('****', '*****')
#2 {main}
  
thrown in /*******/test.php on line 6

Acces log

9******* - - [07/May/2009:13:10:22 +0200] "POST /index.php/admin/api/soap/index/ HTTP/1.1" 200 3106

There are nog related items in the error log…

Hope you can see what is wrong.

greetings

Jan

 
Magento Community Magento Community
Magento Community
Magento Community
 
ckosny
Guru
 
Total Posts:  349
Joined:  2009-02-28
Luxembourg
 

Hmm, the only difference I can see to my code is that I use
http://www.xxx.yyy/api/soap/?wsdl
as url for the soap client.

If that does not help, I would have a look at the login function and see how far you get with the login.

Good luck…

Claudia

 
Magento Community Magento Community
Magento Community
Magento Community
 
JanW
Jr. Member
 
Total Posts:  6
Joined:  2009-03-10
 

The url is correct. Otherwise i would get to the login stage.

Thanks for the succes! if i get any further i’ll let you all know.

grtz

Jan

 
Magento Community Magento Community
Magento Community
Magento Community
 
JanW
Jr. Member
 
Total Posts:  6
Joined:  2009-03-10
 

Maybe i’ve found something.

At the end of the WSDL definitions there is a invalid url

'<service name="MagentoService">
<port name="Mage_Api_Model_Server_HandlerPort" binding="typens:Mage_Api_Model_Server_HandlerBinding">
<soap:address location="http://myurl.be/index.php/admin/api/soap/index/"/>
</port>
</service>'

the soap:address location showes the login form of the adminpanel.

Where can i adjust this url?

grtz

Jan

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top