Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Connect SOAP only parsing the first element in list

SA-3701

Summary



Only first element of the SOAP envelop is parsed.

Error Messages



Not applicable

Steps to Reproduce



1. Generate Data mapping rules using WSDL via Connector wizard.


2. Run the Parse XML rule and give SOAP envelop as input.

Only first element gets mapped.

Root Cause




Child <map> elements defined inside the parent <map> element in the SOAP envelop result in Parse XML rule violation:


 
 
 
 
 
 <?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <soapenv:Body>
 
                        <searchByRegNoResponseElement>
                                    <result>
                                                <map>
                                                            <map>
                                                                        <ns1:key xsi:type="xsd:string">userError
                                                                        </ns1:key>
                                                                        <ns2:value
                                                                                    xsi:type="xsd:string" />
                                                            </map>
                                                            <map>
                                                                        <ns3:key xsi:type="xsd:string">returnInfo
                                                                        </ns3:key>
                                                                        ....
                                                                        ....
                                                            </map>
                                                </map>
                                                ……
                        </searchByRegNoResponseElement>




Resolution



1. Changing the input SOAP envelop to remove the parent <map> element, so that it confers with Parse XML rule.


2. Create a new Dynamic system setting as below which will roll back the 7.1.x XML compiler to 6x:
     'Pega-IntegrationEngine:switchtooldassembler=true' 

 
 

Published February 18, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us