cancel
Showing results for 
Search instead for 
Did you mean: 

Segment Node Value

sateesh437
Participant
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

sateesh437
Participant
0 Kudos

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.

Answers (1)

Answers (1)

pvishnuvardan_reddy
Active Contributor
0 Kudos

Hi Sateesh,

Can you please elaborate your requirement for better understanding.

Regards

Vishnu

sateesh437
Participant
0 Kudos

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

markangelo_dihiansan
Active Contributor
0 Kudos

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