Jump to content


Photo

XML POST OVER HTTP


  • Please log in to reply
3 replies to this topic

#1 joking

joking
  • Members
  • PipPip
  • Member
  • 29 posts
  • LocationLebanon

Posted 23 August 2006 - 02:52 PM

Hi,

I am doing a project using PHP and MySQL.
In my project i must send a XML POST OVER HTTP to an API link.

Can i plz get some help about doing it ?

Thank you
Just JoKinG

#2 daiwa

daiwa
  • Members
  • PipPip
  • Member
  • 21 posts

Posted 23 August 2006 - 03:06 PM

what you probably want to look at first is the API from the place you are linking to, odds are they have something that makes sense. if not you can fopen a connection to the site and push the data you want along. Read the manual on Fopen, also of use if the XML librairies if you don't know what your creating.

he're a litle example of what you'll want to do in pseudo code.

1.create your XML file
2.fopen the url u want ( u can use HTTPost to make this easier but you might not like the arrays and stuff http://www.phpclasse...ackage/375.html )
3. "write" the data to the fopen (just like you'd write a file)




#3 joking

joking
  • Members
  • PipPip
  • Member
  • 29 posts
  • LocationLebanon

Posted 23 August 2006 - 03:07 PM

Hi,

I will clarify my sitution more.

This is the XML code.

<request requestID="201" requestUN="JoKinG"></request>

I wanna post it to this link : https://process.csc2...ateway/api.aspx

Thank you
Just JoKinG

#4 joking

joking
  • Members
  • PipPip
  • Member
  • 29 posts
  • LocationLebanon

Posted 23 August 2006 - 06:05 PM

Hi daiwa,
I tried the function located in http://www.phpclasse...ckage/375.html.
It dont seem to be working .
I didnt get any response ...
Plz advice
Just JoKinG




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users