Options

Xml document as parameter to web service

rotoflexrotoflex Member Posts: 14
edited 2011-09-15 in NAV Three Tier
Hi,

I need to pass xml document in string as parameter to web service and also in some cases return xml document in string. For example when trying to return xml document in string the xml data is encoded so that all xml tags are removed.

How to solve this? Is the solution to wrap xml document inside CDATA tag?

Regards,

Rotoflex

Comments

  • Options
    deV.chdeV.ch Member Posts: 543
    I'am not sure which way you are doing: Are you consuming, or publishing a webservice in NAV?

    if you consume:
    Yes to disable the encoding of the xml you need the CData Tag

    if you publish:
    Just make Codeunit with a function that has a BigText Variable (By Reference) as Parameter. you should be able to pass/receive whatever you want to/from that variable.
Sign In or Register to comment.