Hello,
I am converting xCBL Order data from xml string to xCBL Order document using xmlStringToXMLNode and then xmlNodeToDocument. To validate the generated document against WmxCBL3.5rder document(i.e. WmxCBL.com.commerceone.XCBL35.n1_0rder), the simple elements should be converted to documents and some complex element to document list. Hence I have set the list of such simple elements in “documents” input param of xmlNodeToDocument service, and complex elements in “arrays” input param of xmlNodeToDocument service. But I have certain complex type in Order document that I wish to convert to document list. e.g. “StructuredNote” element. When I do not receive any child element value for such complex element in input xml string, the xmlNodeToDocument service will generate this element just as string list and not as document list. As a result, my order doc fails validation against WmxCBL3.5 Order document type.
Here is the part of xCBL 3.5 Order.xsd that refers to above mentioned comlpex element “StructuredNote” (I have removed starting tag of xsd so that it can be viewed properly in browser):
xsd:element name=“ListOfStructuredNote” type=“ListOfStructuredNote”/
xsd:complexType name=“StructuredNote”
xsd:sequence
xsd:element minOccurs=“0” name=“GeneralNote” type=“xsd:string”/
xsd:element minOccurs=“0” name=“NoteID” type=“xsd:string”/
xsd:element minOccurs=“0” ref=“Agency”/
xsd:element minOccurs=“0” name=“NoteURL” type=“xsd:anyURI”/>
xsd:element minOccurs=“0” name=“TextTypeCoded” type=“TextTypeCode”/>
xsd:element minOccurs=“0” name=“TextTypeCodedOther” type=“xsd:string”/>
/xsd:sequence>
/xsd:complexType>
Kindly suggest some way to convert this element (StructuredNote) into document list and not string list in the output of xmlNodeToDocument service.
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB