XMLHTTP send

ponnadarajesh1612
Member Posts: 6
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.
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.
0
Comments
-
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.0 -
So, what do you not understand in the error message?0
-
Thanks all. Now am using Dot Net control to process.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions