MSXML 3.0 issue: serverXMLHTTP send method

Hello I have a problem with Automation MICROSOFT XML v3.0, I am not sure if this is the right forum to post on, if not please let me know which one can be the right one. Here is my problem: I would like to upload xml files (from navision) to a web page (a .php page for now) on a remote server, and I am using DOMDocument and serverXMLHTTP objects of Automation MICROSOFT XML v3.0. Right here is the used code: CLEAR(AtDomDocumentSend);//DOMDOcument CLEAR(AtDomDocumentReceive);//DOMDocument CLEAR(AtServerXMLHTTP);//ServerXMLHTTP IF NOT CREATE(AtDomDocumentSend) THEN CREATE(AtDomDocumentSend); AtDomDocumentSend.loadXML(‘2’); IF NOT CREATE(AtServerXMLHTTP) THEN CREATE(AtServerXMLHTTP); AtServerXMLHTTP.open(‘POST’,‘http://www.xxx.it/Temp/yyy.php’,FALSE); AtServerXMLHTTP.send(AtDomDocumentSend); IF NOT CREATE(AtDomDocumentReceive) THEN CREATE(AtDomDocumentReceive); AtDomDocumentReceive.load(AtServerXMLHTTP.responseStream); AtDomDocumentReceive.save(‘c:\risposta.xml’); I receive the following error on the send line: MSXML3.DLL encountered an error: A connection with the server cannot be established NOTE: that if I go on my web page and upload the file xml and send it I receive the response with success…so it is a problem with configuring ServerXMLHTTP…Please help it is urgent…thank you…

Could it be a permission problem on the server ? I mean do you need credentials to upload documents ?

Thank you Thomas for your fast reply …well I will have to verify this with my colleague first…but in the meantime I would like to inform you that if I go to the web page http://www.xxx.it/Temp/ and if I browse to a file, through and then send it using that calls the .php web page the process works, that is, I receive an xml response telling me that the file was uploaded on the .php web page with success…so I am trying to understand if I have to configure my coding on the navision side differently or if it is a permission problem or worse both of them??..I hope this information can help you help me… Thank you again

http://www.xxx.it/ - a porn site?!.. updated from Navision??.. [:O] [:D]

Hello all I resolved the first problem of connection…I found out that it was blocked by our proxy…ok fine!!! Now I have a new problem using the following code on navision: IF NOT CREATE(AtDomDocumentSend) THEN CREATE(AtDomDocumentSend); IF AtDomDocumentSend.load(‘C:\Progetti\prova.xml’) THEN BEGIN IF NOT CREATE(AtServerXMLHTTP) THEN CREATE(AtServerXMLHTTP); AtServerXMLHTTP.open(‘POST’,‘http://localhost/docs.php’,FALSE); prova:=AtDomDocumentSend.xml; AtServerXMLHTTP.send(AtDomDocumentSend.xml); IF NOT CREATE(AtDomDocumentReceive) THEN CREATE(AtDomDocumentReceive); AtDomDocumentReceive.load(AtServerXMLHTTP.responseStream); prova2 := AtDomDocumentReceive.xml; AtDomDocumentReceive.save(‘C:\Progetti\risposta.xml’); MESSAGE(’%1 status: %2’,AtServerXMLHTTP.statusText,AtServerXMLHTTP.status); END; the problem is on the other server were I try to receive my xml file to upload…it seems that I am not able to read it with the following php code line: $uploadfile = $uploaddir . basename($_FILES[‘userfile’][‘name’]); So the question is how do I configure navision code lines (reported above) so that php is able to extract my file xml and upload it with the code line: move_uploaded_file($_FILES[‘userfile’][‘tmp_name’], $uploadfile)

The error that I’m receiving is Notice: Undefined index: userfile in c:\program files\easyphp1-7\www\docs.php on lin… so as I supposed the php is not able to get the userfile variable…so how do I embed in navision (on the dom document object) such information??? PLease SOMEONE HELP ME!!!

Well…what can I say…from the last received response about a porn site…“nelson”…you get the answer about the effectivness of this newsgroup…ALL CRAP!!!..Thank you for all of your help!!!Absolutely nothing…

Man, if you’re not running the www.xxx.it web site, then don’t use it as an example. I know I would never use playboy.com when asking a question. What can you say?.. What can I say about the aggressiveness of your message?.. I am awfully sorry if my remark has somehow offended you. I will, however not take it back, as I see no reason for doing so. As it stands and the way I see it, if the web site really is yours, then you should not be offended. If the web site is not yours, then why on earth did you use it?! Lastly, and I am already a fool for writing this much, don’t insult forum members just because you didn’t get the help you needed. The people here have absolutely no obligation to help. They do so because they want to. Don’t demand things which you have no right to. Farewell

THe only thing i have to say to you is that site wroten by me with xxx represented an example site…xxx stands for the name of a site on which i’m testing on… not a porn site! That is all i have to say…bye and have a nice day…