Jump to content


Photo

XML POST to given URL


  • Please log in to reply
1 reply to this topic

#1 chuy08

chuy08
  • Members
  • Pip
  • Newbie
  • 8 posts

Posted 14 August 2006 - 09:46 PM

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.exam...m/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

#2 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 15 August 2006 - 12:09 AM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users