Options

HTTP-Post from within Navision?

JanVJanV Member Posts: 34
Hi everybody,

is it possible to send a XML-Document form Navison to a webserver using the HTTP-Post method? We're trying for three days know but haven't found a working solution until now. Does anyone know somethin about this?

Regards Jan

Comments

  • Options
    SaalekSaalek Member Posts: 181
    Hi JanV

    It is posible

    Variable Definition
    Name DataType Subtype Length
    XMLDoc Automation 'Microsoft XML, v3.0'.DOMDocument30
    XMLHTTP Automation 'Microsoft XML, v3.0'.XMLHTTP30

    Code
    CREATE(XMLHTTP);
    XMLHTTP.open('POST','http://www.Domain.com/page.asp',FALSE);
    XMLHTTP.send(XMLDoc);

    In Page.ASP, I save the XMLDoc on Hard Disk (For example).

    Bye
  • Options
    JanVJanV Member Posts: 34
    If this works I'll call my first son "Saalek" (to be honest now I hope it doesn't work :wink: )
  • Options
    SaalekSaalek Member Posts: 181
    Hi
    To be honest, a baby named Saalek (isn't a really name) is insulting.
    You can name you first son as you would like, but I think the code works.

    Bye
Sign In or Register to comment.