cancel
Showing results for 
Search instead for 
Did you mean: 

Additional Attributes Needed For an External Definition

Former Member
0 Kudos

A business partner (receiving system) gave us their definition of their XML structure. We imported it used it in our mapping but the integration still fails. This is because in one particular field they need additional attributes.

The structure that they gave us:

From the XSD

<xs:complexType name="CustomFieldAnswer">

https://apac-test.proconchevron.com/ProConServiceHost/CommunicationService.svc?xsd=xsd0     <xs:sequence>

https://apac-test.proconchevron.com/ProConServiceHost/CommunicationService.svc?xsd=xsd0          <xs:element name="Value" type="xs:anyType" nillable="true" minOccurs="0"/>

     </xs:sequence>

</xs:complexType>

So this would look like as:

<ns2:CustomField>

<ns2:Name>CWT20502400</ns2:Name>

<ns2:Answer>

<ns2:Value >1</ns2:Value>

</ns2:Answer>

</ns2:CustomField>

But what they need is:

<ns2:CustomField>

<ns2:Name>CWT20502400</ns2:Name>

<ns2:Answer>

<ns2:Value i:type="a:string" xmlns:a="http://www.w3.org/2001/XMLSchema">1</ns2:Value>

</ns2:Answer>

</ns2:CustomField>

So generally, there's an additional

i:type="a:string" xmlns:a="http://www.w3.org/2001/XMLSchema"

Is this something that PI should insert or add or should be added from their XSD, which we would then import after?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

No Pi will not insert. You might need to use simple xslt mapping to add that namespace and prefix. Use xslt or java mapping. Please search scn for adding namespace using xslt mapping. This would help. You need to add this xslt mapping as the second mapping after graphical mapping in the operation mapping.

Answers (0)