Hi All,
we are trying to convert XML into IS Record… (we actually have a select service for our adapter which fetches the data from the database and the user can choose their mode of output(like String, IData…and IS Record)…
The query returns the result in xml format which needs to be convertes into IS Record.
We tried using pub.web:stringtoDocument and pub.web:documenttoRecord… but got struck in mapping the output for the second one…
how to specify the output format for the service…? ie how to map the output to a specified doctype.
Accept an input parameter in your adapter service that indicates the IS document type name to use for the pub.xml:xmlNodeToDocument call. The pub.web services are deprecated and should be avoided. Use the pub.xml services instead.
Another approach is to just return the XML string and let the caller manipulate that as needed.
When i execute the xmlNodetoDocument alone…by providing the doctypename…itz jus displaying the same in the output…
2)For the service pub.xml:xmlNodetoDocument… inorder to provide the xmlnode input … iam using pub.xml:xmlStringtoXMLNode… and
i have just exported the pipeline locally and pasted the contents below…
<?xml version="1.0" encoding="UTF-8"?>
false
test:FirstDoctype
VENTANA
18
This yacht 147 is a big ship family yacht. Convenient but slow.
GULFSTAR 55
1700
480
170
112
84
202
8
147
yacht147.jpg
It has no effect on the doctypename which iam passing…even without that the output is same…