Navision XML 2 .Net XML

cerb3rus
cerb3rus Member Posts: 2
I have a XMLDocument (DOM) in Navision and i want to pass it to a web server as a parameter.

The web server is done in c# (.net 2.0)

WebServiceInfConn represents the web service in Navision and is an automation variable

The web service method recieve a Object XMLDOCUMET (DOM) in the first case and a Variantwrapper in the second.

I have tried 2 things:

First:


CREATE(WebServiceInfConn);
WebServiceInfConn.SendDocumentToInflue(XMLDOMDocument);
CLEAR(WebServiceInfConn);


Second:

XmlVariant := XMLDOMDocument;

CREATE(WebServiceInfConn);
WebServiceInfConn.SendDocumentToInflue(XmlVariant);
CLEAR(WebServiceInfConn);

i Recieve the this error:

Microsoft Business Solutions-Navision
This message is for C/AL programmers:
This data type is not supported by C/SIDE. You can access data from
any of the following data types:
VT_VOID, VT_I2, VT_I4, VT_R4, VT_R8, VT_CY, VT_DATE, VT_BSTR and VT_BOOL

I need help, i can't do the data conversion.
Thanks in advance and sorry for my bad english.

Comments