Jump to content

kernelpanik

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by kernelpanik

  1. Ok, all is working now - the xml format was slightly different to what was expected.Once I organise the code a little better, I will post here for others.kp.
  2. Hey,thanks for the info and help. The script is working in the sense that with my own XML, all is good and I can post back results via sockets. However, as soon as I try to change to php://input, it doesnt work.I am assuming that the xml is being posted correctly to me, as the company I deal with do this daily. So, it means that I'm doing something wrong.I just switch between these : //$fileContents = "<my xml assigned to variable>";$fileContents = file_get_contents("php://input"); I need to add logging now so that I can check what the story is, and then I need to start posting the information to my script myself, so that I can verify.It never ends :-)kp.
  3. Hi,thanks very much for that. I appreciate it. Gonna give it a go now, after ages of not knowing what to do :-)kp.
  4. Hi all,there are two scripts involved in my problem. The first constructs xml and posts it using HTTP Request to my PHP script.Kinda like this I guess : POST /InStock HTTP/1.1Host: www.example.orgContent-Type: application/soap+xml; charset=utf-8Content-Length: nnn<?xml version="1.0"?><soap:Envelopexmlns:soap="http://www.w3.org/2001/12/soap-envelope"soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> <soap:Body xmlns:m="http://www.example.org/stock"> <m:GetStockPrice> <m:StockName>IBM</m:StockName> </m:GetStockPrice> </soap:Body></soap:Envelope> My script will then take the xml, fiddle with it, and send it back via the same way.What I dont get is how my PHP script retrieves the xml from the request in the first place.Can anyone clarify this for me?Thanks,kp.
×
×
  • Create New...