Get XML from SOAP server and print in PHP

varma333

New Member
I have interest rates I need to put in a table. I'm making a Joomla module.I have two options: SOAP request/response and HTTP Post. I just need to know where to put this code and what to do with it so I can collect some information and put them into PHP variables. The codes are from this page.This is the SOAP 1.2 Request:\[code\]POST /ws2/ServicesAuxAgents.asmx HTTP/1.1Host: www.multiprets.netContent-Type: application/soap+xml; charset=utf-8Content-Length:##PLACEHOLDER##<?xml version="1.0" encoding="utf-8"?><soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <Recupere_meilleurs_Taux xmlns="http://www.multi-prets.com/ws2/"> <Code_businessID>##PLACEHOLDER##</Code_businessID> </Recupere_meilleurs_Taux> </soap12:Body></soap12:Envelope>\[/code\]This is the SOAP 1.2 Response :\[code\]HTTP/1.1 200 OKContent-Type: application/soap+xml; charset=utf-8Content-Length: ##PLACEHOLDER##<?xml version="1.0" encoding="utf-8"?><soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <Recupere_meilleurs_TauxResponse xmlns="http://www.multi-prets.com/ws2/"> <Recupere_meilleurs_TauxResult> <xsd:schema>##PLACEHOLDER##</xsd:schema>xml</Recupere_meilleurs_TauxResult> </Recupere_meilleurs_TauxResponse> </soap12:Body></soap12:Envelope>\[/code\]And this is the HTTP Post request:\[code\]POST /ws2/ServicesAuxAgents.asmx/Recupere_meilleurs_Taux HTTP/1.1Host: www.multiprets.netContent-Type: application/x-www-form-urlencodedContent-Length: ##PLACEHOLDER##Code_businessID=##PLACEHOLDER##\[/code\]And response:\[code\]HTTP/1.1 200 OKContent-Type: text/xml; charset=utf-8Content-Length: ##PLACEHOLDER##<?xml version="1.0" encoding="utf-8"?><DataSet xmlns="http://www.multi-prets.com/ws2/"><schema xmlns="http://www.w3.org/2001/XMLSchema">##PLACEHOLDER##</schema>xml</DataSet>\[/code\]Can someone tell me exactly what I should do with this or can give me a link to a tutorial?
 
Back
Top