Options

XMLHTTP send

ponnadarajesh1612ponnadarajesh1612 Member Posts: 6
edited 2015-01-16 in NAV Three Tier
Hi All,

I am having an issue when sending the xml files () using following Dotnet datatype

Name DataType Subtype Length
xml DotNet System.Xml.XmlDocument.'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

by following datatype

Name DataType Subtype Length
XMLHttpConn Automation 'Microsoft XML, v3.0'.XMLHTTP



IF ISCLEAR(XMLHttpConn) THEN
CREATE(XMLHttpConn,FALSE,TRUE);

XMLHttpConn.open('POST',PostURL,FALSE);
XMLHttpConn.setRequestHeader('SOAPAction',SOAPAction);
XMLHttpConn.setRequestHeader('Content-Type',ContentType);
XMLHttpConn.send(LXMLDocOut);

When system comes to XMLHttpConn.send() function, Following error appears:

"You cannot use a server-side object of the type DotNet in a client-side automation object call."

Your answers always appreciated.

Comments

  • Options
    dipakpatel2505dipakpatel2505 Member Posts: 169
    Hi,

    Can you please provide Navision version ?

    I would like to inform you that Variables of Automation type will not be supported in Navision Service Tier. To work with automation, Developer should create automation variable Client side.

    It seems that you have not create automation variable XMLHttpConn at client side so you getting this error.

    Please let me know if it helps.

    Please do not forget to mark topic as solved if my inputs solve your problem.
  • Options
    vaprogvaprog Member Posts: 1,128
    So, what do you not understand in the error message?
  • Options
    ponnadarajesh1612ponnadarajesh1612 Member Posts: 6
    Thanks all. Now am using Dot Net control to process.
Sign In or Register to comment.