Generate SOAP Request with recursive schema -> infinite loop

75 views
Skip to first unread message

A S

unread,
Sep 12, 2011, 9:37:32 AM9/12/11
to membrane-monitor
Hello,
I am trying to use the Membrane SOA model to create a SOAP request
from a WSDL document.
It works very well in simple cases.
However, I am facing an issue (java.lang.StackOverflowError) when it
comes to use schema with recursive definition.

<xs:complexType name="customer">
<xs:sequence>
<xs:element minOccurs="0" name="information"
type="tns:informationWrapper"/>
<xs:element name="goldMember" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="informationWrapper">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" nillable="true"
name="address" type="tns:addressWrapper"/>
<xs:element name="firstName" type="xs:string"/>
<xs:element name="lastName" type="xs:string"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="addressWrapper">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" nillable="true"
name="information" type="tns:informationWrapper"/>
<xs:element name="zipCode" type="xs:string"/>
<xs:element name="city" type="xs:string"/>
</xs:sequence>
</xs:complexType>

This will generate:
<customer>
<information>
<address>
<information>
<address>
......

and finally... boom: java.lang.StackOverflowError

Is there a way to exclude elements not set into the form params from
the generation?

Thanks in advance for your support.
--
AS

antoi...@gmail.com

unread,
Sep 12, 2011, 10:52:25 AM9/12/11
to membrane...@googlegroups.com
@Moderator: Can you please move this message to 'Membrane SOA Model' groups?
Sorry for this mistake.
Cheers,
Antoine

Thomas Bayer

unread,
Sep 12, 2011, 11:31:44 AM9/12/11
to membrane-monitor
Hi Antoine,
I send a copy to the SOA Model Group.
--
Thomas
Reply all
Reply to author
Forward
0 new messages