Buongiorno, ho questo codice ASP da convertire in PHP. Ci sbatto la testa ( ) da due settimane ma tutte le info che ho trovato in rete non mi hanno dato l'aiuto sperato. Qualcuno ne sa niente?grazie.
) da due settimane ma tutte le info che ho trovato in rete non mi hanno dato l'aiuto sperato. Qualcuno ne sa niente?grazie.
	Codice PHP:
	
urlwebservice = ""    ' indirizzo del web service
richiesta = "TEST" & VBCRLF
'************* 
Set objXMLHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP")
objXMLHTTP.Open "POST", urlwebservice, false
objXMLHTTP.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
objXMLHTTP.setRequestHeader "SOAPAction", "http://wb.org/qry" 
SOAPRequest = "<?xml version='1.0' encoding='utf-8'?> "
SOAPRequest = SOAPRequest & "<soap:Envelope"
SOAPRequest = SOAPRequest & " xmlns:xsi=""http://www.w3.org/2001/XMLSche..."""
SOAPRequest = SOAPRequest & " xmlns:xsd=""http://www.w3.org/2001/XMLSche..."""
SOAPRequest = SOAPRequest & " xmlns:soap=""http://schemas.xmlsoap.org/soa..."">"
SOAPRequest = SOAPRequest & " <soap:Body>"
SOAPRequest = SOAPRequest & " <qry xmlns=""http://wb.org/"">"
SOAPRequest = SOAPRequest & " <percorso></percorso>"
SOAPRequest = SOAPRequest & " <numero></numero>"
SOAPRequest = SOAPRequest & " <richiesta>" & richiesta & "</richiesta>"
SOAPRequest = SOAPRequest & " </qry>" 
SOAPRequest = SOAPRequest & " </soap:Body>"
SOAPRequest = SOAPRequest & " </soap:Envelope>"
objXMLHTTP.Send SOAPRequest
RISULTATO = objXMLHTTP.responseXML.TEXT
IF TRIM(RISULTATO) = "SERVER TIMEOUT" THEN 
SendMail md_TO_TIMEOUT, md_CC_TIMEOUT, md_OGGETTO_TIMEOUT,md_TESTO_TIMEOUT & vbcrlf & "file :" & DFILE ,"","",""
END IF
Set objXMLHTTP = Nothing