|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51165 Using XSD_ANYTYPE removes method response tags in SOAP response
Submitted: 2010-02-27 07:29 UTC Modified: -
Avg. Score:5.0 ± 0.0
Reproduced:6 of 6 (100.0%)
Same Version:5 (83.3%)
Same OS:5 (83.3%)
From: tok at iki dot fi Assigned:
Status: Open Package: SOAP related
PHP Version: 5.2.13 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: tok at iki dot fi
New email:
PHP Version: OS:


 [2010-02-27 07:29 UTC] tok at iki dot fi
function function1() {
  return new SoapVar("some text",XSD_STRING);
function function2() {
  return new SoapVar("<tag>some text</tag>",XSD_ANYXML);

$soapserver = new SoapServer("mywsdl.wsdl");

Requesting function1 will produce

<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:ns1="myns">
      <ns1:function1Response>some text</ns1:function1Response>

but requesting function2 will produce

<SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:ns1="myns">
      <tag>some text</tag>

The method name response tags are missing here. The Body-part should be

  <tag>some text</tag>

Response-tags should come from WSDL as with function1.

This behaviour is also demostrated in


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 23 01:01:29 2024 UTC