Jump to content

Archived

This topic is now archived and is closed to further replies.

joking

XML POST OVER HTTP

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.phpclasses.org/browse/package/375.html )
3. "write" the data to the fopen (just like you'd write a file)


Share this post


Link to post
Share on other sites
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.csc24seven.com/gateway/api.aspx

Thank you

Share this post


Link to post
Share on other sites
Hi daiwa,
I tried the function located in http://www.phpclasses.org/browse/package/375.html.
It dont seem to be working .
I didnt get any response ...
Plz advice

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.