You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Manohar (JIRA)" <ax...@ws.apache.org> on 2005/11/23 12:25:36 UTC

[jira] Created: (AXISCPP-876) xsd:choice with nested xsd:sequence generates code as though xsd:sequence with nested xsd:choice

xsd:choice with nested xsd:sequence generates code as though xsd:sequence with nested xsd:choice
------------------------------------------------------------------------------------------------

         Key: AXISCPP-876
         URL: http://issues.apache.org/jira/browse/AXISCPP-876
     Project: Axis-C++
        Type: Bug
  Components: Serialization  
    Reporter: Manohar


Hi,

I've defined a complex type as

<xsd:complexType name="aRecord">
	<xsd:choice>
		<xsd:sequence>
			<xsd:element name="field1" type="xsd:string" minOccurs="0" nillable="false"/>
			<xsd:element name="field2" type="xsd:string" minOccurs="0" nillable="false"/>
		</xsd:sequence>
		<xsd:element name="field3" type="xsd:string" nillable="false"/>
		<xsd:element name="field4" type="xsd:string" nillable="false"/>
	</xsd:choice>
</xsd:complexType>

and trying to send aRecord object as part of request message and receive the same in return.

Here is the serialize code generated for the above choice object: 

/* then serialize elements if any*/
	pSZ->serializeAsElement("field1", Axis_URI_aRecord, (void*)(param->field1), XSD_STRING);
	pSZ->serializeAsElement("field2", Axis_URI_aRecord, (void*)(param->field2), XSD_STRING);
	if(param->field3)
	{
		pSZ->serializeAsElement("field3", Axis_URI_aRecord, (void*)(param->field3), XSD_STRING);
	}
	else if(param->field4)
	{
		pSZ->serializeAsElement("field4", Axis_URI_aRecord, (void*)(param->field4), XSD_STRING);
	}

>From this it appears that, it's acted as though we have a choice within a sequence, rather than a sequence within a choice.

Regards
Manohar

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXISCPP-876) xsd:choice with nested xsd:sequence generates code as though xsd:sequence with nested xsd:choice

Posted by "Manohar (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-876?page=all ]

Manohar updated AXISCPP-876:
----------------------------

    Attachment: ComplexTypeChoiceNestedSequence.wsdl

Attaching a wsdl for this issue. 

> xsd:choice with nested xsd:sequence generates code as though xsd:sequence with nested xsd:choice
> ------------------------------------------------------------------------------------------------
>
>          Key: AXISCPP-876
>          URL: http://issues.apache.org/jira/browse/AXISCPP-876
>      Project: Axis-C++
>         Type: Bug
>   Components: Serialization
>     Reporter: Manohar
>  Attachments: ComplexTypeChoiceNestedSequence.wsdl
>
> Hi,
> I've defined a complex type as
> <xsd:complexType name="aRecord">
> 	<xsd:choice>
> 		<xsd:sequence>
> 			<xsd:element name="field1" type="xsd:string" minOccurs="0" nillable="false"/>
> 			<xsd:element name="field2" type="xsd:string" minOccurs="0" nillable="false"/>
> 		</xsd:sequence>
> 		<xsd:element name="field3" type="xsd:string" nillable="false"/>
> 		<xsd:element name="field4" type="xsd:string" nillable="false"/>
> 	</xsd:choice>
> </xsd:complexType>
> and trying to send aRecord object as part of request message and receive the same in return.
> Here is the serialize code generated for the above choice object: 
> /* then serialize elements if any*/
> 	pSZ->serializeAsElement("field1", Axis_URI_aRecord, (void*)(param->field1), XSD_STRING);
> 	pSZ->serializeAsElement("field2", Axis_URI_aRecord, (void*)(param->field2), XSD_STRING);
> 	if(param->field3)
> 	{
> 		pSZ->serializeAsElement("field3", Axis_URI_aRecord, (void*)(param->field3), XSD_STRING);
> 	}
> 	else if(param->field4)
> 	{
> 		pSZ->serializeAsElement("field4", Axis_URI_aRecord, (void*)(param->field4), XSD_STRING);
> 	}
> From this it appears that, it's acted as though we have a choice within a sequence, rather than a sequence within a choice.
> Regards
> Manohar

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (AXISCPP-876) xsd:choice with nested xsd:sequence generates code as though xsd:sequence with nested xsd:choice

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-876?page=all ]

Dushshantha Chandradasa reassigned AXISCPP-876:
-----------------------------------------------

    Assign To:     (was: Dushshantha Chandradasa)

i have unassigned this issue from me, because im out from the project for some time.. 

i would like to take this oppotunity to thank all the dev team members as well as the user community for their support guidance and encouragement given to me .

Thanks,
Dushshantha

> xsd:choice with nested xsd:sequence generates code as though xsd:sequence with nested xsd:choice
> ------------------------------------------------------------------------------------------------
>
>          Key: AXISCPP-876
>          URL: http://issues.apache.org/jira/browse/AXISCPP-876
>      Project: Axis-C++
>         Type: Bug
>   Components: Serialization
>     Reporter: Manohar
>  Attachments: ComplexTypeChoiceNestedSequence.wsdl
>
> Hi,
> I've defined a complex type as
> <xsd:complexType name="aRecord">
> 	<xsd:choice>
> 		<xsd:sequence>
> 			<xsd:element name="field1" type="xsd:string" minOccurs="0" nillable="false"/>
> 			<xsd:element name="field2" type="xsd:string" minOccurs="0" nillable="false"/>
> 		</xsd:sequence>
> 		<xsd:element name="field3" type="xsd:string" nillable="false"/>
> 		<xsd:element name="field4" type="xsd:string" nillable="false"/>
> 	</xsd:choice>
> </xsd:complexType>
> and trying to send aRecord object as part of request message and receive the same in return.
> Here is the serialize code generated for the above choice object: 
> /* then serialize elements if any*/
> 	pSZ->serializeAsElement("field1", Axis_URI_aRecord, (void*)(param->field1), XSD_STRING);
> 	pSZ->serializeAsElement("field2", Axis_URI_aRecord, (void*)(param->field2), XSD_STRING);
> 	if(param->field3)
> 	{
> 		pSZ->serializeAsElement("field3", Axis_URI_aRecord, (void*)(param->field3), XSD_STRING);
> 	}
> 	else if(param->field4)
> 	{
> 		pSZ->serializeAsElement("field4", Axis_URI_aRecord, (void*)(param->field4), XSD_STRING);
> 	}
> From this it appears that, it's acted as though we have a choice within a sequence, rather than a sequence within a choice.
> Regards
> Manohar

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (AXISCPP-876) xsd:choice with nested xsd:sequence generates code as though xsd:sequence with nested xsd:choice

Posted by "Dushshantha Chandradasa (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-876?page=all ]

Dushshantha Chandradasa reassigned AXISCPP-876:
-----------------------------------------------

    Assign To: Dushshantha Chandradasa

> xsd:choice with nested xsd:sequence generates code as though xsd:sequence with nested xsd:choice
> ------------------------------------------------------------------------------------------------
>
>          Key: AXISCPP-876
>          URL: http://issues.apache.org/jira/browse/AXISCPP-876
>      Project: Axis-C++
>         Type: Bug
>   Components: Serialization
>     Reporter: Manohar
>     Assignee: Dushshantha Chandradasa
>  Attachments: ComplexTypeChoiceNestedSequence.wsdl
>
> Hi,
> I've defined a complex type as
> <xsd:complexType name="aRecord">
> 	<xsd:choice>
> 		<xsd:sequence>
> 			<xsd:element name="field1" type="xsd:string" minOccurs="0" nillable="false"/>
> 			<xsd:element name="field2" type="xsd:string" minOccurs="0" nillable="false"/>
> 		</xsd:sequence>
> 		<xsd:element name="field3" type="xsd:string" nillable="false"/>
> 		<xsd:element name="field4" type="xsd:string" nillable="false"/>
> 	</xsd:choice>
> </xsd:complexType>
> and trying to send aRecord object as part of request message and receive the same in return.
> Here is the serialize code generated for the above choice object: 
> /* then serialize elements if any*/
> 	pSZ->serializeAsElement("field1", Axis_URI_aRecord, (void*)(param->field1), XSD_STRING);
> 	pSZ->serializeAsElement("field2", Axis_URI_aRecord, (void*)(param->field2), XSD_STRING);
> 	if(param->field3)
> 	{
> 		pSZ->serializeAsElement("field3", Axis_URI_aRecord, (void*)(param->field3), XSD_STRING);
> 	}
> 	else if(param->field4)
> 	{
> 		pSZ->serializeAsElement("field4", Axis_URI_aRecord, (void*)(param->field4), XSD_STRING);
> 	}
> From this it appears that, it's acted as though we have a choice within a sequence, rather than a sequence within a choice.
> Regards
> Manohar

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXISCPP-876) xsd:choice with nested xsd:sequence generates code as though xsd:sequence with nested xsd:choice

Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/AXISCPP-876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nadir amra resolved AXISCPP-876.
--------------------------------

       Resolution: Cannot Reproduce
    Fix Version/s: current (nightly)

I believe this is fixed.  The generated code is as follows:

	/* then serialize elements if any*/
	if (param->field1 != NULL)
	{
		pSZ->serializeAsElement("field1", Axis_URI_aRecord, (void*)(param->field1), XSD_STRING);
	}
	if (param->field2 != NULL)
	{
		pSZ->serializeAsElement("field2", Axis_URI_aRecord, (void*)(param->field2), XSD_STRING);
	}
	if(param->field3)
	{
		pSZ->serializeAsElement("field3", Axis_URI_aRecord, (void*)(param->field3), XSD_STRING);
	}
	else if(param->field4)
	{
		pSZ->serializeAsElement("field4", Axis_URI_aRecord, (void*)(param->field4), XSD_STRING);
	}

> xsd:choice with nested xsd:sequence generates code as though xsd:sequence with nested xsd:choice
> ------------------------------------------------------------------------------------------------
>
>                 Key: AXISCPP-876
>                 URL: https://issues.apache.org/jira/browse/AXISCPP-876
>             Project: Axis-C++
>          Issue Type: Bug
>          Components: Serialization
>            Reporter: Manohar
>             Fix For: current (nightly)
>
>         Attachments: ComplexTypeChoiceNestedSequence.wsdl
>
>
> Hi,
> I've defined a complex type as
> <xsd:complexType name="aRecord">
> 	<xsd:choice>
> 		<xsd:sequence>
> 			<xsd:element name="field1" type="xsd:string" minOccurs="0" nillable="false"/>
> 			<xsd:element name="field2" type="xsd:string" minOccurs="0" nillable="false"/>
> 		</xsd:sequence>
> 		<xsd:element name="field3" type="xsd:string" nillable="false"/>
> 		<xsd:element name="field4" type="xsd:string" nillable="false"/>
> 	</xsd:choice>
> </xsd:complexType>
> and trying to send aRecord object as part of request message and receive the same in return.
> Here is the serialize code generated for the above choice object: 
> /* then serialize elements if any*/
> 	pSZ->serializeAsElement("field1", Axis_URI_aRecord, (void*)(param->field1), XSD_STRING);
> 	pSZ->serializeAsElement("field2", Axis_URI_aRecord, (void*)(param->field2), XSD_STRING);
> 	if(param->field3)
> 	{
> 		pSZ->serializeAsElement("field3", Axis_URI_aRecord, (void*)(param->field3), XSD_STRING);
> 	}
> 	else if(param->field4)
> 	{
> 		pSZ->serializeAsElement("field4", Axis_URI_aRecord, (void*)(param->field4), XSD_STRING);
> 	}
> From this it appears that, it's acted as though we have a choice within a sequence, rather than a sequence within a choice.
> Regards
> Manohar

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org