on 06-23-2015 11:52 AM
Hi All,
There is a requirement in our project as Segment node value should be populate with its child nodes.
I tried by adding the parameter for ComplexType as Mixed="true" but it didn't work.
<xsd:element name="Comments" form="qualified">
<xsd:complexType mixed="true">
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="Attachment" form="qualified">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="URL"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:choice>
<xsd:attribute ref="xml:lang"/>
<xsd:attribute name="type"/>
</xsd:complexType>
</xsd:element>
Can you please suggest me the solution for this?
Hi All,
I have solved this by using Java Code. i have created the internal structure using Java code and assigning the values to it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sateesh,
Can you please elaborate your requirement for better understanding.
Regards
Vishnu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishnu,
Our Target System is ARIBA where we have COMMENTS segment in which we will pass the PO description and inside the COMMENTS segment there is a field Attachment URL.
If Attachment is not there then then COMMENTS field is populating with the description but if Attachment exist then it won't.
i found like XSD Mixed Content will allow segment value with the child nodes but it is not working.
Below is the reference:
An XML element, "letter", that contains both text and other elements:
The following schema declares the "letter" element:
Note: To enable character data to appear between the child-elements of "letter", the mixed attribute must be set to "true". The <xs:sequence> tag means that the elements defined (name, orderid and shipdate) must appear in that order inside a "letter" element
Hi Sateesh,
According to this document Supported XML Schema and WSDL (SAP NW PI 7.1) Excel List, mixed is only supported for NWDS Java proxy. Aside from that it is either not supported or is ignored (message mapping editor).
I think you need to use XSLT or Java mapping to have your desired output.
Regards,
Mark
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.