Issues

ZF-12436: Regression when empty request is sent to Zend_Soap_Server in ZF 1.12.0

Issue Type: Bug Created: 2012-10-08T13:11:36.000+0000 Last Updated: 2013-04-05T16:07:14.000+0000 Status: Closed Fix version(s): Reporter: Cristian Radu (indy2kro) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Soap_Server

Related issues: Attachments:

Description

Steps to reproduce:

  • Send an empty request to a SOAP server

Expected results:

  • Invalid XML error returned

Note: This is the actual error returned by ZF 1.11.13 for example.

Actual results:

  • SOAP-ERROR: Parsing WSDL: Couldn't load from ... : failed to load external entity

Example script:

<pre class="highlight">
<?php
require_once('Service.php');

require_once('Zend/Soap/Server.php');

$wsdl = __DIR__ . '/wsdl.xml';

$soapServer = new Zend_Soap_Server($wsdl);

$soapServer->setClass('Service');
$soapServer->handle();

*Result from ZF 1.12.0:*

PHP Warning:  SoapServer::SoapServer(): I/O warning : failed to load external entity "/home/test/wsdl.xml" in /usr/share/php/Zend/Soap/Server.php on line 811
PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from '/home/test/wsdl.xml' : failed to load external entity "/home/test/wsdl.xml"
in /usr/share/php/Zend/Soap/Server.php on line 811

WSDLSOAP-ERROR: Parsing WSDL: Couldn't load from '/home/test/wsdl.xml' : failed to load external entity "/home/test/wsdl.xml"

Result from ZF 1.11.13:

<pre class="highlight">
<?xml version="1.0" encoding="UTF-8"?>
SenderInvalid XML

Comments

Posted by Cristian Radu (indy2kro) on 2012-10-08T13:15:22.000+0000

Just as a note, the I/O warning is stupid to say the least since the WSDL file (or URL) actually exists.

Posted by Ralph Schindler (ralph) on 2013-04-05T16:07:14.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf1/issues/24

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts