Re: [PHP] XML & HTTP

From: Jason Barnett (jason.barnett_at_telesuite.com)
Date: 03/18/05


To: php-general@lists.php.net
Date: Fri, 18 Mar 2005 16:03:20 -0500


Chris Shiflett wrote:
> Jerry Swanson wrote:
>
>> I generated XML file. I need to send the file to another server not
>> through FTP but though HTTP.
>
>
> Yes, I gathered that, but you're not telling us how you're supposed to
> send it. For example, when Google first provided their web API, they
> didn't say, "just send us an XML document." :-)
>
> There are many details you're not giving us (you can leave out the
> details involving the XML document itself, of course), so it's pretty
> much impossible to even guess an answer to your question.
>
> Chris
>

Seriously... Chris is truly trying to help you. There are many, many
ways to send an XML file. The following are HTTP methods off of the top
of my head:

SOAP (possibly with WSDL)
Simple HTTP POST (usually through a form)
Simple HTTP GET (possibly through a form, though passing XML documents
through URL parameters is probably not "A Good Thing".)

It really depends on what the *receiving server* expects. Is there a
documented API? Or perhaps can you just point us to the page (URL) that
is supposed to receive the XML document?

--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins




Relevant Pages

  • Re: vb.net Deployment - Storing the Installation Directory
    ... Configuration Project, and the Deployment project. ... The config project is just the UI that will save settings to an XML ... The service loads this XML file. ... My work around is that when I save the XML document, ...
    (microsoft.public.dotnet.languages.vb)
  • vb.net Deployment - Storing the Installation Directory
    ... Configuration Project, and the Deployment project. ... The config project is just the UI that will save settings to an XML ... The service loads this XML file. ... My work around is that when I save the XML document, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Viewing and Parsing XML files
    ... The Confirm Conversion on Open really did the trick.... ... I suppose I can treat the XML document as a text file ... then when you open the XML file choose Text file rather than XML document as the file type, but opening the .XML file in an XML ...
    (microsoft.public.word.docmanagement)
  • Re: Serialize a class adding a stylesheet
    ... I want to create an XML document from my object. ... but would have to be inserted into the XML file. ... > document from a serialized class is your goal, ...
    (microsoft.public.dotnet.framework)
  • Re: Saving Downloaded Xml from ASPX page as File
    ... Chris ... > I've got an ASPX page that simply builds an Xml document and does a ... > Response.Write back to the client with that Xml, ... this causes IE to just display the data in it's typical Xml ...
    (microsoft.public.dotnet.framework.aspnet)