php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57629 Complex type structure is generated in the wsdl when not required.
Submitted: 2007-04-23 11:34 UTC Modified: 2017-01-10 08:06 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: mfp@php.net Assigned:
Status: Suspended Package: SCA_SDO (PECL)
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
 [2007-04-23 11:34 UTC] mfp@php.net
Description:
------------
The wsdl generated for a method that returns a simple type defined in the xsd but takes no parameters is as follows: 

      <xs:element name="enterSimpleRaffle">
        <xs:complexType>
          <xs:sequence>
          </xs:sequence>
        </xs:complexType>
      </xs:element>

The actual method is:

	/**
     * @return simpleraffleticket http://www.test.com/info (a simple raffleticket object)
     */
	function enterSimpleRaffle()
	{

		return "Winner";

	}

with the following in the xsd:

    <simpleType name="simpleraffleticket">
		<restriction base="string">
			<enumeration value="Winner"/>
		</restriction>
	</simpleType>


As the method takes no parameters, the following line in the wsdl could be generated instead:

      <xs:element name="enterSimpleRaffle"/>



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-10 08:06 UTC] kalle@php.net
-Status: Assigned +Status: Suspended -Assigned To: mfp +Assigned To:
 [2017-01-10 08:06 UTC] kalle@php.net
Suspending this report as the extension have not had a release for almost 9 years.  Please revive this if the extension once again shows life
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC