function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Patrick WongPatrick Wong 

SAP Proxy generation terminated: Recursions not supported

Hi,
In SAP, I want to generate a proxy from a Salesforce wsdl file to consume a webservice but when i try to create the proxy from Tcode SE80 in SAP, I got following error:

Background
During proxy generation, an interface description in WSDL format is fetched from the Enterprise Services Builder or from another soource and interpreted. This WSDL document must
describe the whole interface correctly.
==> Display Query
==> Display WSDL Document

Diagnosis
In the WSDL document the object
 "DataCategory"
from the namespace
 "urn:enterprise.soap.sforce.com"
was defined.
However, this refers (directly or indirectly) to itself.

Recursion of this kind in type definitions is not supported.

System Response
Proxy generation is terminated.

Procedure
Avoid recursive type definitions.

As you see in some part of the Salesforce wsdl message, its exception structure consists of recursive type.

          <complexType name="DataCategory">
              <sequence>
                    <element name="childCategories" type="tns:DataCategory" minOccurs="0" maxOccurs="unbounded"/>
                    <element name="label"           type="xsd:string"/>
                    <element name="name"            type="xsd:string"/>
                </sequence>
            </complexType>


How can i handle this problem ? Is there any other syntax to replace the recursive type in Salesforce WSDL file?
Thanks.

 

 
Juan David Uribe RuizJuan David Uribe Ruiz
Does anyone have an answer for this topic?