Question

3
Replies
184
Views
Guhanathan Member since 2010 13 posts
Tata Consultancy Services Limited
Posted: 4 years ago
Last activity: 4 years 1 month ago
Closed

XML Generation - Node Name for attributes

Dear All,

Please help me on the below.

My XSD has the below definition

<xs:attribute name="source-system" type="xs:string"/> 

 <xs:complexType name="lookup-type">
      <xs:simpleContent>
      <xs:extension base="xs:string">
           <xs:attribute ref="source-system" use="required"/>
           <xs:attribute ref="code" use="required"/>
           <xs:attribute ref="description" use="required"/>
      </xs:extension>
      </xs:simpleContent>
 </xs:complexType>

In the generated xml we could see like

<business-event ns1:sourceSystem="CUBE" ns1:description="Submission" ns1:code="submission">Submission</business-event>

But i am expecting like below

<business-event ns1:source-system="CUBE" ns1:description="Submission" ns1:code="submission">Submission</business-event>

Could you please tell is is bug in pega? I am using Pega7.1.7

The xml is geenrated by connect soap wizard.

Thanks,

Guhan

***Updated by Moderator: Marissa. Removed user added #helpme group tag. Apologies for confusion, shouldn't have been an end-user option***

Data Integration
Moderation Team has archived post
Share this page LinkedIn