Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to XMLHTTP a client XML string to server ASP
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
01066797
Message ID:
01067793
Views:
13
PHP is a slightly different animal than ASP (i think!:-). I will visit some of the pages I remember regarding PHP receipts.

However, I did notice that there was not a closing tag for "MainMsgBody". Does the "live project" have a closing tag? I do not know if it is needed - but in my little xmls I usally close childnode(1) (MainMsgBody is childnode(1)) thusly (/MainMsgBody):
<?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
   <MainMsgBody>
      <username>xxxxx-xxxxx</username>
      <password>yyyyyyy</password>
      <mesgbody>soykan test sms</mesgbody>
      <numbers>905339999999,905338888888</numbers>
      <type>1</type>
      <originator></originator>
      <sdate></sdate>
      <edate></edate>
   </MainMsgBody>
I will fool with your xml a bit and get back. Just on the surface, the confirmation request might require a GET instead of POST.

>Thanks Terry,
>i've tried like below but was unsuccesfull :(
>
>
>LcXml= SYS(5)+CURDIR()+'test.xml' && i've added to Terry's code
>
>lcURL=[http://85.111.0.121/PwSmsToMany.php]
>oHTTP=NewOBJECT("MSXML2.XMLHTTP")
>oHTTP.open([POST],lcURL,.f.)
>oHttp.setRequestHeader("Content-Type", "text/xml")
>oHttp.send(lcXML)
>ConfirmationXML = oHTTP.responseXML.xml && i've added to Terry's code
>? ConfirmationXML
>oHTTP.abort
>
>
>and my xml file like below which is sms server requested syntax
>
>
><?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
>	 <MainMsgBody>
>	 <username>xxxxx-xxxxx</username>
>	 <password>yyyyyyy</password>
>	 <mesgbody>soykan test sms</mesgbody>
>	 <numbers>905339999999,905338888888</numbers>
>	 <type>1</type>
>	 <originator></originator>
>	 <sdate></sdate>
>	 <edate></edate>
>
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform