Jump to content

Archived

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

chuy08

XML POST to given URL

Recommended Posts

I am new to webservices and am at a loss with this one.  I have bought several books to try and help as well as countless Google searches to try and solve me problem to no avail.  Maybe I am over complicating the situation based on all the different things I have attempted to read over the last couple of days.  The situation is pretty simple.  Given an XML file like so:

<Borrower>
      <FirstName>Bob</FirstName>
      <LastName>Smith</LastName>
      <Address>1234 White lane</Address>
</Borrower>

How can I post this to a given URL:

http://consumer.example.com/xmlparse.aspx

I have read many things on DOM or SAX for parsing of XML documents and many things regarding REST, XML-RPC, or SOAP but I just can't get any easy to follow examples that fit my needs.  Any help greatly appreciated.

-chuy

Share this post


Link to post
Share on other sites
You can use cURL or sockets to post information to a url from inside of a php script.

http://www.php.net/curl
http://www.php.net/sockets

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.