|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64426 SOAP request remove the params I put.
Submitted: 2013-03-14 17:19 UTC Modified: -
Avg. Score:4.0 ± 1.0
Reproduced:4 of 4 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: scalex000 at gmail dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 5.4.12 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: scalex000 at gmail dot com
New email:
PHP Version: OS:


 [2013-03-14 17:19 UTC] scalex000 at gmail dot com
Im trying to create a request in SOAP client,  I put the parameters in the 
correct order. When I consume the client an get the last request I send, some 
tags from xml request not appears.   

In the wsdl definition have a complex type where inside have this.

<xs:complexType name="general_name">
         <xs:extension base="xrsi:name_type_base">
		   <xs:element minOccurs="0" name="name_raw" type="xrsi:name_raw"/>
	           <xs:element minOccurs="0" name="name_prefix" type="xrsi:name_prefix"/>
		   <xs:group minOccurs="0" ref="xrsi:name_group"/>
		   <xs:element minOccurs="0" name="name_suffix" type="xrsi:name_suffix"/>
		   <xs:element minOccurs="0" name="secondary_given_name" type="xrsi:first_name"/>
		   <xs:element minOccurs="0" name="secondary_paternal_name" type="xrsi:paternal_name"/>
		   <xs:element minOccurs="0" name="secondary_maternal_name" type="xrsi:maternal_name"/>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  -->
	<xs:group name="name_group">
			<xs:group minOccurs="0" ref="xrsi:individual_name"/>
			<xs:group minOccurs="0" ref="xrsi:organization_name"/>
			<xs:group minOccurs="0" ref="xrsi:mexican_name"/>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  -->
	<xs:group name="individual_name">
			<xs:element minOccurs="0" name="first_name" type="xrsi:first_name"/>
			<xs:element minOccurs="0" name="middle_name" type="xrsi:middle_name"/>
			<xs:element minOccurs="0" name="last_name" type="xrsi:last_name"/>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  -->
	<xs:group name="mexican_name">
			<xs:element minOccurs="0" name="given_name" type="xrsi:first_name"/>
			<xs:element minOccurs="0" name="paternal_name" type="xrsi:paternal_name"/>
			<xs:element minOccurs="0" name="maternal_name" type="xrsi:maternal_name"/>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  -->
	<xs:group name="organization_name">
			<xs:element minOccurs="0" name="business_name" type="xrsi:business_name"/>
			<xs:element minOccurs="0" name="attention" type="xrsi:attention"/>

The problems is when i try to choose the 2nd or 3rd group of element, not appear 
in the xml request.  

Test script:

$client = new SoapClient('wsdl',array('trace'=>1);
$params = array('receiver'=>array('name'=>array('name_type'=>'M','given_name'=>'SAUL','paternal_name'=>'AQUINO', 'maternal_name'=>'CONCEPCION')));

Expected result:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="" 
   <name name_type="M">

Actual result:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="" 
    <name name_type="M"/>


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Jan 29 09:01:25 2020 UTC